From 3d6a10714f7a65ac35a969fb6896f4a5a0ed7bb2 Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 10:11:06 +0800 Subject: [PATCH 1/3] fix(webui): preserve Mini App preparation refusal reasons --- .aoci/baseline.json | 786 +----------------- aoci.code.txt | 8 +- .../miniapp/application/miniapp-workflows.ts | 8 +- packages/webui/src/client/platform/wire.ts | 2 +- .../server/operation/operation-dispatch.ts | 15 +- packages/webui/src/shared/envelope.ts | 5 + .../test/unit/miniapp-client-state.test.ts | 59 +- .../test/unit/webui-transport-wire.test.ts | 20 + .../test/unit/webui-wire-envelope.test.ts | 20 + 9 files changed, 127 insertions(+), 796 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index 5e71736b3..9a0b40443 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T01:35:42Z", + "updated_at": "2026-11-20T02:10:53Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "251d96fb088590d8761d51f2d6033c31857b5c6cc4d3c7265f303fd80292731c", - "size": 636382, - "normalized_sha256": "251d96fb088590d8761d51f2d6033c31857b5c6cc4d3c7265f303fd80292731c" + "sha256": "1096faf618c5db652d3c6e8e1b7e9f6f25480ea7836b90c9126e92f62cc391d9", + "size": 636926, + "normalized_sha256": "1096faf618c5db652d3c6e8e1b7e9f6f25480ea7836b90c9126e92f62cc391d9" }, "aoci.meta.txt": { "role": "index", @@ -789,742 +789,6 @@ "size": 301, "normalized_sha256": "5ca1db5e1bf5432ca60e816fe4b836e9018cbeecf2d296a96f31beb6e1d2a56d" }, - "dist-webui-npm/client/assets/fonts/brand/Nunito-latin.woff2": { - "role": "observe", - "sha256": "20fc9b6fc618e7c3c68d3ac750a2a5dfbceb8521675458d2cea580b5693e4798", - "size": 39152 - }, - "dist-webui-npm/client/assets/fonts/brand/OFL.txt": { - "role": "observe", - "sha256": "580df76c95a1ec5ab878ceb25bb3d85c6a076804e9c970c8c6972aea775fdf65", - "size": 4385, - "normalized_sha256": "580df76c95a1ec5ab878ceb25bb3d85c6a076804e9c970c8c6972aea775fdf65" - }, - "dist-webui-npm/client/assets/img/agent-avatar-explore.svg": { - "role": "observe", - "sha256": "209982d1ea785ae20d8cf0e4a8d713f456a8975f086a34970d68ea49da68f295", - "size": 2922, - "normalized_sha256": "209982d1ea785ae20d8cf0e4a8d713f456a8975f086a34970d68ea49da68f295" - }, - "dist-webui-npm/client/assets/img/agent-avatar-verifier.svg": { - "role": "observe", - "sha256": "cca276240e5d757cd8aa17e97f17f1ba8cc3768dfe2ee8f3207f641651e91b55", - "size": 3715, - "normalized_sha256": "cca276240e5d757cd8aa17e97f17f1ba8cc3768dfe2ee8f3207f641651e91b55" - }, - "dist-webui-npm/client/assets/img/agent-avatar-worker.svg": { - "role": "observe", - "sha256": "66376531709e0cddbdc329ba9eadcebb7a089d1f809d94151da26440ef961866", - "size": 3200, - "normalized_sha256": "66376531709e0cddbdc329ba9eadcebb7a089d1f809d94151da26440ef961866" - }, - "dist-webui-npm/client/assets/img/corner-dark.svg": { - "role": "observe", - "sha256": "8d85ae76ff1400252502ff43355ebf04952d7b272ab6495dd524e2ca72ffb324", - "size": 1958, - "normalized_sha256": "8d85ae76ff1400252502ff43355ebf04952d7b272ab6495dd524e2ca72ffb324" - }, - "dist-webui-npm/client/assets/img/corner-light.svg": { - "role": "observe", - "sha256": "28df0c234fc672ebc8305e1c0f5d359f881427efd9affc2e287b6928aa472534", - "size": 2054, - "normalized_sha256": "28df0c234fc672ebc8305e1c0f5d359f881427efd9affc2e287b6928aa472534" - }, - "dist-webui-npm/client/assets/img/dark.14c569ba.svg": { - "role": "observe", - "sha256": "a64cd45ab4de8db44cfda52917159cbc7838b042a3968ada29474b40aeacc9d4", - "size": 1431, - "normalized_sha256": "a64cd45ab4de8db44cfda52917159cbc7838b042a3968ada29474b40aeacc9d4" - }, - "dist-webui-npm/client/assets/img/light.d3fbb1aa.svg": { - "role": "observe", - "sha256": "8bf01ce03c8200af34c0b92d97ffc217be4822f09c3f34238d832213be362703", - "size": 1431, - "normalized_sha256": "8bf01ce03c8200af34c0b92d97ffc217be4822f09c3f34238d832213be362703" - }, - "dist-webui-npm/client/assets/img/system.aba90841.svg": { - "role": "observe", - "sha256": "cc4d3e9fb25c633a5f770386bba2dadcd730a5a8eb53c86036655f3fd2b6ed0a", - "size": 1937, - "normalized_sha256": "cc4d3e9fb25c633a5f770386bba2dadcd730a5a8eb53c86036655f3fd2b6ed0a" - }, - "dist-webui-npm/client/fonts/KaTeX_AMS-Regular.ttf": { - "role": "observe", - "sha256": "68534840bcfdd2bffb6f0e8deb48684dd01e7f04ea2813267577afb906de1d13", - "size": 63632 - }, - "dist-webui-npm/client/fonts/KaTeX_AMS-Regular.woff": { - "role": "observe", - "sha256": "30da91e84c893f875e252689faebdc590b2871145e8adc7f9a9d4dbd8ce0b251", - "size": 33516 - }, - "dist-webui-npm/client/fonts/KaTeX_AMS-Regular.woff2": { - "role": "observe", - "sha256": "0cdd387c9590a1a9f9794560022dbb59654a7d86f187aa0c81495ad42d3a7308", - "size": 28076 - }, - "dist-webui-npm/client/fonts/KaTeX_Caligraphic-Bold.ttf": { - "role": "observe", - "sha256": "07d8e303ce4fc12b4bb54f1004170dd190a1f3db45d400fe68060df3e0897268", - "size": 12368 - }, - "dist-webui-npm/client/fonts/KaTeX_Caligraphic-Bold.woff": { - "role": "observe", - "sha256": "1ae6bd7475590e97e7f145a89e09ccde322f7a6bc0b91607b1c8b8ee28290fed", - "size": 7716 - }, - "dist-webui-npm/client/fonts/KaTeX_Caligraphic-Bold.woff2": { - "role": "observe", - "sha256": "de7701e42cf1f4cf0b766c03fb27977207eee2f4fd5d76fa82188406da43ea4c", - "size": 6912 - }, - "dist-webui-npm/client/fonts/KaTeX_Caligraphic-Regular.ttf": { - "role": "observe", - "sha256": "ed0b74372feefcbb9c0666b2e210da37b7e49fa7fbbf3eeb11db5f693dacfbb7", - "size": 12344 - }, - "dist-webui-npm/client/fonts/KaTeX_Caligraphic-Regular.woff": { - "role": "observe", - "sha256": "3398dd02302557a793f2863f88e02d96ce10df2abffa07c8e9fa90775116e65c", - "size": 7656 - }, - "dist-webui-npm/client/fonts/KaTeX_Caligraphic-Regular.woff2": { - "role": "observe", - "sha256": "5d53e70ad607c2352162dec9e0923fb54ecdafaccbf604cd8dcf7d00facb989b", - "size": 6908 - }, - "dist-webui-npm/client/fonts/KaTeX_Fraktur-Bold.ttf": { - "role": "observe", - "sha256": "9163df9c7122432e6495b4229fa9071cf9ae86a758ae5efc4924ec2e1a6dbce1", - "size": 19584 - }, - "dist-webui-npm/client/fonts/KaTeX_Fraktur-Bold.woff": { - "role": "observe", - "sha256": "9be7ceb88004ab8ad124082246fbfcca4091e36385d4ec6ed1df67375dad50fb", - "size": 13296 - }, - "dist-webui-npm/client/fonts/KaTeX_Fraktur-Bold.woff2": { - "role": "observe", - "sha256": "74444efd593c005e3f4573b44524704c0af0a937fe911cca9e94068d0d140d3f", - "size": 11348 - }, - "dist-webui-npm/client/fonts/KaTeX_Fraktur-Regular.ttf": { - "role": "observe", - "sha256": "1e6f9579e90e2cac37f8f60a597c436e075c114385652b7cbeb0dec0421291b3", - "size": 19572 - }, - "dist-webui-npm/client/fonts/KaTeX_Fraktur-Regular.woff": { - "role": "observe", - "sha256": "5e28753be717dac97f559f49bc10be9cf3c124ddcabda6659d11cb68febc6463", - "size": 13208 - }, - "dist-webui-npm/client/fonts/KaTeX_Fraktur-Regular.woff2": { - "role": "observe", - "sha256": "51814d270d06ff0255dba0799994fa4d8c84d11f09951d47595f4abb1f3602dc", - "size": 11316 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Bold.ttf": { - "role": "observe", - "sha256": "138ac28d1663b3037e9c5f52371fa5c63d8324f4a38d22cd573e6ea3a3fd0cf8", - "size": 51336 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Bold.woff": { - "role": "observe", - "sha256": "c76c5d696297d51b9cb1639c7da4334f0e7dec81b42b11213b5e25ef671bb822", - "size": 29912 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Bold.woff2": { - "role": "observe", - "sha256": "0f60d1b897938ec918c8ce073092411baf9438f6739465693ff18b0f9d20b021", - "size": 25324 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-BoldItalic.ttf": { - "role": "observe", - "sha256": "70ee1f64a20f2048c21940ef46d0144fd215baa953ca69afd1e31e98544f708f", - "size": 32968 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-BoldItalic.woff": { - "role": "observe", - "sha256": "a6f7ec0d846ac7ad975adb8959c37ed49b94acbc4ae436db9ce9e20287e4a64c", - "size": 19412 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-BoldItalic.woff2": { - "role": "observe", - "sha256": "99cd42a3c072d918f2f44984a807cf7aa16e13545fd0875fc07c6c65f99e715b", - "size": 16780 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Italic.ttf": { - "role": "observe", - "sha256": "0d85ae7cc30f23790a7f1a58c4a112fdca8aae769b6ba11429af1d98b1b6cb3a", - "size": 33580 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Italic.woff": { - "role": "observe", - "sha256": "f1d6ef86f3b11a528bd5185199bd2443ecb2b0dead96d88674b5a2c12be24bdf", - "size": 19676 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Italic.woff2": { - "role": "observe", - "sha256": "97479ca6cce906abc961ecac96faa5f9ca2e61b8e7670d475826bcdee9a7c267", - "size": 16988 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Regular.ttf": { - "role": "observe", - "sha256": "d0332f52868370fd83ae7fa46470f90c8f2eab2fcf12bc4f88080b340c95a830", - "size": 53580 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Regular.woff": { - "role": "observe", - "sha256": "c6368d87e8a1a3a5d337623d83d8dc4b868f242a9ad476237d6f8d1e0f168cdc", - "size": 30772 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Regular.woff2": { - "role": "observe", - "sha256": "c2342cd8b869e01752a9321dc17213fc40d4d04c79688c1d43f2cf316abd7866", - "size": 26272 - }, - "dist-webui-npm/client/fonts/KaTeX_Math-BoldItalic.ttf": { - "role": "observe", - "sha256": "f9377ab0271cda59af24bcffbd46a4d0c8a3572ffafdbb38de2ad5ea7b0d5ee5", - "size": 31196 - }, - "dist-webui-npm/client/fonts/KaTeX_Math-BoldItalic.woff": { - "role": "observe", - "sha256": "850c0af5c2238497febaf5e461d880bf458c341f42f4f330f1b1ab5698b1998e", - "size": 18668 - }, - "dist-webui-npm/client/fonts/KaTeX_Math-BoldItalic.woff2": { - "role": "observe", - "sha256": "dc47344dbb6cb5b655c8460d561f4df5f501b90c804ad3c6cec65fe322351ab1", - "size": 16400 - }, - "dist-webui-npm/client/fonts/KaTeX_Math-Italic.ttf": { - "role": "observe", - "sha256": "08ce98e51b04d58945a301e639e02b6998af29fdfd61a7b8afdd07bbfc479d4a", - "size": 31308 - }, - "dist-webui-npm/client/fonts/KaTeX_Math-Italic.woff": { - "role": "observe", - "sha256": "8a8d244581371912b8f3f5a23e2437cb2a59cd9bcaebb0346e722c05737a2571", - "size": 18748 - }, - "dist-webui-npm/client/fonts/KaTeX_Math-Italic.woff2": { - "role": "observe", - "sha256": "7af58c5ec8f132a2ddde9027c6d7814decce4d3b822a11192a42a20e2e973264", - "size": 16440 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Bold.ttf": { - "role": "observe", - "sha256": "1ece03f79f95277d57dc7f6b435a74e1379b0d46104a8530286b60ff49369ea0", - "size": 24504 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Bold.woff": { - "role": "observe", - "sha256": "ece03cfd83e22c212cdef66feb8442d25a083beb988db3f1883f3f9738d750ba", - "size": 14408 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Bold.woff2": { - "role": "observe", - "sha256": "e99ae51144bf1232efcc1bfe5add36262c6866b0faab24fa75740e1b98577a62", - "size": 12216 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Italic.ttf": { - "role": "observe", - "sha256": "3931dd81faed86ba021bb2bbdc36f5bed9a38d6b4f4077aca59b265aa1b02083", - "size": 22364 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Italic.woff": { - "role": "observe", - "sha256": "91ee67500cc0129aa0ace3ac5c61ff1692102f0f31d02b69347fba35dcb75bf2", - "size": 14112 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Italic.woff2": { - "role": "observe", - "sha256": "00b26ac825e2095056396e0553b8ac26d3f8ad158c3826e28b4c45b385c4714a", - "size": 12028 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Regular.ttf": { - "role": "observe", - "sha256": "f36ea897e19f4a2e571d1e900e4e3710e438deb05a842486045ba0a3e616a4ad", - "size": 19436 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Regular.woff": { - "role": "observe", - "sha256": "11e4dc8a6471ff6d6ee561d53d10fde8f7489e798257ff449c5d37c197435605", - "size": 12316 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Regular.woff2": { - "role": "observe", - "sha256": "68e8c73ef42afd3ccec58bf0fba302cce448938e7fc020a5e31f8a952eee1342", - "size": 10344 - }, - "dist-webui-npm/client/fonts/KaTeX_Script-Regular.ttf": { - "role": "observe", - "sha256": "1c67f068fea8bb09bf099c088b1cf64bd27516a6e07f4684344873564bb66a67", - "size": 16648 - }, - "dist-webui-npm/client/fonts/KaTeX_Script-Regular.woff": { - "role": "observe", - "sha256": "d96cdf2b3bdd4d64a8fd5f74a4c467f123a8a73931cd435889f08ffaf9bf947a", - "size": 10588 - }, - "dist-webui-npm/client/fonts/KaTeX_Script-Regular.woff2": { - "role": "observe", - "sha256": "036d4e95149b69ff9bcc0cd55771efeb25ffa3947293e69acd78d5ac328c684b", - "size": 9644 - }, - "dist-webui-npm/client/fonts/KaTeX_Size1-Regular.ttf": { - "role": "observe", - "sha256": "95b6d2f1a50173bfedb8c63e1d1c99b10427d0a4df4201cb44513b226951a22b", - "size": 12228 - }, - "dist-webui-npm/client/fonts/KaTeX_Size1-Regular.woff": { - "role": "observe", - "sha256": "c943cc986384f59e86bea5fd7dc50a9c4dfe567a7c05eb40d6790720dead97c9", - "size": 6496 - }, - "dist-webui-npm/client/fonts/KaTeX_Size1-Regular.woff2": { - "role": "observe", - "sha256": "6b47c40166b6dbe21a5dfca7718413f2147fd2399be1ba605d8ad39cedf25dfe", - "size": 5468 - }, - "dist-webui-npm/client/fonts/KaTeX_Size2-Regular.ttf": { - "role": "observe", - "sha256": "a6b2099fb555c60e3a0db3a08842ebf1d732c6eb4e4bf44913613bed4fc4e39b", - "size": 11508 - }, - "dist-webui-npm/client/fonts/KaTeX_Size2-Regular.woff": { - "role": "observe", - "sha256": "2014c523c3210bcc166648c4d4cc57f05b747df07a24277bf71c51e67dc79e3d", - "size": 6188 - }, - "dist-webui-npm/client/fonts/KaTeX_Size2-Regular.woff2": { - "role": "observe", - "sha256": "d04c54219f9eaec6d4d4fd42dfb28785975a4794d6b2fc71e566b9cd6db842dd", - "size": 5208 - }, - "dist-webui-npm/client/fonts/KaTeX_Size3-Regular.ttf": { - "role": "observe", - "sha256": "500e04d54f0d51666332c9d2089aa803be22aa878eca539e59fa53c6e522b082", - "size": 7588 - }, - "dist-webui-npm/client/fonts/KaTeX_Size3-Regular.woff": { - "role": "observe", - "sha256": "6ab6b62e9b62dae2c00dd90f791bd10950be0ecc3490d7d6045f51c2e8fe0949", - "size": 4420 - }, - "dist-webui-npm/client/fonts/KaTeX_Size3-Regular.woff2": { - "role": "observe", - "sha256": "73d591271b1604960cb10bb90fee021670af7297017e0e98480b332d11f51995", - "size": 3624 - }, - "dist-webui-npm/client/fonts/KaTeX_Size4-Regular.ttf": { - "role": "observe", - "sha256": "c647367d1dd4e162468717d020e1fc0f1dc5c26ebfdffbe55261713bf88c5877", - "size": 10364 - }, - "dist-webui-npm/client/fonts/KaTeX_Size4-Regular.woff": { - "role": "observe", - "sha256": "99f9c6750b489c9462bf04900bd3f939df9b829339daaaaa99ef5495cdddea58", - "size": 5980 - }, - "dist-webui-npm/client/fonts/KaTeX_Size4-Regular.woff2": { - "role": "observe", - "sha256": "a4af7d414440a1c1790825cfb700cf9cf43b0f2c4b04f0ebc523011ad9853ec0", - "size": 4928 - }, - "dist-webui-npm/client/fonts/KaTeX_Typewriter-Regular.ttf": { - "role": "observe", - "sha256": "f01f3e87d9c6a61c0c081ceb577abd864eb00a612f7ac1620dd6915fad2ef5aa", - "size": 27556 - }, - "dist-webui-npm/client/fonts/KaTeX_Typewriter-Regular.woff": { - "role": "observe", - "sha256": "e14fed02b1aba7ce9f5afd5844b5d0321b22351febc720e0de8b8723527609f7", - "size": 16028 - }, - "dist-webui-npm/client/fonts/KaTeX_Typewriter-Regular.woff2": { - "role": "observe", - "sha256": "71d517d67827787cfabdf186914cc3358eda539e37931941f2b2fd4a21f68c0b", - "size": 13568 - }, - "dist-webui-npm/client/fonts/LICENSE.katex-fonts": { - "role": "observe", - "sha256": "00a890c71e7cf602c5237d25f7ac9fc9fa0a094f4af5d32c7c9e30e81971b792", - "size": 220, - "normalized_sha256": "00a890c71e7cf602c5237d25f7ac9fc9fa0a094f4af5d32c7c9e30e81971b792" - }, - "dist-webui/client/assets/fonts/brand/Nunito-latin.woff2": { - "role": "observe", - "sha256": "20fc9b6fc618e7c3c68d3ac750a2a5dfbceb8521675458d2cea580b5693e4798", - "size": 39152 - }, - "dist-webui/client/assets/fonts/brand/OFL.txt": { - "role": "observe", - "sha256": "580df76c95a1ec5ab878ceb25bb3d85c6a076804e9c970c8c6972aea775fdf65", - "size": 4385, - "normalized_sha256": "580df76c95a1ec5ab878ceb25bb3d85c6a076804e9c970c8c6972aea775fdf65" - }, - "dist-webui/client/assets/img/agent-avatar-explore.svg": { - "role": "observe", - "sha256": "209982d1ea785ae20d8cf0e4a8d713f456a8975f086a34970d68ea49da68f295", - "size": 2922, - "normalized_sha256": "209982d1ea785ae20d8cf0e4a8d713f456a8975f086a34970d68ea49da68f295" - }, - "dist-webui/client/assets/img/agent-avatar-verifier.svg": { - "role": "observe", - "sha256": "cca276240e5d757cd8aa17e97f17f1ba8cc3768dfe2ee8f3207f641651e91b55", - "size": 3715, - "normalized_sha256": "cca276240e5d757cd8aa17e97f17f1ba8cc3768dfe2ee8f3207f641651e91b55" - }, - "dist-webui/client/assets/img/agent-avatar-worker.svg": { - "role": "observe", - "sha256": "66376531709e0cddbdc329ba9eadcebb7a089d1f809d94151da26440ef961866", - "size": 3200, - "normalized_sha256": "66376531709e0cddbdc329ba9eadcebb7a089d1f809d94151da26440ef961866" - }, - "dist-webui/client/assets/img/corner-dark.svg": { - "role": "observe", - "sha256": "8d85ae76ff1400252502ff43355ebf04952d7b272ab6495dd524e2ca72ffb324", - "size": 1958, - "normalized_sha256": "8d85ae76ff1400252502ff43355ebf04952d7b272ab6495dd524e2ca72ffb324" - }, - "dist-webui/client/assets/img/corner-light.svg": { - "role": "observe", - "sha256": "28df0c234fc672ebc8305e1c0f5d359f881427efd9affc2e287b6928aa472534", - "size": 2054, - "normalized_sha256": "28df0c234fc672ebc8305e1c0f5d359f881427efd9affc2e287b6928aa472534" - }, - "dist-webui/client/assets/img/dark.14c569ba.svg": { - "role": "observe", - "sha256": "a64cd45ab4de8db44cfda52917159cbc7838b042a3968ada29474b40aeacc9d4", - "size": 1431, - "normalized_sha256": "a64cd45ab4de8db44cfda52917159cbc7838b042a3968ada29474b40aeacc9d4" - }, - "dist-webui/client/assets/img/light.d3fbb1aa.svg": { - "role": "observe", - "sha256": "8bf01ce03c8200af34c0b92d97ffc217be4822f09c3f34238d832213be362703", - "size": 1431, - "normalized_sha256": "8bf01ce03c8200af34c0b92d97ffc217be4822f09c3f34238d832213be362703" - }, - "dist-webui/client/assets/img/minimax-design-octopus.svg": { - "role": "observe", - "sha256": "1b5c5b974e660e24d624333270a1571b3e5e9f09738946b1ae29d25b9733a193", - "size": 1687, - "normalized_sha256": "1b5c5b974e660e24d624333270a1571b3e5e9f09738946b1ae29d25b9733a193" - }, - "dist-webui/client/assets/img/system.aba90841.svg": { - "role": "observe", - "sha256": "cc4d3e9fb25c633a5f770386bba2dadcd730a5a8eb53c86036655f3fd2b6ed0a", - "size": 1937, - "normalized_sha256": "cc4d3e9fb25c633a5f770386bba2dadcd730a5a8eb53c86036655f3fd2b6ed0a" - }, - "dist-webui/client/fonts/KaTeX_AMS-Regular.ttf": { - "role": "observe", - "sha256": "68534840bcfdd2bffb6f0e8deb48684dd01e7f04ea2813267577afb906de1d13", - "size": 63632 - }, - "dist-webui/client/fonts/KaTeX_AMS-Regular.woff": { - "role": "observe", - "sha256": "30da91e84c893f875e252689faebdc590b2871145e8adc7f9a9d4dbd8ce0b251", - "size": 33516 - }, - "dist-webui/client/fonts/KaTeX_AMS-Regular.woff2": { - "role": "observe", - "sha256": "0cdd387c9590a1a9f9794560022dbb59654a7d86f187aa0c81495ad42d3a7308", - "size": 28076 - }, - "dist-webui/client/fonts/KaTeX_Caligraphic-Bold.ttf": { - "role": "observe", - "sha256": "07d8e303ce4fc12b4bb54f1004170dd190a1f3db45d400fe68060df3e0897268", - "size": 12368 - }, - "dist-webui/client/fonts/KaTeX_Caligraphic-Bold.woff": { - "role": "observe", - "sha256": "1ae6bd7475590e97e7f145a89e09ccde322f7a6bc0b91607b1c8b8ee28290fed", - "size": 7716 - }, - "dist-webui/client/fonts/KaTeX_Caligraphic-Bold.woff2": { - "role": "observe", - "sha256": "de7701e42cf1f4cf0b766c03fb27977207eee2f4fd5d76fa82188406da43ea4c", - "size": 6912 - }, - "dist-webui/client/fonts/KaTeX_Caligraphic-Regular.ttf": { - "role": "observe", - "sha256": "ed0b74372feefcbb9c0666b2e210da37b7e49fa7fbbf3eeb11db5f693dacfbb7", - "size": 12344 - }, - "dist-webui/client/fonts/KaTeX_Caligraphic-Regular.woff": { - "role": "observe", - "sha256": "3398dd02302557a793f2863f88e02d96ce10df2abffa07c8e9fa90775116e65c", - "size": 7656 - }, - "dist-webui/client/fonts/KaTeX_Caligraphic-Regular.woff2": { - "role": "observe", - "sha256": "5d53e70ad607c2352162dec9e0923fb54ecdafaccbf604cd8dcf7d00facb989b", - "size": 6908 - }, - "dist-webui/client/fonts/KaTeX_Fraktur-Bold.ttf": { - "role": "observe", - "sha256": "9163df9c7122432e6495b4229fa9071cf9ae86a758ae5efc4924ec2e1a6dbce1", - "size": 19584 - }, - "dist-webui/client/fonts/KaTeX_Fraktur-Bold.woff": { - "role": "observe", - "sha256": "9be7ceb88004ab8ad124082246fbfcca4091e36385d4ec6ed1df67375dad50fb", - "size": 13296 - }, - "dist-webui/client/fonts/KaTeX_Fraktur-Bold.woff2": { - "role": "observe", - "sha256": "74444efd593c005e3f4573b44524704c0af0a937fe911cca9e94068d0d140d3f", - "size": 11348 - }, - "dist-webui/client/fonts/KaTeX_Fraktur-Regular.ttf": { - "role": "observe", - "sha256": "1e6f9579e90e2cac37f8f60a597c436e075c114385652b7cbeb0dec0421291b3", - "size": 19572 - }, - "dist-webui/client/fonts/KaTeX_Fraktur-Regular.woff": { - "role": "observe", - "sha256": "5e28753be717dac97f559f49bc10be9cf3c124ddcabda6659d11cb68febc6463", - "size": 13208 - }, - "dist-webui/client/fonts/KaTeX_Fraktur-Regular.woff2": { - "role": "observe", - "sha256": "51814d270d06ff0255dba0799994fa4d8c84d11f09951d47595f4abb1f3602dc", - "size": 11316 - }, - "dist-webui/client/fonts/KaTeX_Main-Bold.ttf": { - "role": "observe", - "sha256": "138ac28d1663b3037e9c5f52371fa5c63d8324f4a38d22cd573e6ea3a3fd0cf8", - "size": 51336 - }, - "dist-webui/client/fonts/KaTeX_Main-Bold.woff": { - "role": "observe", - "sha256": "c76c5d696297d51b9cb1639c7da4334f0e7dec81b42b11213b5e25ef671bb822", - "size": 29912 - }, - "dist-webui/client/fonts/KaTeX_Main-Bold.woff2": { - "role": "observe", - "sha256": "0f60d1b897938ec918c8ce073092411baf9438f6739465693ff18b0f9d20b021", - "size": 25324 - }, - "dist-webui/client/fonts/KaTeX_Main-BoldItalic.ttf": { - "role": "observe", - "sha256": "70ee1f64a20f2048c21940ef46d0144fd215baa953ca69afd1e31e98544f708f", - "size": 32968 - }, - "dist-webui/client/fonts/KaTeX_Main-BoldItalic.woff": { - "role": "observe", - "sha256": "a6f7ec0d846ac7ad975adb8959c37ed49b94acbc4ae436db9ce9e20287e4a64c", - "size": 19412 - }, - "dist-webui/client/fonts/KaTeX_Main-BoldItalic.woff2": { - "role": "observe", - "sha256": "99cd42a3c072d918f2f44984a807cf7aa16e13545fd0875fc07c6c65f99e715b", - "size": 16780 - }, - "dist-webui/client/fonts/KaTeX_Main-Italic.ttf": { - "role": "observe", - "sha256": "0d85ae7cc30f23790a7f1a58c4a112fdca8aae769b6ba11429af1d98b1b6cb3a", - "size": 33580 - }, - "dist-webui/client/fonts/KaTeX_Main-Italic.woff": { - "role": "observe", - "sha256": "f1d6ef86f3b11a528bd5185199bd2443ecb2b0dead96d88674b5a2c12be24bdf", - "size": 19676 - }, - "dist-webui/client/fonts/KaTeX_Main-Italic.woff2": { - "role": "observe", - "sha256": "97479ca6cce906abc961ecac96faa5f9ca2e61b8e7670d475826bcdee9a7c267", - "size": 16988 - }, - "dist-webui/client/fonts/KaTeX_Main-Regular.ttf": { - "role": "observe", - "sha256": "d0332f52868370fd83ae7fa46470f90c8f2eab2fcf12bc4f88080b340c95a830", - "size": 53580 - }, - "dist-webui/client/fonts/KaTeX_Main-Regular.woff": { - "role": "observe", - "sha256": "c6368d87e8a1a3a5d337623d83d8dc4b868f242a9ad476237d6f8d1e0f168cdc", - "size": 30772 - }, - "dist-webui/client/fonts/KaTeX_Main-Regular.woff2": { - "role": "observe", - "sha256": "c2342cd8b869e01752a9321dc17213fc40d4d04c79688c1d43f2cf316abd7866", - "size": 26272 - }, - "dist-webui/client/fonts/KaTeX_Math-BoldItalic.ttf": { - "role": "observe", - "sha256": "f9377ab0271cda59af24bcffbd46a4d0c8a3572ffafdbb38de2ad5ea7b0d5ee5", - "size": 31196 - }, - "dist-webui/client/fonts/KaTeX_Math-BoldItalic.woff": { - "role": "observe", - "sha256": "850c0af5c2238497febaf5e461d880bf458c341f42f4f330f1b1ab5698b1998e", - "size": 18668 - }, - "dist-webui/client/fonts/KaTeX_Math-BoldItalic.woff2": { - "role": "observe", - "sha256": "dc47344dbb6cb5b655c8460d561f4df5f501b90c804ad3c6cec65fe322351ab1", - "size": 16400 - }, - "dist-webui/client/fonts/KaTeX_Math-Italic.ttf": { - "role": "observe", - "sha256": "08ce98e51b04d58945a301e639e02b6998af29fdfd61a7b8afdd07bbfc479d4a", - "size": 31308 - }, - "dist-webui/client/fonts/KaTeX_Math-Italic.woff": { - "role": "observe", - "sha256": "8a8d244581371912b8f3f5a23e2437cb2a59cd9bcaebb0346e722c05737a2571", - "size": 18748 - }, - "dist-webui/client/fonts/KaTeX_Math-Italic.woff2": { - "role": "observe", - "sha256": "7af58c5ec8f132a2ddde9027c6d7814decce4d3b822a11192a42a20e2e973264", - "size": 16440 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Bold.ttf": { - "role": "observe", - "sha256": "1ece03f79f95277d57dc7f6b435a74e1379b0d46104a8530286b60ff49369ea0", - "size": 24504 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Bold.woff": { - "role": "observe", - "sha256": "ece03cfd83e22c212cdef66feb8442d25a083beb988db3f1883f3f9738d750ba", - "size": 14408 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Bold.woff2": { - "role": "observe", - "sha256": "e99ae51144bf1232efcc1bfe5add36262c6866b0faab24fa75740e1b98577a62", - "size": 12216 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Italic.ttf": { - "role": "observe", - "sha256": "3931dd81faed86ba021bb2bbdc36f5bed9a38d6b4f4077aca59b265aa1b02083", - "size": 22364 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Italic.woff": { - "role": "observe", - "sha256": "91ee67500cc0129aa0ace3ac5c61ff1692102f0f31d02b69347fba35dcb75bf2", - "size": 14112 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Italic.woff2": { - "role": "observe", - "sha256": "00b26ac825e2095056396e0553b8ac26d3f8ad158c3826e28b4c45b385c4714a", - "size": 12028 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Regular.ttf": { - "role": "observe", - "sha256": "f36ea897e19f4a2e571d1e900e4e3710e438deb05a842486045ba0a3e616a4ad", - "size": 19436 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Regular.woff": { - "role": "observe", - "sha256": "11e4dc8a6471ff6d6ee561d53d10fde8f7489e798257ff449c5d37c197435605", - "size": 12316 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Regular.woff2": { - "role": "observe", - "sha256": "68e8c73ef42afd3ccec58bf0fba302cce448938e7fc020a5e31f8a952eee1342", - "size": 10344 - }, - "dist-webui/client/fonts/KaTeX_Script-Regular.ttf": { - "role": "observe", - "sha256": "1c67f068fea8bb09bf099c088b1cf64bd27516a6e07f4684344873564bb66a67", - "size": 16648 - }, - "dist-webui/client/fonts/KaTeX_Script-Regular.woff": { - "role": "observe", - "sha256": "d96cdf2b3bdd4d64a8fd5f74a4c467f123a8a73931cd435889f08ffaf9bf947a", - "size": 10588 - }, - "dist-webui/client/fonts/KaTeX_Script-Regular.woff2": { - "role": "observe", - "sha256": "036d4e95149b69ff9bcc0cd55771efeb25ffa3947293e69acd78d5ac328c684b", - "size": 9644 - }, - "dist-webui/client/fonts/KaTeX_Size1-Regular.ttf": { - "role": "observe", - "sha256": "95b6d2f1a50173bfedb8c63e1d1c99b10427d0a4df4201cb44513b226951a22b", - "size": 12228 - }, - "dist-webui/client/fonts/KaTeX_Size1-Regular.woff": { - "role": "observe", - "sha256": "c943cc986384f59e86bea5fd7dc50a9c4dfe567a7c05eb40d6790720dead97c9", - "size": 6496 - }, - "dist-webui/client/fonts/KaTeX_Size1-Regular.woff2": { - "role": "observe", - "sha256": "6b47c40166b6dbe21a5dfca7718413f2147fd2399be1ba605d8ad39cedf25dfe", - "size": 5468 - }, - "dist-webui/client/fonts/KaTeX_Size2-Regular.ttf": { - "role": "observe", - "sha256": "a6b2099fb555c60e3a0db3a08842ebf1d732c6eb4e4bf44913613bed4fc4e39b", - "size": 11508 - }, - "dist-webui/client/fonts/KaTeX_Size2-Regular.woff": { - "role": "observe", - "sha256": "2014c523c3210bcc166648c4d4cc57f05b747df07a24277bf71c51e67dc79e3d", - "size": 6188 - }, - "dist-webui/client/fonts/KaTeX_Size2-Regular.woff2": { - "role": "observe", - "sha256": "d04c54219f9eaec6d4d4fd42dfb28785975a4794d6b2fc71e566b9cd6db842dd", - "size": 5208 - }, - "dist-webui/client/fonts/KaTeX_Size3-Regular.ttf": { - "role": "observe", - "sha256": "500e04d54f0d51666332c9d2089aa803be22aa878eca539e59fa53c6e522b082", - "size": 7588 - }, - "dist-webui/client/fonts/KaTeX_Size3-Regular.woff": { - "role": "observe", - "sha256": "6ab6b62e9b62dae2c00dd90f791bd10950be0ecc3490d7d6045f51c2e8fe0949", - "size": 4420 - }, - "dist-webui/client/fonts/KaTeX_Size3-Regular.woff2": { - "role": "observe", - "sha256": "73d591271b1604960cb10bb90fee021670af7297017e0e98480b332d11f51995", - "size": 3624 - }, - "dist-webui/client/fonts/KaTeX_Size4-Regular.ttf": { - "role": "observe", - "sha256": "c647367d1dd4e162468717d020e1fc0f1dc5c26ebfdffbe55261713bf88c5877", - "size": 10364 - }, - "dist-webui/client/fonts/KaTeX_Size4-Regular.woff": { - "role": "observe", - "sha256": "99f9c6750b489c9462bf04900bd3f939df9b829339daaaaa99ef5495cdddea58", - "size": 5980 - }, - "dist-webui/client/fonts/KaTeX_Size4-Regular.woff2": { - "role": "observe", - "sha256": "a4af7d414440a1c1790825cfb700cf9cf43b0f2c4b04f0ebc523011ad9853ec0", - "size": 4928 - }, - "dist-webui/client/fonts/KaTeX_Typewriter-Regular.ttf": { - "role": "observe", - "sha256": "f01f3e87d9c6a61c0c081ceb577abd864eb00a612f7ac1620dd6915fad2ef5aa", - "size": 27556 - }, - "dist-webui/client/fonts/KaTeX_Typewriter-Regular.woff": { - "role": "observe", - "sha256": "e14fed02b1aba7ce9f5afd5844b5d0321b22351febc720e0de8b8723527609f7", - "size": 16028 - }, - "dist-webui/client/fonts/KaTeX_Typewriter-Regular.woff2": { - "role": "observe", - "sha256": "71d517d67827787cfabdf186914cc3358eda539e37931941f2b2fd4a21f68c0b", - "size": 13568 - }, - "dist-webui/client/fonts/LICENSE.katex-fonts": { - "role": "observe", - "sha256": "00a890c71e7cf602c5237d25f7ac9fc9fa0a094f4af5d32c7c9e30e81971b792", - "size": 220, - "normalized_sha256": "00a890c71e7cf602c5237d25f7ac9fc9fa0a094f4af5d32c7c9e30e81971b792" - }, "docs/README.md": { "role": "index", "sha256": "716a63f5c7999e61aa40f7c9bad44ade0a2efc1f6c630568d9f110d9a6aed089", @@ -25406,9 +24670,9 @@ }, "packages/webui/src/client/features/miniapp/application/miniapp-workflows.ts": { "role": "index", - "sha256": "1b8a1ab8af8178d756664a40fc135b5c5981464cd335e2fa406a62d53dd72974", - "size": 54343, - "normalized_sha256": "1b8a1ab8af8178d756664a40fc135b5c5981464cd335e2fa406a62d53dd72974" + "sha256": "b8919e0a18fb5117afd0e4e6c57d26990219c3ce0d5d45484723ed30812cdeba", + "size": 54643, + "normalized_sha256": "b8919e0a18fb5117afd0e4e6c57d26990219c3ce0d5d45484723ed30812cdeba" }, "packages/webui/src/client/features/miniapp/bindings/use-miniapp-catalogue.public.ts": { "role": "index", @@ -27025,9 +26289,9 @@ }, "packages/webui/src/client/platform/wire.ts": { "role": "index", - "sha256": "8a53501fb7ce146941d81fdea485859d981e1439271be3eaecd36e509ada6cf7", - "size": 38361, - "normalized_sha256": "8a53501fb7ce146941d81fdea485859d981e1439271be3eaecd36e509ada6cf7" + "sha256": "8ee603cab0f2fdf669ffba8f74187fd57676476b18ceadfb4c888adf527567a0", + "size": 38379, + "normalized_sha256": "8ee603cab0f2fdf669ffba8f74187fd57676476b18ceadfb4c888adf527567a0" }, "packages/webui/src/client/projection/common/context-menu.ts": { "role": "index", @@ -28638,9 +27902,9 @@ }, "packages/webui/src/server/operation/operation-dispatch.ts": { "role": "index", - "sha256": "03c1a80198e1a7a64d1951bd0f5effabe8827a2b20e602cbd069436485c55722", - "size": 6817, - "normalized_sha256": "03c1a80198e1a7a64d1951bd0f5effabe8827a2b20e602cbd069436485c55722" + "sha256": "4f447ebb0cb8b7cecac1b97f20c48b669e4e6af94961e4cd527ade362d5716ed", + "size": 7540, + "normalized_sha256": "4f447ebb0cb8b7cecac1b97f20c48b669e4e6af94961e4cd527ade362d5716ed" }, "packages/webui/src/server/operation/operations.ts": { "role": "index", @@ -29076,9 +28340,9 @@ }, "packages/webui/src/shared/envelope.ts": { "role": "index", - "sha256": "98044229fce3336f71eedc0d377a1bc80381969a26772dd274602e89d887fe3e", - "size": 10158, - "normalized_sha256": "98044229fce3336f71eedc0d377a1bc80381969a26772dd274602e89d887fe3e" + "sha256": "2fa53f2fe61ddd8813593efd076d6187279350001f9de5a4bcd2f78c011cfe30", + "size": 10391, + "normalized_sha256": "2fa53f2fe61ddd8813593efd076d6187279350001f9de5a4bcd2f78c011cfe30" }, "packages/webui/src/shared/operation-codecs.ts": { "role": "index", @@ -30834,9 +30098,9 @@ }, "packages/webui/test/unit/miniapp-client-state.test.ts": { "role": "observe", - "sha256": "5258988f815dd7da3526f29649385cd9d39a6f1ed81743f7500d3db1c90c87fc", - "size": 21759, - "normalized_sha256": "5258988f815dd7da3526f29649385cd9d39a6f1ed81743f7500d3db1c90c87fc" + "sha256": "8424fe8d741cef4115011c1cbb88a6b607621b4058f99696d7336d61a0590f5a", + "size": 22008, + "normalized_sha256": "8424fe8d741cef4115011c1cbb88a6b607621b4058f99696d7336d61a0590f5a" }, "packages/webui/test/unit/miniapp-operations.test.ts": { "role": "observe", @@ -31830,9 +31094,9 @@ }, "packages/webui/test/unit/webui-transport-wire.test.ts": { "role": "observe", - "sha256": "4d9e5b0ad87ad203d683b024d2c6c4c56fca16f5565e9df396ba0aee393a5362", - "size": 33999, - "normalized_sha256": "4d9e5b0ad87ad203d683b024d2c6c4c56fca16f5565e9df396ba0aee393a5362" + "sha256": "793d0ab954ed7e9c0dc897dbde379d4deb20d2c2259fb7df0227e6e8bb89b827", + "size": 34703, + "normalized_sha256": "793d0ab954ed7e9c0dc897dbde379d4deb20d2c2259fb7df0227e6e8bb89b827" }, "packages/webui/test/unit/webui-unary-operation-typing.test.ts": { "role": "observe", @@ -31878,9 +31142,9 @@ }, "packages/webui/test/unit/webui-wire-envelope.test.ts": { "role": "observe", - "sha256": "5b570c3d47c613becb621bc7447ca6f075aff96fa17da8a6cd7185c534f49e38", - "size": 10190, - "normalized_sha256": "5b570c3d47c613becb621bc7447ca6f075aff96fa17da8a6cd7185c534f49e38" + "sha256": "aa62fbfeba2cc0ba43bbfa9ba62d7a8a6c352dc3d0ac5d50e17d37b8e11c4228", + "size": 11014, + "normalized_sha256": "aa62fbfeba2cc0ba43bbfa9ba62d7a8a6c352dc3d0ac5d50e17d37b8e11c4228" }, "packages/webui/test/unit/webui-workspace-archive.test.ts": { "role": "observe", diff --git a/aoci.code.txt b/aoci.code.txt index b6c5f1a9e..d17e317ad 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -4873,7 +4873,7 @@ miniapp-agent-bridge.ts[SE4L]: F:Bridges Mini App requests to agent operations. miniapp-bridge.ts[SE4S]: F:Constructs Mini App bridge requests. | R:- | A:- | S:- miniapp-tool-bridge.ts[SE4T]: F:Bridges Mini App tool calls through the client tool port. | R:- | A:- | S:- miniapp-window-bridge.ts[SE4T]: F:Defines Mini App window request messages and bridges window operations. | R:- | A:- | S:- -miniapp-workflows.ts[SE4L]: F:Coordinates Mini App workflows through a client port slice. | R:- | A:- | S:- +miniapp-workflows.ts[AU4L]: F:Coordinates Mini App client workflows, catalogue state and presentation refusals. | R:code:packages/webui/src/shared/envelope.ts | A:- | S:A wrapped ownership refusal uses the same presentation as a direct ownership refusal. ===//packages/webui/src/client/features/miniapp/bindings/=== use-miniapp-catalogue.public.ts[SE4T]: F:Exposes Mini App catalogue summaries to React consumers. | R:- | A:- | S:- @@ -5263,7 +5263,7 @@ team-mode.ts[SE4T]: F:Models and resolves team mode for sessions. | R:- | A:- | transport-origin.ts[SE4T]: F:Converts WebSocket URLs to HTTP transport origins. | R:- | A:- | S:- transport.ts[SE4L]: F:Implements the browser transport over the WebUI wire. | R:- | A:- | S:- webui-shutdown.ts[SE4T]: F:Requests WebUI service shutdown and reports refusals. | R:- | A:- | S:- -wire.ts[SE4L]: F:Defines and implements the WebSocket wire and its options. | R:- | A:- | S:- +wire.ts[IN4L]: F:Implements WebUI WebSocket requests, streams and connection lifecycle. | R:code:packages/webui/src/shared/envelope.ts | A:- | S:Unary requests preserve Mini App preparation reasons on their typed errors. ===//packages/webui/src/client/projection/common/=== context-menu.ts[SE4T]: F:Places browser context menus relative to the viewport. | R:- | A:- | S:- @@ -5560,7 +5560,7 @@ messages.ts[SE4S]: F:Defines message history retrieval. | R:- | A:- | S:- miniapp-agent.ts[SE4S]: F:Defines Mini App agent turn operations. | R:- | A:- | S:- miniapp.ts[SE4M]: F:Defines Mini App catalogue and runtime operations. | R:- | A:- | S:- operation-contract.ts[SE4S]: F:Defines server operation and context contracts. | R:- | A:- | S:- -operation-dispatch.ts[SE4M]: F:Dispatches WebUI transport frames to operations. | R:- | A:- | S:- +operation-dispatch.ts[EN4M]: F:Validates WebUI requests, dispatches operations and sends response, event or error frames. | R:code:packages/webui/src/shared/envelope.ts | A:dispatchWebuiFrame | S:Only Mini App open preparation errors forward a validated reason code. operations.ts[SE4L]: F:Exports the server operation catalogue. | R:- | A:- | S:- permission-mode.ts[SE4T]: F:Defines permission mode operations. | R:- | A:- | S:- personalization.ts[SE4T]: F:Defines personalization and global instructions operations. | R:- | A:- | S:- @@ -5598,7 +5598,7 @@ usage.ts[SE4T]: F:Projects turn usage and identifies compaction messages. | R:- account-legal-links.ts[SE4T]: F:Resolves account legal links by scope. | R:- | A:- | S:- capability-manifest.ts[SE4M]: F:Enumerates capabilities exposed by the WebUI. | R:- | A:- | S:- design-input.ts[SE4T]: F:Validates Design input and caps media bytes. | R:- | A:- | S:- -envelope.ts[SE4M]: F:Defines the versioned WebUI transport envelope. | R:- | A:- | S:- +envelope.ts[CN4M]: F:Declares and decodes versioned WebUI transport frames and typed wire errors. | R:- | A:- | S:An optional preparation reason accompanies the stable primary error code. operation-codecs.ts[SE4M]: F:Defines result codecs for WebUI operations. | R:- | A:- | S:- operation-names.ts[SE4L]: F:Enumerates operation names used by the WebUI protocol. | R:- | A:- | S:- plugin-management.ts[SE4T]: F:Defines plugin management action payloads. | R:- | A:- | S:- diff --git a/packages/webui/src/client/features/miniapp/application/miniapp-workflows.ts b/packages/webui/src/client/features/miniapp/application/miniapp-workflows.ts index 07831a6da..683ffb2e3 100644 --- a/packages/webui/src/client/features/miniapp/application/miniapp-workflows.ts +++ b/packages/webui/src/client/features/miniapp/application/miniapp-workflows.ts @@ -221,9 +221,13 @@ function refusalOf(error: unknown): WebuiMiniAppRefusal { error && typeof error === "object" && typeof (error as { code?: unknown }).code === "string" ? ((error as { code: string }).code) : "harness_error"; + const message = error instanceof Error ? error.message : String(error); + const reasonCode = code === "MINIAPP_PREPARATION_FAILED" && error instanceof Error + ? (error as { reasonCode?: unknown }).reasonCode + : undefined; return { - code, - message: error instanceof Error ? error.message : String(error), + code: reasonCode === "OWNED_ELSEWHERE" ? reasonCode : code, + message: typeof reasonCode === "string" ? `${message} (${reasonCode})` : message, }; } diff --git a/packages/webui/src/client/platform/wire.ts b/packages/webui/src/client/platform/wire.ts index 23775b5b9..f2db1af49 100644 --- a/packages/webui/src/client/platform/wire.ts +++ b/packages/webui/src/client/platform/wire.ts @@ -467,7 +467,7 @@ export function createWebuiWire({ // stable code intact instead of turning every refusal into one shape. fail( session, - new WebuiWireError(frame.code, frame.message, frame.requestId), + new WebuiWireError(frame.code, frame.message, frame.requestId, frame.reasonCode), ); return; } diff --git a/packages/webui/src/server/operation/operation-dispatch.ts b/packages/webui/src/server/operation/operation-dispatch.ts index 8ca728e00..ff337738a 100644 --- a/packages/webui/src/server/operation/operation-dispatch.ts +++ b/packages/webui/src/server/operation/operation-dispatch.ts @@ -9,6 +9,7 @@ import { type WebuiWireErrorCode, } from "../../shared/envelope.js"; import type { WebuiOperationRegistryEntry } from "./operations.js"; +import { OPEN_MINI_APP_OPERATION_NAME } from "../../shared/operation-names.js"; /** * The stable code a thrown failure carries, if it names one. @@ -150,11 +151,21 @@ export async function dispatchWebuiFrame( sendFrame(ws, responseFrame(parsed.requestId, result.body)); } catch (error) { const message = error instanceof Error ? error.message : String(error); + const code = stableCodeOf(error); + const reason = (error as { reasonCode?: unknown } | null)?.reasonCode; + const reasonCode = parsed.operation === OPEN_MINI_APP_OPERATION_NAME && + code === "MINIAPP_PREPARATION_FAILED" && + typeof reason === "string" && /^[A-Z][A-Z0-9_]{0,63}$/u.test(reason) + ? reason + : undefined; + if (parsed.operation === OPEN_MINI_APP_OPERATION_NAME && code === "MINIAPP_PREPARATION_FAILED") { + console.warn("[webui] Mini App publication preparation failed", { code, reasonCode }); + } // The capability's own stable code is preserved; only a failure that names // no code at all becomes `harness_error`. sendFrame( ws, - errorFrame(parsed.requestId, stableCodeOf(error), message), + errorFrame(parsed.requestId, code, message, reasonCode), ); } } @@ -201,6 +212,7 @@ export function errorFrame( requestId: string, code: string, message: string, + reasonCode?: string, ): WebuiErrorFrame { return { protocolVersion: WEBUI_PROTOCOL_VERSION, @@ -208,5 +220,6 @@ export function errorFrame( requestId, code, message, + ...(reasonCode !== undefined ? { reasonCode } : {}), }; } diff --git a/packages/webui/src/shared/envelope.ts b/packages/webui/src/shared/envelope.ts index 7fe6c977e..ece8507bb 100644 --- a/packages/webui/src/shared/envelope.ts +++ b/packages/webui/src/shared/envelope.ts @@ -49,6 +49,7 @@ export interface WebuiErrorFrame { readonly requestId: string; readonly code: string; readonly message: string; + readonly reasonCode?: string; } export interface WebuiEventFrame { @@ -218,6 +219,7 @@ export function decodeWebuiServerFrame(text: string): WebuiFrameDecode { requestId: candidate.requestId, code: candidate.code, message: candidate.message, + ...(typeof candidate.reasonCode === "string" ? { reasonCode: candidate.reasonCode } : {}), }, }; } @@ -245,16 +247,19 @@ export class WebuiWireError extends Error { readonly code: WebuiWireErrorCode; /** The request this refusal answers, or {@link WEBUI_ANONYMOUS_REQUEST_ID} for one that could not be attributed. */ readonly requestId: string; + readonly reasonCode: string | undefined; constructor( code: WebuiWireErrorCode, message: string, requestId: string = WEBUI_ANONYMOUS_REQUEST_ID, + reasonCode?: string, ) { super(message); this.name = "WebuiWireError"; this.code = code; this.requestId = requestId; + this.reasonCode = reasonCode; } } diff --git a/packages/webui/test/unit/miniapp-client-state.test.ts b/packages/webui/test/unit/miniapp-client-state.test.ts index 7c2aedd7a..97f42ac24 100644 --- a/packages/webui/test/unit/miniapp-client-state.test.ts +++ b/packages/webui/test/unit/miniapp-client-state.test.ts @@ -360,33 +360,38 @@ describe("the Mini App business", () => { expect(workflows.getSnapshot().presentations.fourth?.kind).toBe("open"); }); - it("reports an app another client owns, naming that client, in both surfaces' state", async () => { - const port = scriptedPort({ - miniApps: [miniApp("shared-app", "stopped")], - open: async () => { - throw Object.assign( - new Error("Mini App shared-app is already running in electron (pid 4242)"), - { code: "OWNED_ELSEWHERE" }, - ); - }, - }); - const workflows = createWebuiMiniAppWorkflows({ port }); - await workflows.loadListing(); - expect(await workflows.open("shared-app")).toBe(false); - - const snapshot = workflows.getSnapshot(); - const refusal = snapshot.refusals["shared-app"]; - expect(refusal?.code).toBe("OWNED_ELSEWHERE"); - const text = webuiMiniAppRefusalText({ - code: refusal!.code, - message: refusal!.message, - rows: snapshot.listing.rows, - }); - // Keep diagnostics while presenting a neutral client name. - expect(text).not.toContain("electron"); - expect(text).toContain("4242"); - expect(snapshot.presentations["shared-app"]).toBeUndefined(); - }); + it.each(["OWNED_ELSEWHERE", "MINIAPP_PREPARATION_FAILED"])( + "reports an app another client owns when the runtime returns %s", + async (code) => { + const wrapped = code === "MINIAPP_PREPARATION_FAILED"; + const port = scriptedPort({ + miniApps: [miniApp("shared-app", "stopped")], + open: async () => { + throw Object.assign( + new Error(wrapped + ? "Mini App publication preparation failed" + : "Mini App shared-app is already running in electron (pid 4242)"), + { code, ...(wrapped ? { reasonCode: "OWNED_ELSEWHERE" } : {}) }, + ); + }, + }); + const workflows = createWebuiMiniAppWorkflows({ port }); + await workflows.loadListing(); + expect(await workflows.open("shared-app")).toBe(false); + + const snapshot = workflows.getSnapshot(); + const refusal = snapshot.refusals["shared-app"]; + expect(refusal?.code).toBe("OWNED_ELSEWHERE"); + const text = webuiMiniAppRefusalText({ + code: refusal!.code, + message: refusal!.message, + rows: snapshot.listing.rows, + }); + expect(text).not.toContain("electron"); + expect(text).toContain(wrapped ? "OWNED_ELSEWHERE" : "4242"); + expect(snapshot.presentations["shared-app"]).toBeUndefined(); + }, + ); it("offers to stop a Mini App another client is running", () => { const rows = webuiMiniAppRows([ diff --git a/packages/webui/test/unit/webui-transport-wire.test.ts b/packages/webui/test/unit/webui-transport-wire.test.ts index 4935a9159..53731d5eb 100644 --- a/packages/webui/test/unit/webui-transport-wire.test.ts +++ b/packages/webui/test/unit/webui-transport-wire.test.ts @@ -664,6 +664,26 @@ describe("an inbound frame is judged before it is believed", () => { ); }); + it("carries the Mini App preparation reason to the request caller", async () => { + const transport = transportWith(ControllableSocket); + const pending = transport.openMiniApp!({ pluginId: "fixture" }); + const refused = expect(pending).rejects.toMatchObject({ + code: "MINIAPP_PREPARATION_FAILED", + reasonCode: "OWNED_ELSEWHERE", + }); + await tick(); + const socket = ControllableSocket.latest!; + socket.deliver({ + protocolVersion: 1, + kind: "error", + requestId: socket.request.requestId, + code: "MINIAPP_PREPARATION_FAILED", + message: "Mini App publication preparation failed", + reasonCode: "OWNED_ELSEWHERE", + }); + await refused; + }); + it("refuses a frame from a different protocol version instead of reading it as an answer", async () => { // The client used to `JSON.parse(...) as WireFrame` and check nothing else, // so a frame from a service speaking another version was accepted as though diff --git a/packages/webui/test/unit/webui-wire-envelope.test.ts b/packages/webui/test/unit/webui-wire-envelope.test.ts index f658637f3..ea22ba1e6 100644 --- a/packages/webui/test/unit/webui-wire-envelope.test.ts +++ b/packages/webui/test/unit/webui-wire-envelope.test.ts @@ -34,6 +34,26 @@ function socket(): { readyState: number; OPEN: number; sent: string[]; send(payl } describe("the service judges an inbound frame", () => { + it("preserves the reason of a Mini App publication refusal", async () => { + const ws = socket(); + const entry = { + operation: { validate: () => ({ ok: true, body: {} }) }, + handle: async () => { + throw Object.assign(new Error("Mini App publication preparation failed"), { + code: "MINIAPP_PREPARATION_FAILED", + reasonCode: "OWNED_ELSEWHERE", + }); + }, + } as unknown as WebuiOperationRegistryEntry; + await dispatchWebuiFrame(ws as unknown as WebSocket, + { protocolVersion: 1, kind: "request", requestId: "open", operation: "openMiniApp", body: {} }, + new Map([["openMiniApp", entry]]), true, () => undefined); + expect(JSON.parse(ws.sent[0]!)).toMatchObject({ + code: "MINIAPP_PREPARATION_FAILED", + reasonCode: "OWNED_ELSEWHERE", + }); + }); + it("observes a rejecting finalizer once when abort interrupts a parked pull", async () => { const ws = socket(); const controller = new AbortController(); From 78335bcb6d1082685b544953bb4de3618d49163b Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 10:16:46 +0800 Subject: [PATCH 2/3] fix(webui): carry runner causes through the client frame --- .aoci/baseline.json | 26 +++++++++---------- aoci.code.txt | 4 +-- .../src/client/platform/event-channel.ts | 1 + .../server/operation/operation-dispatch.ts | 16 +++++++----- .../integration/miniapp-real-flow.test.ts | 1 + 5 files changed, 26 insertions(+), 22 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index 9a0b40443..e5ae6833a 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T02:10:53Z", + "updated_at": "2026-11-20T02:16:33Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "1096faf618c5db652d3c6e8e1b7e9f6f25480ea7836b90c9126e92f62cc391d9", - "size": 636926, - "normalized_sha256": "1096faf618c5db652d3c6e8e1b7e9f6f25480ea7836b90c9126e92f62cc391d9" + "sha256": "f003c01b3753937b3cdbd229e454f084b9c8dff9cf5027a716e8d9be620f4fcb", + "size": 637134, + "normalized_sha256": "f003c01b3753937b3cdbd229e454f084b9c8dff9cf5027a716e8d9be620f4fcb" }, "aoci.meta.txt": { "role": "index", @@ -26211,9 +26211,9 @@ }, "packages/webui/src/client/platform/event-channel.ts": { "role": "index", - "sha256": "fae86f2709bfc7b79babb225d00591b93a8a963883b81165e41c012f690595a7", - "size": 24078, - "normalized_sha256": "fae86f2709bfc7b79babb225d00591b93a8a963883b81165e41c012f690595a7" + "sha256": "aaa819d1d116843220db7f4a9bdbb8896f565731ccff39b6cbcfada33c123b08", + "size": 24114, + "normalized_sha256": "aaa819d1d116843220db7f4a9bdbb8896f565731ccff39b6cbcfada33c123b08" }, "packages/webui/src/client/platform/miniapp-frame-url.ts": { "role": "index", @@ -27902,9 +27902,9 @@ }, "packages/webui/src/server/operation/operation-dispatch.ts": { "role": "index", - "sha256": "4f447ebb0cb8b7cecac1b97f20c48b669e4e6af94961e4cd527ade362d5716ed", - "size": 7540, - "normalized_sha256": "4f447ebb0cb8b7cecac1b97f20c48b669e4e6af94961e4cd527ade362d5716ed" + "sha256": "f069d78ac61b888848e2c6824b6ddb5c1eb3dc922c0628beb2a77e3f28c0d5cf", + "size": 7610, + "normalized_sha256": "f069d78ac61b888848e2c6824b6ddb5c1eb3dc922c0628beb2a77e3f28c0d5cf" }, "packages/webui/src/server/operation/operations.ts": { "role": "index", @@ -29456,9 +29456,9 @@ }, "packages/webui/test/integration/miniapp-real-flow.test.ts": { "role": "observe", - "sha256": "b25bdbed07987d6c1538d449164a355c83145dcec1fe392965b0dee0bd0538df", - "size": 10215, - "normalized_sha256": "b25bdbed07987d6c1538d449164a355c83145dcec1fe392965b0dee0bd0538df" + "sha256": "e32a53d120e03fcd3390a17c355bbcce8bd1d3f567092c4484d3a66462d7079c", + "size": 10294, + "normalized_sha256": "e32a53d120e03fcd3390a17c355bbcce8bd1d3f567092c4484d3a66462d7079c" }, "packages/webui/test/integration/miniapp-ui-flow.test.ts": { "role": "observe", diff --git a/aoci.code.txt b/aoci.code.txt index d17e317ad..fde1c4e17 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -5250,7 +5250,7 @@ app-mode.ts[SE4T]: F:Defines coding and work application modes. | R:- | A:- | S: browser-auto-open.ts[SE4T]: F:Persists the browser auto-open preference. | R:- | A:- | S:- browser-dom.ts[SE4L]: F:Provides browser drawing helpers and exports canvas and image types. | R:- | A:- | S:- connection-health.ts[SE4S]: F:Provides connection health helpers including unref for timers. | R:- | A:- | S:- -event-channel.ts[SE4L]: F:Adapts and exposes client event watching for the browser. | R:- | A:- | S:- +event-channel.ts[IN4L]: F:Manages reusable WebUI WebSocket sessions and event watchers. | R:code:packages/webui/src/shared/envelope.ts,code:packages/webui/src/client/platform/wire.ts | A:WireFrame | S:The error frame may include a diagnostic reason beside its primary code. miniapp-frame-url.ts[SE4T]: F:Builds the URL for a Mini App frame. | R:- | A:- | S:- no-project.ts[SE4T]: F:Recognizes the flag for a session without a project. | R:- | A:- | S:- page-host.ts[SE4T]: F:Reads the hostname of the hosting page. | R:- | A:- | S:- @@ -5560,7 +5560,7 @@ messages.ts[SE4S]: F:Defines message history retrieval. | R:- | A:- | S:- miniapp-agent.ts[SE4S]: F:Defines Mini App agent turn operations. | R:- | A:- | S:- miniapp.ts[SE4M]: F:Defines Mini App catalogue and runtime operations. | R:- | A:- | S:- operation-contract.ts[SE4S]: F:Defines server operation and context contracts. | R:- | A:- | S:- -operation-dispatch.ts[EN4M]: F:Validates WebUI requests, dispatches operations and sends response, event or error frames. | R:code:packages/webui/src/shared/envelope.ts | A:dispatchWebuiFrame | S:Only Mini App open preparation errors forward a validated reason code. +operation-dispatch.ts[EN4M]: F:Validates WebUI requests, dispatches operations and sends response, event or error frames. | R:code:packages/webui/src/shared/envelope.ts | A:dispatchWebuiFrame | S:Mini App preparation failures forward a validated reason or immediate cause code, never the cause payload. operations.ts[SE4L]: F:Exports the server operation catalogue. | R:- | A:- | S:- permission-mode.ts[SE4T]: F:Defines permission mode operations. | R:- | A:- | S:- personalization.ts[SE4T]: F:Defines personalization and global instructions operations. | R:- | A:- | S:- diff --git a/packages/webui/src/client/platform/event-channel.ts b/packages/webui/src/client/platform/event-channel.ts index 7c857c459..c22c24bc4 100644 --- a/packages/webui/src/client/platform/event-channel.ts +++ b/packages/webui/src/client/platform/event-channel.ts @@ -78,6 +78,7 @@ export type WireFrame = readonly requestId: string; readonly code: WebuiWireErrorCode; readonly message: string; + readonly reasonCode?: string; }; export interface WebuiSocket { diff --git a/packages/webui/src/server/operation/operation-dispatch.ts b/packages/webui/src/server/operation/operation-dispatch.ts index ff337738a..bfe0c0663 100644 --- a/packages/webui/src/server/operation/operation-dispatch.ts +++ b/packages/webui/src/server/operation/operation-dispatch.ts @@ -152,13 +152,15 @@ export async function dispatchWebuiFrame( } catch (error) { const message = error instanceof Error ? error.message : String(error); const code = stableCodeOf(error); - const reason = (error as { reasonCode?: unknown } | null)?.reasonCode; - const reasonCode = parsed.operation === OPEN_MINI_APP_OPERATION_NAME && - code === "MINIAPP_PREPARATION_FAILED" && - typeof reason === "string" && /^[A-Z][A-Z0-9_]{0,63}$/u.test(reason) - ? reason - : undefined; - if (parsed.operation === OPEN_MINI_APP_OPERATION_NAME && code === "MINIAPP_PREPARATION_FAILED") { + const miniAppPreparationFailed = parsed.operation === OPEN_MINI_APP_OPERATION_NAME && + code === "MINIAPP_PREPARATION_FAILED"; + let reasonCode: string | undefined; + if (miniAppPreparationFailed) { + const reason = (error as { reasonCode?: unknown }).reasonCode ?? + (error instanceof Error ? stableCodeOf(error.cause) : undefined); + if (typeof reason === "string" && /^[A-Z][A-Z0-9_]{0,63}$/u.test(reason)) { + reasonCode = reason; + } console.warn("[webui] Mini App publication preparation failed", { code, reasonCode }); } // The capability's own stable code is preserved; only a failure that names diff --git a/packages/webui/test/integration/miniapp-real-flow.test.ts b/packages/webui/test/integration/miniapp-real-flow.test.ts index 17d28ff11..2bb50001a 100644 --- a/packages/webui/test/integration/miniapp-real-flow.test.ts +++ b/packages/webui/test/integration/miniapp-real-flow.test.ts @@ -161,6 +161,7 @@ describe("the Mini App business flow against the real host", () => { // person has to act on: the entry refused to start. const cause = await openCause(host, name); expect(cause.join(" <- ")).toContain("RUNNER_START_FAILED"); + expect(opened.reasonCode, cause.join(" <- ")).toBe("RUNNER_START_FAILED"); // And the Mini App is not left claiming to be running: the row says the // start failed, and names the reason, instead of reading as a Mini App From 4e8e887d9cc8069fad18764705258659759be7e0 Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 10:20:11 +0800 Subject: [PATCH 3/3] test(webui): cover Mini App ownership refusal and retry --- .aoci/baseline.json | 8 ++-- .../integration/miniapp-real-flow.test.ts | 37 +++++++++++++++++++ 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index e5ae6833a..130a80e6f 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T02:16:33Z", + "updated_at": "2026-11-20T02:19:56Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -29456,9 +29456,9 @@ }, "packages/webui/test/integration/miniapp-real-flow.test.ts": { "role": "observe", - "sha256": "e32a53d120e03fcd3390a17c355bbcce8bd1d3f567092c4484d3a66462d7079c", - "size": 10294, - "normalized_sha256": "e32a53d120e03fcd3390a17c355bbcce8bd1d3f567092c4484d3a66462d7079c" + "sha256": "dce9b2952cc6327ad0cd3644207fcb64d458dbcfd45fe8607bcaf3fda5c12e30", + "size": 11867, + "normalized_sha256": "dce9b2952cc6327ad0cd3644207fcb64d458dbcfd45fe8607bcaf3fda5c12e30" }, "packages/webui/test/integration/miniapp-ui-flow.test.ts": { "role": "observe", diff --git a/packages/webui/test/integration/miniapp-real-flow.test.ts b/packages/webui/test/integration/miniapp-real-flow.test.ts index 2bb50001a..35d666a09 100644 --- a/packages/webui/test/integration/miniapp-real-flow.test.ts +++ b/packages/webui/test/integration/miniapp-real-flow.test.ts @@ -32,7 +32,10 @@ // is `miniapp-ui-flow.test.ts`. The data directory is a temporary one, so a // run can never reach the operator's own `~/.minimax`. +import { mkdir } from "node:fs/promises"; +import { join } from "node:path"; import { afterEach, describe, expect, it } from "vitest"; +import { acquireMiniAppOwner } from "../../../local-runtime-v2/src/service/miniapp/process/node-runtime/owner-lease.js"; import { LOCAL_SOURCE, @@ -135,6 +138,40 @@ describe("the Mini App business flow against the real host", () => { expect(rowsOf(await client.call("listMiniApps"))).toEqual([]); }, 60_000); + it("reports another client's ownership and opens after that client releases the lease", async () => { + const host = await bootRealHost(); + const client = await connect(host.url); + const name = "ownership-flow.miniapp"; + await publishLocalPackage(host.dataDir, name); + expectAnswered(await client.call("pluginManagement", { + action: "enablePlugin", + input: { pluginName: name, source: LOCAL_SOURCE }, + })); + const pluginDataDir = join(host.dataDir, "v2", "plugin-data", "liveboards", name); + await mkdir(pluginDataDir, { recursive: true }); + const owner = await acquireMiniAppOwner({ + pluginDataDir, + pluginId: name, + identity: { client: "desktop" }, + }); + if (owner.kind !== "acquired") throw new Error("The fixture could not acquire the ownership lease"); + try { + const refused = await client.call("openMiniApp", { pluginId: name }); + expect(refused).toMatchObject({ + kind: "error", + code: "MINIAPP_PREPARATION_FAILED", + reasonCode: "OWNED_ELSEWHERE", + }); + } finally { + await owner.release(); + } + const opened = await client.call("openMiniApp", { pluginId: name }); + expectAnswered(opened); + const page = await fetch(String(bodyOf(opened).viewUrl)); + expect(page.status).toBe(200); + expect(await page.text()).toContain(PAGE_MARKER); + }, 120_000); + it("keeps a Mini App that failed to start out of the running set", async () => { const host = await bootRealHost(); const client = await connect(host.url);