droidsembly 0.4.0-beta.1 → 0.4.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.it.md +193 -184
- package/README.md +193 -184
- package/bin/distribution.d.ts +3 -3
- package/bin/distribution.js +48 -48
- package/dist/THIRD_PARTY_LICENSES.txt +240 -240
- package/dist/assets/AccessibilitySettings-HB1JfQbh.js +30 -0
- package/dist/assets/AppViewer-0Bly3EdB.js +5 -0
- package/dist/assets/Balloon-B6odnAlm.js +1 -0
- package/dist/assets/{Batched-BOgjreKO.js → Batched-CTJWq46z.js} +1 -1
- package/dist/assets/Birds-DSS0OIz9.js +1 -0
- package/dist/assets/Blimp-CZt6dddK.js +1 -0
- package/dist/assets/{BufferGeometryUtils-BsmWvcA2.js → BufferGeometryUtils-CmpUrBC5.js} +1 -1
- package/dist/assets/Duck-BnRLkodp.js +1 -0
- package/dist/assets/{Effects-CNyhhFkE.js → Effects-Bkewth1L.js} +2 -2
- package/dist/assets/{Fireworks-CJfDJOeb.js → Fireworks-Cvn8YKWd.js} +2 -2
- package/dist/assets/Helicopter-BDrFQMNX.js +1 -0
- package/dist/assets/{Hurricane-9WqZGyZg.js → Hurricane-C8hyFXjx.js} +2 -2
- package/dist/assets/Kaiju-Bxxe9DG0.js +1 -0
- package/dist/assets/Meteors-UdYL0Tbv.js +1 -0
- package/dist/assets/MissionConsole-DJRtojZP.js +1 -0
- package/dist/assets/Office-9Mank16i.js +563 -0
- package/dist/assets/PhotoPanel-C_njIXp0.js +1 -0
- package/dist/assets/PhotoScene-DwpeJjGe.js +115 -0
- package/dist/assets/Plane-DzvUAUYE.js +1 -0
- package/dist/assets/Pocket-A1iI6Ivy.js +2 -0
- package/dist/assets/{Rainbow-CdcWsmW8.js → Rainbow-CV1rD6rW.js} +2 -2
- package/dist/assets/Roof-DSpKcGXK.js +34 -0
- package/dist/assets/{Shell-BmnZn4UL.js → Shell-GaQY3zre.js} +2 -2
- package/dist/assets/Skywriting-D4B2ZvH7.js +1 -0
- package/dist/assets/TerminalView-DhmLqjYn.js +17 -0
- package/dist/assets/ToyWorld-DeQUxcuy.js +1 -0
- package/dist/assets/Ufo-CitoxReu.js +1 -0
- package/dist/assets/Whale-Btx5ph-T.js +1 -0
- package/dist/assets/all-gw-szDg1.js +11 -0
- package/dist/assets/bloomMarks-DRhDp19k.js +4231 -0
- package/dist/assets/cheerRules-DWb8Qwzg.js +1 -0
- package/dist/assets/{cityLayout-7ckfe3wf.js → cityLayout-aA2Ktgpu.js} +1 -1
- package/dist/assets/{dogState-DiOvoobI.js → dogState-DY7tJEVD.js} +1 -1
- package/dist/assets/{doors-BHKj8tkO.js → doors-BlKvxXVp.js} +1 -1
- package/dist/assets/{gallery-ColCPQQE.js → gallery-COKuWb9E.js} +1 -1
- package/dist/assets/gate-D0uU0wv5.js +2 -0
- package/dist/assets/index-CDJgPTOC.js +10 -0
- package/dist/assets/{instantReplay-DGiLgvkQ.js → instantReplay-BjoV6jrY.js} +1 -1
- package/dist/assets/interact-0jqx03Xr.js +1 -0
- package/dist/assets/jsx-runtime-CXW0f58S.js +1 -0
- package/dist/assets/jukeboxSongs-CUwHJ1cS.js +1 -0
- package/dist/assets/{kit-C6ByUQ-Y.js → kit-n-eqZ1AT.js} +1 -1
- package/dist/assets/mic-BnAa4E99.js +1 -0
- package/dist/assets/photoMode-BybFMLKC.js +1 -0
- package/dist/assets/{pipeline-BOTOZ69L.js → pipeline-BGPWXegt.js} +1 -1
- package/dist/assets/rapier-CrXmTSyE.js +1 -0
- package/dist/assets/rig-DfdntE8m.js +1 -0
- package/dist/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/assets/{speechLanguage-BtfdhZNI.js → speechLanguage-DfsQvU9M.js} +1 -1
- package/dist/assets/store-CXLtXw8e.js +5 -0
- package/dist/assets/useDayTime-BjBDzh_t.js +1 -0
- package/dist/assets/{useGraphics-Cif18p7Q.js → useGraphics-Bg6L4EdS.js} +1 -1
- package/dist/assets/voiceMessages-CFLyZLZ4.js +1 -0
- package/dist/assets/weatherState-BJVm5hU-.js +1 -0
- package/dist/icons/Sora-OFL.txt +93 -93
- package/dist/icons/badge.svg +1 -1
- package/dist/icons/droid-antenna.svg +29 -29
- package/dist/icons/droid-eyes.svg +29 -29
- package/dist/icons/droid-shell.svg +29 -29
- package/dist/icons/droid-spark.svg +29 -29
- package/dist/icons/droid-wire.svg +29 -29
- package/dist/icons/favicon.svg +1 -1
- package/dist/icons/icon.svg +29 -29
- package/dist/icons/logo-dark.svg +29 -29
- package/dist/icons/logo-light.svg +29 -29
- package/dist/index.html +26 -25
- package/dist/manifest.webmanifest +19 -19
- package/dist/third-party-licenses.json +3 -3
- package/dist-server/browser-init.js +24 -24
- package/dist-server/index.js +125 -42
- package/dist-server/index.js.map +4 -4
- package/dist-server/ptyHost.js.map +1 -1
- package/package.json +98 -98
- package/dist/assets/AccessibilitySettings-DSmFk9JC.js +0 -30
- package/dist/assets/AppViewer-alNn4TBB.js +0 -5
- package/dist/assets/Balloon-UTs7npGo.js +0 -1
- package/dist/assets/Birds-BA2HM-AD.js +0 -1
- package/dist/assets/Blimp-CTykuz6B.js +0 -1
- package/dist/assets/Duck-DH63jUrP.js +0 -1
- package/dist/assets/Helicopter-CW_SP7xP.js +0 -1
- package/dist/assets/Kaiju-SpSi_jBg.js +0 -1
- package/dist/assets/Meteors-DvjhLfbF.js +0 -1
- package/dist/assets/MissionConsole-BEP5CdC8.js +0 -1
- package/dist/assets/Office-BBnd6tyn.js +0 -563
- package/dist/assets/PhotoPanel-DehErnsv.js +0 -1
- package/dist/assets/PhotoScene-Ce-dzToM.js +0 -115
- package/dist/assets/Plane-0nfvzL_c.js +0 -1
- package/dist/assets/Pocket-CBoyL0ra.js +0 -2
- package/dist/assets/Roof-mkMKniSZ.js +0 -34
- package/dist/assets/Skywriting-06dZPAfg.js +0 -1
- package/dist/assets/TerminalView-wlhSixSH.js +0 -17
- package/dist/assets/ToyWorld-Cuu9aW-K.js +0 -1
- package/dist/assets/Ufo-iHaoe5t1.js +0 -1
- package/dist/assets/Whale-DZg88zIX.js +0 -1
- package/dist/assets/all-CYErCTCA.js +0 -11
- package/dist/assets/bloomMarks-DariC6lY.js +0 -4231
- package/dist/assets/cheerRules-CZGSrxOB.js +0 -1
- package/dist/assets/gate-BplJKcLG.js +0 -2
- package/dist/assets/index-B6qvKFYN.js +0 -10
- package/dist/assets/interact-0qw7BGhL.js +0 -1
- package/dist/assets/jsx-runtime-BFUkm7bt.js +0 -1
- package/dist/assets/jukeboxSongs-CjbAzAeb.js +0 -1
- package/dist/assets/mic-B316hcCe.js +0 -1
- package/dist/assets/photoMode-CYxQfgUF.js +0 -1
- package/dist/assets/rapier-CXAOW8OC.js +0 -1
- package/dist/assets/rig-wAyl3G1G.js +0 -1
- package/dist/assets/store-FA83kfnc.js +0 -5
- package/dist/assets/useDayTime-0XsqM14Q.js +0 -1
- package/dist/assets/voiceMessages-DtNmUazr.js +0 -1
- package/dist/assets/weatherState-ExG1doW-.js +0 -1
package/dist/index.html
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
6
|
-
<meta name="theme-color" content="#101925" />
|
|
7
|
-
<meta name="mobile-web-app-capable" content="yes" />
|
|
8
|
-
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
9
|
-
<meta name="apple-mobile-web-app-title" content="Droidsembly" />
|
|
10
|
-
<title>Droidsembly</title>
|
|
11
|
-
<link rel="manifest" href="/manifest.webmanifest" />
|
|
12
|
-
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
|
|
13
|
-
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32.png" />
|
|
14
|
-
<link rel="icon" type="image/svg+xml" href="/icons/favicon.svg" />
|
|
15
|
-
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
16
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
17
|
-
<link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet" />
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
6
|
+
<meta name="theme-color" content="#101925" />
|
|
7
|
+
<meta name="mobile-web-app-capable" content="yes" />
|
|
8
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
9
|
+
<meta name="apple-mobile-web-app-title" content="Droidsembly" />
|
|
10
|
+
<title>Droidsembly</title>
|
|
11
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
12
|
+
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
|
|
13
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32.png" />
|
|
14
|
+
<link rel="icon" type="image/svg+xml" href="/icons/favicon.svg" />
|
|
15
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
16
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
17
|
+
<link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet" />
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-CDJgPTOC.js"></script>
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-CXW0f58S.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/assets/store-CXLtXw8e.js">
|
|
21
22
|
<link rel="stylesheet" crossorigin href="/assets/index-COpmc42S.css">
|
|
22
|
-
</head>
|
|
23
|
-
<body>
|
|
24
|
-
<div id="root"></div>
|
|
25
|
-
</body>
|
|
26
|
-
</html>
|
|
23
|
+
</head>
|
|
24
|
+
<body>
|
|
25
|
+
<div id="root"></div>
|
|
26
|
+
</body>
|
|
27
|
+
</html>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "/",
|
|
3
|
-
"name": "Droidsembly",
|
|
4
|
-
"short_name": "Droidsembly",
|
|
5
|
-
"description": "Your AI coding office: its pipeline, the CEO chat, the board, the team and the decisions waiting on you.",
|
|
6
|
-
"start_url": "/",
|
|
7
|
-
"scope": "/",
|
|
8
|
-
"display": "standalone",
|
|
9
|
-
"orientation": "any",
|
|
10
|
-
"background_color": "#faf9f5",
|
|
11
|
-
"theme_color": "#101925",
|
|
12
|
-
"categories": ["productivity", "developer"],
|
|
13
|
-
"icons": [
|
|
14
|
-
{ "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
|
|
15
|
-
{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
|
|
16
|
-
{ "src": "/icons/icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" },
|
|
17
|
-
{ "src": "/icons/icon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "any" }
|
|
18
|
-
]
|
|
19
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"id": "/",
|
|
3
|
+
"name": "Droidsembly",
|
|
4
|
+
"short_name": "Droidsembly",
|
|
5
|
+
"description": "Your AI coding office: its pipeline, the CEO chat, the board, the team and the decisions waiting on you.",
|
|
6
|
+
"start_url": "/",
|
|
7
|
+
"scope": "/",
|
|
8
|
+
"display": "standalone",
|
|
9
|
+
"orientation": "any",
|
|
10
|
+
"background_color": "#faf9f5",
|
|
11
|
+
"theme_color": "#101925",
|
|
12
|
+
"categories": ["productivity", "developer"],
|
|
13
|
+
"icons": [
|
|
14
|
+
{ "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
|
|
15
|
+
{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
|
|
16
|
+
{ "src": "/icons/icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" },
|
|
17
|
+
{ "src": "/icons/icon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "any" }
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"name": "@dimforge/rapier3d-compat",
|
|
16
16
|
"version": "0.19.2",
|
|
17
17
|
"identifier": "Apache-2.0",
|
|
18
|
-
"text": "Apache License\r\n Version 2.0, January 2004\r\n http://www.apache.org/licenses/\r\n\r\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\r\n\r\n 1. Definitions.\r\n\r\n \"License\" shall mean the terms and conditions for use, reproduction,\r\n and distribution as defined by Sections 1 through 9 of this document.\r\n\r\n \"Licensor\" shall mean the copyright owner or entity authorized by\r\n the copyright owner that is granting the License.\r\n\r\n \"Legal Entity\" shall mean the union of the acting entity and all\r\n other entities that control, are controlled by, or are under common\r\n control with that entity. For the purposes of this definition,\r\n \"control\" means (i) the power, direct or indirect, to cause the\r\n direction or management of such entity, whether by contract or\r\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\r\n outstanding shares, or (iii) beneficial ownership of such entity.\r\n\r\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\r\n exercising permissions granted by this License.\r\n\r\n \"Source\" form shall mean the preferred form for making modifications,\r\n including but not limited to software source code, documentation\r\n source, and configuration files.\r\n\r\n \"Object\" form shall mean any form resulting from mechanical\r\n transformation or translation of a Source form, including but\r\n not limited to compiled object code, generated documentation,\r\n and conversions to other media types.\r\n\r\n \"Work\" shall mean the work of authorship, whether in Source or\r\n Object form, made available under the License, as indicated by a\r\n copyright notice that is included in or attached to the work\r\n (an example is provided in the Appendix below).\r\n\r\n \"Derivative Works\" shall mean any work, whether in Source or Object\r\n form, that is based on (or derived from) the Work and for which the\r\n editorial revisions, annotations, elaborations, or other modifications\r\n represent, as a whole, an original work of authorship. For the purposes\r\n of this License, Derivative Works shall not include works that remain\r\n separable from, or merely link (or bind by name) to the interfaces of,\r\n the Work and Derivative Works thereof.\r\n\r\n \"Contribution\" shall mean any work of authorship, including\r\n the original version of the Work and any modifications or additions\r\n to that Work or Derivative Works thereof, that is intentionally\r\n submitted to Licensor for inclusion in the Work by the copyright owner\r\n or by an individual or Legal Entity authorized to submit on behalf of\r\n the copyright owner. For the purposes of this definition, \"submitted\"\r\n means any form of electronic, verbal, or written communication sent\r\n to the Licensor or its representatives, including but not limited to\r\n communication on electronic mailing lists, source code control systems,\r\n and issue tracking systems that are managed by, or on behalf of, the\r\n Licensor for the purpose of discussing and improving the Work, but\r\n excluding communication that is conspicuously marked or otherwise\r\n designated in writing by the copyright owner as \"Not a Contribution.\"\r\n\r\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\r\n on behalf of whom a Contribution has been received by Licensor and\r\n subsequently incorporated within the Work.\r\n\r\n 2. Grant of Copyright License. Subject to the terms and conditions of\r\n this License, each Contributor hereby grants to You a perpetual,\r\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r\n copyright license to reproduce, prepare Derivative Works of,\r\n publicly display, publicly perform, sublicense, and distribute the\r\n Work and such Derivative Works in Source or Object form.\r\n\r\n 3. Grant of Patent License. Subject to the terms and conditions of\r\n this License, each Contributor hereby grants to You a perpetual,\r\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\r\n (except as stated in this section) patent license to make, have made,\r\n use, offer to sell, sell, import, and otherwise transfer the Work,\r\n where such license applies only to those patent claims licensable\r\n by such Contributor that are necessarily infringed by their\r\n Contribution(s) alone or by combination of their Contribution(s)\r\n with the Work to which such Contribution(s) was submitted. If You\r\n institute patent litigation against any entity (including a\r\n cross-claim or counterclaim in a lawsuit) alleging that the Work\r\n or a Contribution incorporated within the Work constitutes direct\r\n or contributory patent infringement, then any patent licenses\r\n granted to You under this License for that Work shall terminate\r\n as of the date such litigation is filed.\r\n\r\n 4. Redistribution. You may reproduce and distribute copies of the\r\n Work or Derivative Works thereof in any medium, with or without\r\n modifications, and in Source or Object form, provided that You\r\n meet the following conditions:\r\n\r\n (a) You must give any other recipients of the Work or\r\n Derivative Works a copy of this License; and\r\n\r\n (b) You must cause any modified files to carry prominent notices\r\n stating that You changed the files; and\r\n\r\n (c) You must retain, in the Source form of any Derivative Works\r\n that You distribute, all copyright, patent, trademark, and\r\n attribution notices from the Source form of the Work,\r\n excluding those notices that do not pertain to any part of\r\n the Derivative Works; and\r\n\r\n (d) If the Work includes a \"NOTICE\" text file as part of its\r\n distribution, then any Derivative Works that You distribute must\r\n include a readable copy of the attribution notices contained\r\n within such NOTICE file, excluding those notices that do not\r\n pertain to any part of the Derivative Works, in at least one\r\n of the following places: within a NOTICE text file distributed\r\n as part of the Derivative Works; within the Source form or\r\n documentation, if provided along with the Derivative Works; or,\r\n within a display generated by the Derivative Works, if and\r\n wherever such third-party notices normally appear. The contents\r\n of the NOTICE file are for informational purposes only and\r\n do not modify the License. You may add Your own attribution\r\n notices within Derivative Works that You distribute, alongside\r\n or as an addendum to the NOTICE text from the Work, provided\r\n that such additional attribution notices cannot be construed\r\n as modifying the License.\r\n\r\n You may add Your own copyright statement to Your modifications and\r\n may provide additional or different license terms and conditions\r\n for use, reproduction, or distribution of Your modifications, or\r\n for any such Derivative Works as a whole, provided Your use,\r\n reproduction, and distribution of the Work otherwise complies with\r\n the conditions stated in this License.\r\n\r\n 5. Submission of Contributions. Unless You explicitly state otherwise,\r\n any Contribution intentionally submitted for inclusion in the Work\r\n by You to the Licensor shall be under the terms and conditions of\r\n this License, without any additional terms or conditions.\r\n Notwithstanding the above, nothing herein shall supersede or modify\r\n the terms of any separate license agreement you may have executed\r\n with Licensor regarding such Contributions.\r\n\r\n 6. Trademarks. This License does not grant permission to use the trade\r\n names, trademarks, service marks, or product names of the Licensor,\r\n except as required for reasonable and customary use in describing the\r\n origin of the Work and reproducing the content of the NOTICE file.\r\n\r\n 7. Disclaimer of Warranty. Unless required by applicable law or\r\n agreed to in writing, Licensor provides the Work (and each\r\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\r\n implied, including, without limitation, any warranties or conditions\r\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\r\n PARTICULAR PURPOSE. You are solely responsible for determining the\r\n appropriateness of using or redistributing the Work and assume any\r\n risks associated with Your exercise of permissions under this License.\r\n\r\n 8. Limitation of Liability. In no event and under no legal theory,\r\n whether in tort (including negligence), contract, or otherwise,\r\n unless required by applicable law (such as deliberate and grossly\r\n negligent acts) or agreed to in writing, shall any Contributor be\r\n liable to You for damages, including any direct, indirect, special,\r\n incidental, or consequential damages of any character arising as a\r\n result of this License or out of the use or inability to use the\r\n Work (including but not limited to damages for loss of goodwill,\r\n work stoppage, computer failure or malfunction, or any and all\r\n other commercial damages or losses), even if such Contributor\r\n has been advised of the possibility of such damages.\r\n\r\n 9. Accepting Warranty or Additional Liability. While redistributing\r\n the Work or Derivative Works thereof, You may choose to offer,\r\n and charge a fee for, acceptance of support, warranty, indemnity,\r\n or other liability obligations and/or rights consistent with this\r\n License. However, in accepting such obligations, You may act only\r\n on Your own behalf and on Your sole responsibility, not on behalf\r\n of any other Contributor, and only if You agree to indemnify,\r\n defend, and hold each Contributor harmless for any liability\r\n incurred by, or claims asserted against, such Contributor by reason\r\n of your accepting any such warranty or additional liability.\r\n\r\n END OF TERMS AND CONDITIONS\r\n\r\n APPENDIX: How to apply the Apache License to your work.\r\n\r\n To apply the Apache License to your work, attach the following\r\n boilerplate notice, with the fields enclosed by brackets \"[]\"\r\n replaced with your own identifying information. (Don't include\r\n the brackets!) The text should be enclosed in the appropriate\r\n comment syntax for the file format. We also recommend that a\r\n file or class name and description of purpose be included on the\r\n same \"printed page\" as the copyright notice for easier\r\n identification within third-party archives.\r\n\r\n Copyright 2020 Dimforge EURL\r\n\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.",
|
|
18
|
+
"text": "Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2020 Dimforge EURL\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.",
|
|
19
19
|
"source": "https://raw.githubusercontent.com/dimforge/rapier.js/f072e6efa75f4f61a290bd0b58b61c443685ec01/LICENSE",
|
|
20
20
|
"notices": []
|
|
21
21
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"name": "@react-three/fiber",
|
|
36
36
|
"version": "9.8.1",
|
|
37
37
|
"identifier": "MIT",
|
|
38
|
-
"text": "MIT License\
|
|
38
|
+
"text": "MIT License\n\nCopyright (c) 2019-2025 Poimandres\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.",
|
|
39
39
|
"source": "https://raw.githubusercontent.com/pmndrs/react-three-fiber/53ec672ac4a7189711766b87ece18889abbb32d4/LICENSE",
|
|
40
40
|
"notices": []
|
|
41
41
|
},
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"name": "@react-three/rapier",
|
|
44
44
|
"version": "2.2.0",
|
|
45
45
|
"identifier": "MIT",
|
|
46
|
-
"text": "MIT License\
|
|
46
|
+
"text": "MIT License\n\nCopyright (c) 2022 Poimandres\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.",
|
|
47
47
|
"source": "https://raw.githubusercontent.com/pmndrs/react-three-rapier/ae5c3fede5ca489fd7eaa8271e9d9c5eabc88e98/LICENSE",
|
|
48
48
|
"notices": []
|
|
49
49
|
},
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
// Runs in every page of the agents' test browsers, before the page's own scripts (Playwright MCP --init-script).
|
|
2
|
-
//
|
|
3
|
-
// The agents' browser is headless, but on Windows headless Chrome still applies pointer lock to the real mouse: a
|
|
4
|
-
// page that locks the pointer (any 3D app, including the office itself) traps the manager's cursor in an invisible
|
|
5
|
-
// window and keeps snapping it to that window's centre. So pages get an in-page stand-in instead. The page sees the
|
|
6
|
-
// lock granted and released as usual and keeps receiving mouse events, but the real cursor is never touched.
|
|
7
|
-
(() => {
|
|
8
|
-
let locked = null;
|
|
9
|
-
const changed = () => queueMicrotask(() => document.dispatchEvent(new Event('pointerlockchange')));
|
|
10
|
-
Object.defineProperty(Document.prototype, 'pointerLockElement', {
|
|
11
|
-
configurable: true,
|
|
12
|
-
get: () => (locked && locked.isConnected ? locked : null),
|
|
13
|
-
});
|
|
14
|
-
Element.prototype.requestPointerLock = function () {
|
|
15
|
-
locked = this;
|
|
16
|
-
changed();
|
|
17
|
-
return Promise.resolve();
|
|
18
|
-
};
|
|
19
|
-
Document.prototype.exitPointerLock = function () {
|
|
20
|
-
if (!locked) return;
|
|
21
|
-
locked = null;
|
|
22
|
-
changed();
|
|
23
|
-
};
|
|
24
|
-
})();
|
|
1
|
+
// Runs in every page of the agents' test browsers, before the page's own scripts (Playwright MCP --init-script).
|
|
2
|
+
//
|
|
3
|
+
// The agents' browser is headless, but on Windows headless Chrome still applies pointer lock to the real mouse: a
|
|
4
|
+
// page that locks the pointer (any 3D app, including the office itself) traps the manager's cursor in an invisible
|
|
5
|
+
// window and keeps snapping it to that window's centre. So pages get an in-page stand-in instead. The page sees the
|
|
6
|
+
// lock granted and released as usual and keeps receiving mouse events, but the real cursor is never touched.
|
|
7
|
+
(() => {
|
|
8
|
+
let locked = null;
|
|
9
|
+
const changed = () => queueMicrotask(() => document.dispatchEvent(new Event('pointerlockchange')));
|
|
10
|
+
Object.defineProperty(Document.prototype, 'pointerLockElement', {
|
|
11
|
+
configurable: true,
|
|
12
|
+
get: () => (locked && locked.isConnected ? locked : null),
|
|
13
|
+
});
|
|
14
|
+
Element.prototype.requestPointerLock = function () {
|
|
15
|
+
locked = this;
|
|
16
|
+
changed();
|
|
17
|
+
return Promise.resolve();
|
|
18
|
+
};
|
|
19
|
+
Document.prototype.exitPointerLock = function () {
|
|
20
|
+
if (!locked) return;
|
|
21
|
+
locked = null;
|
|
22
|
+
changed();
|
|
23
|
+
};
|
|
24
|
+
})();
|
package/dist-server/index.js
CHANGED
|
@@ -1493,8 +1493,13 @@ function launchArgs(id, ctx) {
|
|
|
1493
1493
|
plugins: [{ package: ctx.plugin, options: { sessionID, notifyUrl: ctx.notify.url, model: openCodeModelRef(model2) } }],
|
|
1494
1494
|
instructions: [ctx.files.system],
|
|
1495
1495
|
// A dedicated primary agent also retains a model's explicit #variant (the root model setting doesn't).
|
|
1496
|
-
default_agent: "
|
|
1497
|
-
agents: {
|
|
1496
|
+
default_agent: "droidsembly",
|
|
1497
|
+
agents: {
|
|
1498
|
+
droidsembly: { description: "The Droidsembly office session", mode: "primary", ...model2 ? { model: model2 } : {} },
|
|
1499
|
+
// OpenCode keeps the agent ID on an existing session. Keep the old profile available on resume,
|
|
1500
|
+
// but out of the picker: do not migrate session IDs or rewrite the user's OpenCode history.
|
|
1501
|
+
...ctx.resumeId ? { cubefarm: { description: "The Droidsembly office session (legacy)", mode: "primary", hidden: true, ...model2 ? { model: model2 } : {} } } : {}
|
|
1502
|
+
},
|
|
1498
1503
|
...opencodeLocal(local),
|
|
1499
1504
|
...Object.keys(servers).length ? { mcp: { servers } } : {}
|
|
1500
1505
|
};
|
|
@@ -2114,8 +2119,51 @@ import crypto3 from "node:crypto";
|
|
|
2114
2119
|
import fs8 from "node:fs";
|
|
2115
2120
|
import path9 from "node:path";
|
|
2116
2121
|
import { pathToFileURL } from "node:url";
|
|
2122
|
+
|
|
2123
|
+
// server/mcpHttp.ts
|
|
2117
2124
|
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
|
2118
2125
|
|
|
2126
|
+
// server/mcpInput.ts
|
|
2127
|
+
var MCP_MAX_ELEMENTS = 1e4;
|
|
2128
|
+
var MCP_MAX_DEPTH = 64;
|
|
2129
|
+
var MCP_BODY_LIMIT = "1mb";
|
|
2130
|
+
function mcpInputWithinBounds(body2) {
|
|
2131
|
+
const pending2 = [{ value: body2, depth: 0 }];
|
|
2132
|
+
let elements = 0;
|
|
2133
|
+
while (pending2.length) {
|
|
2134
|
+
const { value, depth } = pending2.pop();
|
|
2135
|
+
if (value === null || typeof value !== "object") continue;
|
|
2136
|
+
if (depth > MCP_MAX_DEPTH) return false;
|
|
2137
|
+
for (const key in value) {
|
|
2138
|
+
if (!Object.hasOwn(value, key)) continue;
|
|
2139
|
+
if (++elements > MCP_MAX_ELEMENTS) return false;
|
|
2140
|
+
const child = value[key];
|
|
2141
|
+
if (child !== null && typeof child === "object") pending2.push({ value: child, depth: depth + 1 });
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
return true;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
// server/mcpHttp.ts
|
|
2148
|
+
async function handleOfficeMcp(office, req, res) {
|
|
2149
|
+
if (!office) {
|
|
2150
|
+
res.status(404).json({ jsonrpc: "2.0", error: { code: -32001, message: "This session has ended." }, id: null });
|
|
2151
|
+
return;
|
|
2152
|
+
}
|
|
2153
|
+
if (!mcpInputWithinBounds(req.body)) {
|
|
2154
|
+
res.status(413).json({ jsonrpc: "2.0", error: { code: -32600, message: "MCP input exceeds the collection or nesting limit." }, id: null });
|
|
2155
|
+
return;
|
|
2156
|
+
}
|
|
2157
|
+
const server2 = office.serve();
|
|
2158
|
+
const transport = new StreamableHTTPServerTransport({ sessionIdGenerator: void 0, enableJsonResponse: true });
|
|
2159
|
+
res.on("close", () => {
|
|
2160
|
+
void transport.close();
|
|
2161
|
+
void server2.close();
|
|
2162
|
+
});
|
|
2163
|
+
await server2.connect(transport);
|
|
2164
|
+
await transport.handleRequest(req, res, req.body);
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2119
2167
|
// server/httpError.ts
|
|
2120
2168
|
var HttpError = class extends Error {
|
|
2121
2169
|
constructor(status, message) {
|
|
@@ -3164,19 +3212,7 @@ function handleHook(token, body2) {
|
|
|
3164
3212
|
}
|
|
3165
3213
|
}
|
|
3166
3214
|
async function handleMcp(token, req, res) {
|
|
3167
|
-
|
|
3168
|
-
if (!office) {
|
|
3169
|
-
res.status(404).json({ jsonrpc: "2.0", error: { code: -32001, message: "This session has ended." }, id: null });
|
|
3170
|
-
return;
|
|
3171
|
-
}
|
|
3172
|
-
const server2 = office.serve();
|
|
3173
|
-
const transport = new StreamableHTTPServerTransport({ sessionIdGenerator: void 0, enableJsonResponse: true });
|
|
3174
|
-
res.on("close", () => {
|
|
3175
|
-
void transport.close();
|
|
3176
|
-
void server2.close();
|
|
3177
|
-
});
|
|
3178
|
-
await server2.connect(transport);
|
|
3179
|
-
await transport.handleRequest(req, res, req.body);
|
|
3215
|
+
await handleOfficeMcp(routes.get(token)?.office, req, res);
|
|
3180
3216
|
}
|
|
3181
3217
|
var helpersWritten = false;
|
|
3182
3218
|
function writeHelpers() {
|
|
@@ -5041,9 +5077,9 @@ var italianUi = {
|
|
|
5041
5077
|
"File issue on GitHub": "Crea issue su GitHub",
|
|
5042
5078
|
"QA report \u2197": "Rapporto QA \u2197",
|
|
5043
5079
|
"This floor no longer exists.": "Questo piano non esiste pi\xF9.",
|
|
5044
|
-
"Merge PR #{number}?": "
|
|
5045
|
-
"\u201C{title}\u201D passed QA. It will be squash-merged into {branch}.": "\u201C{title}\u201D ha superato
|
|
5046
|
-
"Squash & merge": "
|
|
5080
|
+
"Merge PR #{number}?": "Integrare la PR #{number}?",
|
|
5081
|
+
"\u201C{title}\u201D passed QA. It will be squash-merged into {branch}.": "\u201C{title}\u201D ha superato la verifica QA. I suoi commit verranno unificati in un unico commit e integrati nel ramo {branch}.",
|
|
5082
|
+
"Squash & merge": "Integra unificando i commit",
|
|
5047
5083
|
"Merge PR #{number} without QA?": "Eseguire il merge della PR #{number} senza QA?",
|
|
5048
5084
|
"\u201C{title}\u201D has not passed QA yet. Merge it into {branch} anyway?": "\u201C{title}\u201D non ha ancora superato il QA. Integrarla comunque in {branch}?",
|
|
5049
5085
|
"Merge anyway": "Esegui comunque il merge",
|
|
@@ -7206,13 +7242,17 @@ var Notifier = class {
|
|
|
7206
7242
|
const webhooks = Object.fromEntries(NOTIFY_WEBHOOKS.map((c) => [c, { set: !!this.webhooks[c], hint: webhookHint(c, this.webhooks[c]) }]));
|
|
7207
7243
|
return { webhooks, pushDevices: this.push.devices.length };
|
|
7208
7244
|
}
|
|
7209
|
-
/** Something happened: tell the manager on every channel that's on, unless the event is off or had its minute.
|
|
7245
|
+
/** Something happened: tell the manager on every channel that's on, unless the event is off or had its minute.
|
|
7246
|
+
* Resolves after this call's immediate deliveries (including expired-device persistence).
|
|
7247
|
+
* Does not wait for a rate-limited summary scheduled for a later minute.
|
|
7248
|
+
*/
|
|
7210
7249
|
notify(event, title, body2, line) {
|
|
7211
|
-
if (!this.deps.settings().events[event]) return;
|
|
7250
|
+
if (!this.deps.settings().events[event]) return Promise.resolve();
|
|
7212
7251
|
const r = offer(this.gates, note(event, title, body2, line), this.now());
|
|
7213
7252
|
this.gates = r.gates;
|
|
7214
|
-
|
|
7253
|
+
const delivered = r.send ? this.deliver(r.send).then(() => void 0) : Promise.resolve();
|
|
7215
7254
|
this.arm();
|
|
7255
|
+
return delivered;
|
|
7216
7256
|
}
|
|
7217
7257
|
/** Sends the summaries whose minute is up. The timer calls it. */
|
|
7218
7258
|
flush() {
|
|
@@ -9796,6 +9836,7 @@ var Journal = class {
|
|
|
9796
9836
|
// what was last recorded about each repo, agent, QA record…
|
|
9797
9837
|
writing = Promise.resolve();
|
|
9798
9838
|
timer = null;
|
|
9839
|
+
stopped = false;
|
|
9799
9840
|
summaries = /* @__PURE__ */ new Map();
|
|
9800
9841
|
// `${file}|${bytes}` -> a closed file's span and marks
|
|
9801
9842
|
now;
|
|
@@ -9803,7 +9844,9 @@ var Journal = class {
|
|
|
9803
9844
|
stats = { lines: 0, bytes: 0, writes: 0, skipped: 0 };
|
|
9804
9845
|
/** Prunes, then starts the first file with a keyframe of the office as it starts. */
|
|
9805
9846
|
async start() {
|
|
9847
|
+
if (this.stopped) return;
|
|
9806
9848
|
await this.prune(true).catch((err) => console.warn("could not prune the journal", err));
|
|
9849
|
+
if (this.stopped) return;
|
|
9807
9850
|
this.open(true);
|
|
9808
9851
|
if (!this.timer) {
|
|
9809
9852
|
this.timer = setInterval(() => this.tick(), this.opts.flushMs ?? FLUSH_MS);
|
|
@@ -9812,6 +9855,7 @@ var Journal = class {
|
|
|
9812
9855
|
}
|
|
9813
9856
|
/** Writes what's pending and stops the timer (the office is stopping). */
|
|
9814
9857
|
async close() {
|
|
9858
|
+
this.stopped = true;
|
|
9815
9859
|
if (this.timer) clearInterval(this.timer);
|
|
9816
9860
|
this.timer = null;
|
|
9817
9861
|
if (this.cur?.dirty) this.flush(this.cur);
|
|
@@ -9819,7 +9863,7 @@ var Journal = class {
|
|
|
9819
9863
|
}
|
|
9820
9864
|
/** Swarm.broadcast's events: the ones that change the office's look are recorded, once each change. */
|
|
9821
9865
|
record(ev) {
|
|
9822
|
-
if (!this.cur) return;
|
|
9866
|
+
if (this.stopped || !this.cur) return;
|
|
9823
9867
|
try {
|
|
9824
9868
|
const e = journalEvent(ev, this.opts.secrets());
|
|
9825
9869
|
if (!e) return;
|
|
@@ -9838,7 +9882,7 @@ var Journal = class {
|
|
|
9838
9882
|
}
|
|
9839
9883
|
/** The timer: a new file when this one's time is up, and a write when something changed. */
|
|
9840
9884
|
tick() {
|
|
9841
|
-
if (!this.cur) return;
|
|
9885
|
+
if (this.stopped || !this.cur) return;
|
|
9842
9886
|
try {
|
|
9843
9887
|
this.rotate(this.now());
|
|
9844
9888
|
} catch (err) {
|
|
@@ -12809,15 +12853,17 @@ var Previews = class {
|
|
|
12809
12853
|
if (watched) watched.viewedAt = now2;
|
|
12810
12854
|
this.tellScreen(watched);
|
|
12811
12855
|
}
|
|
12812
|
-
/**
|
|
12856
|
+
/** Forget quiet viewers and stop idle previews. Resolves after their app/worktree cleanup, not just removal from the view. */
|
|
12813
12857
|
sweepPrs(now2 = Date.now()) {
|
|
12858
|
+
const stopping = [];
|
|
12814
12859
|
for (const [viewer, w] of this.watches) if (now2 - w.at > WATCH_MS) this.watches.delete(viewer);
|
|
12815
12860
|
for (const key of expired(this.prInfos(), this.screen(now2), now2, PR_PREVIEW_IDLE_MS)) {
|
|
12816
12861
|
const r = this.prRuns.get(key);
|
|
12817
12862
|
console.log(`PR theatre: PR #${r.pr} of ${r.fullName} stopped after ${+(PR_PREVIEW_IDLE_MS / 6e4).toFixed(2)} minutes off screen`);
|
|
12818
|
-
|
|
12863
|
+
stopping.push(this.endPr(r));
|
|
12819
12864
|
}
|
|
12820
12865
|
this.tellScreen();
|
|
12866
|
+
return Promise.all(stopping).then(() => void 0);
|
|
12821
12867
|
}
|
|
12822
12868
|
/** The floor's PRs as the office knows them now: previews of PRs that merged or closed stop. */
|
|
12823
12869
|
pullsChanged(f, pulls) {
|
|
@@ -13815,6 +13861,8 @@ var AgentTerminal = class {
|
|
|
13815
13861
|
sink = null;
|
|
13816
13862
|
mouseEncoding = null;
|
|
13817
13863
|
resync = null;
|
|
13864
|
+
saving = Promise.resolve();
|
|
13865
|
+
// saves share the same temp file
|
|
13818
13866
|
constructor() {
|
|
13819
13867
|
this.term.loadAddon(this.ser);
|
|
13820
13868
|
const decset = (on) => (params) => {
|
|
@@ -13886,12 +13934,16 @@ var AgentTerminal = class {
|
|
|
13886
13934
|
flush() {
|
|
13887
13935
|
return new Promise((resolve) => this.term.write("", resolve));
|
|
13888
13936
|
}
|
|
13889
|
-
|
|
13890
|
-
this.
|
|
13891
|
-
|
|
13892
|
-
|
|
13893
|
-
|
|
13894
|
-
|
|
13937
|
+
save(file) {
|
|
13938
|
+
const next = this.saving.then(async () => {
|
|
13939
|
+
this.dirty = false;
|
|
13940
|
+
await this.flush();
|
|
13941
|
+
await fs20.mkdir(path20.dirname(file), { recursive: true });
|
|
13942
|
+
await fs20.writeFile(`${file}.tmp`, this.snapshot());
|
|
13943
|
+
await fs20.rename(`${file}.tmp`, file);
|
|
13944
|
+
});
|
|
13945
|
+
this.saving = next.catch(() => void 0);
|
|
13946
|
+
return next;
|
|
13895
13947
|
}
|
|
13896
13948
|
async load(file) {
|
|
13897
13949
|
const data = await fs20.readFile(file, "utf8").catch(() => "");
|
|
@@ -15112,8 +15164,11 @@ var Swarm = class {
|
|
|
15112
15164
|
user = null;
|
|
15113
15165
|
ghError;
|
|
15114
15166
|
saveTimer = null;
|
|
15167
|
+
shutdownTask = null;
|
|
15168
|
+
stopping = false;
|
|
15115
15169
|
writing = Promise.resolve();
|
|
15116
15170
|
// state file writes, one at a time: they share its temp file
|
|
15171
|
+
terminalSaving = null;
|
|
15117
15172
|
logSeq = 1;
|
|
15118
15173
|
previews;
|
|
15119
15174
|
officeHead = null;
|
|
@@ -15702,7 +15757,7 @@ var Swarm = class {
|
|
|
15702
15757
|
}
|
|
15703
15758
|
// ---------- persistence ----------
|
|
15704
15759
|
save() {
|
|
15705
|
-
if (this.saveTimer) return;
|
|
15760
|
+
if (this.stopping || this.saveTimer) return;
|
|
15706
15761
|
this.saveTimer = setTimeout(() => void this.writeState().catch((err) => console.warn("could not save the state", err)), 1500);
|
|
15707
15762
|
}
|
|
15708
15763
|
/** Write the state file now, e.g. before the office stops or hands itself to the launcher. Waits for a write in progress. */
|
|
@@ -16183,13 +16238,23 @@ var Swarm = class {
|
|
|
16183
16238
|
* Server shutdown: stop every floor's app so nothing is left holding a preview port. Agents' CLIs keep working
|
|
16184
16239
|
* through a restart (the terminal keeper holds them for the next start) and stop when the office quits.
|
|
16185
16240
|
*/
|
|
16186
|
-
|
|
16241
|
+
shutdown(restart = false) {
|
|
16242
|
+
if (this.shutdownTask) return this.shutdownTask;
|
|
16243
|
+
this.stopping = true;
|
|
16244
|
+
this.shutdownTask = this.finishShutdown(restart);
|
|
16245
|
+
return this.shutdownTask;
|
|
16246
|
+
}
|
|
16247
|
+
async finishShutdown(restart) {
|
|
16187
16248
|
this.backend.cloud.detach();
|
|
16188
16249
|
await this.writeState().catch((err) => console.warn("could not save the state", err));
|
|
16189
|
-
|
|
16190
|
-
|
|
16191
|
-
|
|
16192
|
-
|
|
16250
|
+
try {
|
|
16251
|
+
await this.journal.close().catch((err) => console.warn("could not write the journal", err));
|
|
16252
|
+
await this.backend.releaseClis(restart);
|
|
16253
|
+
await this.saveTerminals(true);
|
|
16254
|
+
await this.previews.stopAll(this.state.repos);
|
|
16255
|
+
} finally {
|
|
16256
|
+
await this.writeState().catch((err) => console.warn("could not save the state", err));
|
|
16257
|
+
}
|
|
16193
16258
|
}
|
|
16194
16259
|
async cloneRepo(id) {
|
|
16195
16260
|
const repo = this.state.repos.find((r) => r.id === id);
|
|
@@ -17036,10 +17101,28 @@ var Swarm = class {
|
|
|
17036
17101
|
};
|
|
17037
17102
|
return t;
|
|
17038
17103
|
}
|
|
17039
|
-
|
|
17040
|
-
|
|
17041
|
-
|
|
17042
|
-
|
|
17104
|
+
saveTerminals(all = false) {
|
|
17105
|
+
if (!all && (this.stopping || this.terminalSaving)) return this.terminalSaving ?? Promise.resolve();
|
|
17106
|
+
const write = () => this.writeTerminals(all);
|
|
17107
|
+
const next = this.terminalSaving ? this.terminalSaving.then(write, write) : write();
|
|
17108
|
+
this.terminalSaving = next;
|
|
17109
|
+
const clear = () => {
|
|
17110
|
+
if (this.terminalSaving === next) this.terminalSaving = null;
|
|
17111
|
+
};
|
|
17112
|
+
void next.then(clear, clear);
|
|
17113
|
+
return next;
|
|
17114
|
+
}
|
|
17115
|
+
async writeTerminals(all) {
|
|
17116
|
+
const pending2 = [...this.agentRt].flatMap(
|
|
17117
|
+
([id, rt]) => rt.terminal && (all || rt.terminal.dirty) ? [{ id, terminal: rt.terminal }] : []
|
|
17118
|
+
);
|
|
17119
|
+
let next = 0;
|
|
17120
|
+
await Promise.all(Array.from({ length: Math.min(8, pending2.length) }, async () => {
|
|
17121
|
+
while (next < pending2.length) {
|
|
17122
|
+
const { id, terminal } = pending2[next++];
|
|
17123
|
+
await terminal.save(terminalFile(id)).catch((err) => console.warn("could not save a terminal", err));
|
|
17124
|
+
}
|
|
17125
|
+
}));
|
|
17043
17126
|
}
|
|
17044
17127
|
/** A browser opened an agent's terminal (/ws/term?agent=<id>). */
|
|
17045
17128
|
attachTerminal(agentId, ws) {
|
|
@@ -19732,7 +19815,7 @@ var app = express();
|
|
|
19732
19815
|
var proxied = (port) => swarm.previewProxied(port);
|
|
19733
19816
|
app.use((req, res, next) => void (handleGateway(req, res, proxied) || next()));
|
|
19734
19817
|
app.post("/api/hooks/:token", express.json({ limit: "64mb" }), (req, res) => void res.json(handleHook(String(req.params.token), req.body)));
|
|
19735
|
-
app.post("/api/mcp/:token", express.json({ limit:
|
|
19818
|
+
app.post("/api/mcp/:token", express.json({ limit: MCP_BODY_LIMIT }), (req, res, next) => void handleMcp(String(req.params.token), req, res).catch(next));
|
|
19736
19819
|
app.all("/api/mcp/:token", (_req, res) => void res.status(405).set("Allow", "POST").end());
|
|
19737
19820
|
app.use(express.json({ limit: "1mb" }));
|
|
19738
19821
|
var route = (fn) => async (req, res, next) => {
|