From 54e41d0c82e4e1b78eff81f3a1f7e8d747185903 Mon Sep 17 00:00:00 2001 From: song Date: Thu, 3 Dec 2026 23:31:17 -0500 Subject: [PATCH 1/7] feat(oar): expose all 16 OAR runtimes in CLI/Chat, align workbench to 0.142.0, and add Windows Job containment Signed-off-by: song --- apps/workbench/package-lock.json | 706 ++++++++---------- apps/workbench/packages/daemon/package.json | 2 +- .../packages/daemon/src/adapters/oar.ts | 29 +- loopx/chat/endpoint_catalog.py | 48 ++ loopx/chat/oar_chat_adapter.py | 315 ++++++++ loopx/chat/session_open.py | 19 +- loopx/cli_commands/turn_registration.py | 36 +- loopx/cli_commands/turn_run_once.py | 12 + loopx/control_plane/oar/runtime_loader.ts | 121 ++- .../control_plane/oar/session_host_server.ts | 15 + loopx/control_plane/oar/session_hub.ts | 5 + .../turn_driver/oar_turn_host.py | 344 +++++++++ loopx/hosts/oar_client.py | 129 +++- .../control_plane/test_oar_phase4_runtimes.py | 329 ++++++++ .../control_plane_ts/oar_session_hub.test.ts | 68 ++ 15 files changed, 1779 insertions(+), 399 deletions(-) create mode 100644 loopx/chat/oar_chat_adapter.py create mode 100644 loopx/control_plane/turn_driver/oar_turn_host.py create mode 100644 tests/control_plane/test_oar_phase4_runtimes.py diff --git a/apps/workbench/package-lock.json b/apps/workbench/package-lock.json index b8f70dd846..ebd3bf1e0d 100644 --- a/apps/workbench/package-lock.json +++ b/apps/workbench/package-lock.json @@ -239,16 +239,16 @@ } }, "node_modules/@aws-sdk/core": { - "version": "3.981.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.981.1.tgz", - "integrity": "sha512-sERtJaZjzvBdFMm2uei4k0WwPNUJtIrMBH9h0AEw7G0KkhIbnN3e5ZcwGjbVKClR+rrJCmyL1jhtXkseE7DU4A==", + "version": "3.981.2", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.981.2.tgz", + "integrity": "sha512-N3XKZdfa+Dcm7Kl8NJnaaHLx860Ts3QYHOraj/wuKOYHqqCApQBIKwzSxrpwZdwrqfbPt7BvJdYVhVMPpsRoGA==", "license": "Apache-2.0", "optional": true, "dependencies": { "@aws-sdk/types": "^3.975.1", "@aws-sdk/xml-builder": "^3.972.43", "@aws/lambda-invoke-store": "^0.3.0", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/signature-v4": "^5.7.5", "@smithy/types": "^4.20.0", "bowser": "^2.11.0", @@ -259,15 +259,15 @@ } }, "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.972.85", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.85.tgz", - "integrity": "sha512-IkIfFWmDbUyDEdNZpyAMmD3Givrm11I9UrqbgmLu1kUL/oh96QMqbfuHcbH08ErngZPDCQ2+7fW3U4r/W2k2Xg==", + "version": "3.972.86", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.86.tgz", + "integrity": "sha512-ZFIkIzLAiOLOakfrzUuOz938+AF+q4nc/MYINYwFlgBbl8CsI8ofJ8Ueh0/Pp7hXMJfpq10eJdnQ7aaE6kfikQ==", "license": "Apache-2.0", "optional": true, "dependencies": { - "@aws-sdk/core": "^3.981.1", + "@aws-sdk/core": "^3.981.2", "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/types": "^4.20.0", "tslib": "^2.6.2" }, @@ -276,15 +276,15 @@ } }, "node_modules/@aws-sdk/credential-provider-http": { - "version": "3.972.87", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.87.tgz", - "integrity": "sha512-NWQNmfmllENW1TOpMfhEZeRzEvbSaFsS5yrb2TZJ0wu+fVL5hyVSfGVLd8HTWb2UECD2bCw/kDXaA6dR1VJf3g==", + "version": "3.972.89", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.89.tgz", + "integrity": "sha512-vxYNKrLdpHz7PF6grBBAC9QIC5bK7sP7/SFdx0PewJwbQbjpjiR/JuNDzXQQr+ix9Pb5ABRm6HcO68Vu401JuQ==", "license": "Apache-2.0", "optional": true, "dependencies": { - "@aws-sdk/core": "^3.981.1", + "@aws-sdk/core": "^3.981.2", "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/fetch-http-handler": "^5.8.1", "@smithy/node-http-handler": "^4.14.2", "@smithy/types": "^4.20.0", @@ -310,22 +310,22 @@ } }, "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.973.31", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.973.31.tgz", - "integrity": "sha512-K6jkaKaAaVn9qAl/I14lzDHnYWHiESkxYLnmPYnJg3OfTRtWz39NerpidQIzqbMpoE/pmFqhgSJ+Sx/j1++8sA==", + "version": "3.973.33", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.973.33.tgz", + "integrity": "sha512-5h3d9kIhkUBWgzOMcmDSpnPxOKVWivwrdJe2K4E7D7n5sSJsYuBFkK6D5m2/KBnPpfcqYc/HIYfeRpQDFGVnOg==", "license": "Apache-2.0", "optional": true, "dependencies": { - "@aws-sdk/core": "^3.981.1", - "@aws-sdk/credential-provider-env": "^3.972.85", - "@aws-sdk/credential-provider-http": "^3.972.87", - "@aws-sdk/credential-provider-login": "^3.972.93", - "@aws-sdk/credential-provider-process": "^3.972.85", - "@aws-sdk/credential-provider-sso": "^3.973.29", - "@aws-sdk/credential-provider-web-identity": "^3.972.91", - "@aws-sdk/nested-clients": "^3.998.4", + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/credential-provider-env": "^3.972.86", + "@aws-sdk/credential-provider-http": "^3.972.89", + "@aws-sdk/credential-provider-login": "^3.972.94", + "@aws-sdk/credential-provider-process": "^3.972.86", + "@aws-sdk/credential-provider-sso": "^3.973.30", + "@aws-sdk/credential-provider-web-identity": "^3.972.92", + "@aws-sdk/nested-clients": "^3.998.5", "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/credential-provider-imds": "^4.5.2", "@smithy/types": "^4.20.0", "tslib": "^2.6.2" @@ -335,16 +335,16 @@ } }, "node_modules/@aws-sdk/credential-provider-login": { - "version": "3.972.93", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.93.tgz", - "integrity": "sha512-JofxFKJyNGLc9MmFMKy/vmjVwvNIWKNvHOf8rkXheH9x4+WJpIexhk1cqbmxWkodDYAodqGTiCEdBAVuiyH0iA==", + "version": "3.972.94", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.94.tgz", + "integrity": "sha512-sSq1PxdXT1kqR11/dRvE5AC2dEWMbYJCXzRU03Ulu4stu6vv08zju8uUNhVdqiIX+OrMIcEHHT1maLrUZDBGDA==", "license": "Apache-2.0", "optional": true, "dependencies": { - "@aws-sdk/core": "^3.981.1", - "@aws-sdk/nested-clients": "^3.998.4", + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/nested-clients": "^3.998.5", "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/types": "^4.20.0", "tslib": "^2.6.2" }, @@ -353,22 +353,22 @@ } }, "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.972.98", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.98.tgz", - "integrity": "sha512-EpRL6YwSqvNlMjvRmwR2o3exV6DaETTdaWr1U7fZ456LQeK6ErOSluc6mWMY+OjkrBVFK4PgrU4NlERXTcgzKg==", + "version": "3.972.82", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.82.tgz", + "integrity": "sha512-znDkEOGXB8W3kG1LJUKP3foBZY/9qLM0eil/DxWXSp37XsdsRLQHE/d/OaCGGVgKpA6znR38h/+INk8do1FjiA==", "license": "Apache-2.0", "optional": true, "dependencies": { - "@aws-sdk/credential-provider-env": "^3.972.85", - "@aws-sdk/credential-provider-http": "^3.972.87", - "@aws-sdk/credential-provider-ini": "^3.973.31", - "@aws-sdk/credential-provider-process": "^3.972.85", - "@aws-sdk/credential-provider-sso": "^3.973.29", - "@aws-sdk/credential-provider-web-identity": "^3.972.91", - "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", - "@smithy/credential-provider-imds": "^4.5.2", - "@smithy/types": "^4.20.0", + "@aws-sdk/credential-provider-env": "^3.972.70", + "@aws-sdk/credential-provider-http": "^3.972.72", + "@aws-sdk/credential-provider-ini": "^3.973.15", + "@aws-sdk/credential-provider-process": "^3.972.70", + "@aws-sdk/credential-provider-sso": "^3.973.14", + "@aws-sdk/credential-provider-web-identity": "^3.972.76", + "@aws-sdk/types": "^3.974.5", + "@smithy/core": "^3.33.3", + "@smithy/credential-provider-imds": "^4.4.16", + "@smithy/types": "^4.17.2", "tslib": "^2.6.2" }, "engines": { @@ -376,15 +376,15 @@ } }, "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.972.85", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.85.tgz", - "integrity": "sha512-19kc3xj6woR3Nb2NWFxowRkCnuR43jMFcTLLLCqkzB/rPxxE1+NfHnAP5fpXgrI4xRRgDzvWeDREjhGrJxqfxA==", + "version": "3.972.86", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.86.tgz", + "integrity": "sha512-9x/+gtSDNxMQrRXgwIdwdNCVGxzUZtTZArjEeLfsn9xDvyXdsgs4my1g7JN5wKxT61ZLx4bKPREaDXnO8j7gkg==", "license": "Apache-2.0", "optional": true, "dependencies": { - "@aws-sdk/core": "^3.981.1", + "@aws-sdk/core": "^3.981.2", "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/types": "^4.20.0", "tslib": "^2.6.2" }, @@ -393,17 +393,17 @@ } }, "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.973.29", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.973.29.tgz", - "integrity": "sha512-DJuKIs0bn5MZXc5uE1sf/R67YVC4ivFnL/dbKHukhdb5B6Fy80k8/BqiQykzXEqoT/qlSQaqYXU29hqVAYjcsg==", + "version": "3.973.30", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.973.30.tgz", + "integrity": "sha512-sMvwUIaKQEeprbMT5LXrI6nhM1IUEBDRpJAydEkAMrI7brrsRl7pxnOAJ6nweg/Hn5pJOVS7JgieJIv6CvJ7Sw==", "license": "Apache-2.0", "optional": true, "dependencies": { - "@aws-sdk/core": "^3.981.1", - "@aws-sdk/nested-clients": "^3.998.4", - "@aws-sdk/token-providers": "3.1175.0", + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/nested-clients": "^3.998.5", + "@aws-sdk/token-providers": "3.1177.0", "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/types": "^4.20.0", "tslib": "^2.6.2" }, @@ -412,16 +412,16 @@ } }, "node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers": { - "version": "3.1175.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1175.0.tgz", - "integrity": "sha512-irdg9wmKjTDumWoZeXIM3ecgfriHEEm0Q05bjiHwGNRCXXexz+5roMS28IzKWELI5QX/XZjL1vvvaIyptlCfAQ==", + "version": "3.1177.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1177.0.tgz", + "integrity": "sha512-KFQ/2YqE7OIGNu05hys6y9ZUyoNxxLJVHM7NCvjfyjV0Mki0u0Euwjduj5M/HMurdbZJfBV0NjMNQQkGlJEQqg==", "license": "Apache-2.0", "optional": true, "dependencies": { - "@aws-sdk/core": "^3.981.1", - "@aws-sdk/nested-clients": "^3.998.4", + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/nested-clients": "^3.998.5", "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/types": "^4.20.0", "tslib": "^2.6.2" }, @@ -430,16 +430,16 @@ } }, "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.972.91", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.91.tgz", - "integrity": "sha512-4k4beWSkxhwKeGMVfgppv/LwCfCd1zAycWgqop7GHkdvdNK9TTkWn299LjUQOgDMfBX2Sv08t+J1mAWKHatttw==", + "version": "3.972.92", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.92.tgz", + "integrity": "sha512-AKaUwpy1wPN3B/byFWuvL6v+Qk8Gm840InZJw/bA1A+ciCL3zkzBUyEgxdeghJPEe79VKLs6BvbME74MQa3YKg==", "license": "Apache-2.0", "optional": true, "dependencies": { - "@aws-sdk/core": "^3.981.1", - "@aws-sdk/nested-clients": "^3.998.4", + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/nested-clients": "^3.998.5", "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/types": "^4.20.0", "tslib": "^2.6.2" }, @@ -448,14 +448,14 @@ } }, "node_modules/@aws-sdk/eventstream-handler-node": { - "version": "3.972.42", - "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-handler-node/-/eventstream-handler-node-3.972.42.tgz", - "integrity": "sha512-YVB1wrpE1WF8NvMpaRyhwm9XBYl3HTbPNEIgybi0b0XpmBrJ7Y3Y/drbxh9qAVMbR+0hcwM63GPWzhOVRuerfg==", + "version": "3.972.43", + "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-handler-node/-/eventstream-handler-node-3.972.43.tgz", + "integrity": "sha512-q7r2UxyaGdDf+//7esWvC95JLz9oEFljL2sKCZlkHa22HhEiIE4xwaP1CbWSxSPua/P2h2sgTHOgywuw8mVJRQ==", "license": "Apache-2.0", "optional": true, "dependencies": { "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/types": "^4.20.0", "tslib": "^2.6.2" }, @@ -464,14 +464,14 @@ } }, "node_modules/@aws-sdk/middleware-eventstream": { - "version": "3.972.38", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-eventstream/-/middleware-eventstream-3.972.38.tgz", - "integrity": "sha512-4K6FDz2BxH3rve8Hw/8uApWXKCuKKMeYKzY23PoiGqUBWaA23eAy+GzW9aoG3Cm7HqgYzqkljl3ECJRJCxGs7g==", + "version": "3.972.39", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-eventstream/-/middleware-eventstream-3.972.39.tgz", + "integrity": "sha512-FZiEHXudprvzex41hoFZecbVmqYhbrOGsCm2W8C+xBPhKtk4DCkvnCIohh1WfmXPcphoHICeLcdR3sVQClMNUw==", "license": "Apache-2.0", "optional": true, "dependencies": { "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/types": "^4.20.0", "tslib": "^2.6.2" }, @@ -480,15 +480,15 @@ } }, "node_modules/@aws-sdk/middleware-websocket": { - "version": "3.972.67", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.972.67.tgz", - "integrity": "sha512-tkj0koUk9PueX4EP++cbVHYQXLUf5TfsVfwIpKmrdGEkA5tcjFcNdMIpt2U3Sd4AeQMbX1lF8Q2/jZTP9r9CgA==", + "version": "3.972.68", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.972.68.tgz", + "integrity": "sha512-Jm9R6LtSw8IeolnhInwcUaAUOO74kKTpy+URWthFrCBQKbd5ZulLtePYoGwiRBkao1UiIjvU1vfDjksOJFP1Vw==", "license": "Apache-2.0", "optional": true, "dependencies": { - "@aws-sdk/core": "^3.981.1", + "@aws-sdk/core": "^3.981.2", "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/fetch-http-handler": "^5.8.1", "@smithy/signature-v4": "^5.7.5", "@smithy/types": "^4.20.0", @@ -499,16 +499,16 @@ } }, "node_modules/@aws-sdk/nested-clients": { - "version": "3.998.4", - "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.998.4.tgz", - "integrity": "sha512-8Vzg3e9ia6eHQStnoSn17asRNWHrf/ozgQslLMGOdM5JifyV+AAk1+lgVXcQMmrzgRhR9phRUEFxAOg/cBh7MQ==", + "version": "3.998.5", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.998.5.tgz", + "integrity": "sha512-9w5mkwVLOuGqlJkPR1uhod6ZP+TOtaxrKtvK2pY9G/+FEx0e8wYRLIDeg30dYQjFDx27jHGSzEA+OaMqxeyTPg==", "license": "Apache-2.0", "optional": true, "dependencies": { - "@aws-sdk/core": "^3.981.1", + "@aws-sdk/core": "^3.981.2", "@aws-sdk/signature-v4-multi-region": "^3.996.52", "@aws-sdk/types": "^3.975.1", - "@smithy/core": "^3.40.0", + "@smithy/core": "^3.41.1", "@smithy/fetch-http-handler": "^5.8.1", "@smithy/node-http-handler": "^4.14.2", "@smithy/types": "^4.20.0", @@ -896,6 +896,76 @@ "node": ">=6.9.0" } }, + "node_modules/@botiverse/bottega": { + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/@botiverse/bottega/-/bottega-0.3.11.tgz", + "integrity": "sha512-fh6bpWLnz6DKVUsgFMl3c5IbkWo9GOZIgQXWr05FhrnAWK99NUMGYW9D4ojEbT57DUo/YwwichfCluqNNag7KA==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@earendil-works/pi-ai": "^1.7.0", + "@modelcontextprotocol/sdk": "^1.32.1", + "typebox": "^1.3.27", + "undici": "7.29.1" + }, + "bin": { + "bottega": "dist/cli.js" + }, + "engines": { + "node": ">=24" + } + }, + "node_modules/@botiverse/bottega/node_modules/undici": { + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.29.1.tgz", + "integrity": "sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=20.18.1" + } + }, + "node_modules/@botiverse/oar": { + "version": "0.142.0", + "resolved": "https://registry.npmjs.org/@botiverse/oar/-/oar-0.142.0.tgz", + "integrity": "sha512-sJh+7rZ8GkDq62wPg7tTgSB8Fzszh3o9lQzvDMnbPBIBovZU+0FKSWaTrVZMePhGD/5UwoWFezjnGpvWEUWZ6A==", + "license": "Apache-2.0", + "dependencies": { + "@agentclientprotocol/sdk": "^1.4.0", + "cross-spawn": "^7.0.6", + "dotenv": "^17.4.2", + "gray-matter": "4.0.3", + "js-yaml": "3.15.2", + "jsonc-parser": "3.3.1", + "strip-json-comments": "^5.0.3", + "undici": "8.12.4", + "which": "^2.0.2" + }, + "engines": { + "node": ">=24.0.0" + }, + "optionalDependencies": { + "@botiverse/bottega": "~0.3.0", + "@earendil-works/pi-ai": "~1.7.0", + "@earendil-works/pi-coding-agent": "~1.7.0" + }, + "peerDependencies": { + "@cursor/sdk": "1.5.3", + "@earendil-works/chord": "~1.7.0", + "@earendil-works/pi-durable": "~1.7.0" + }, + "peerDependenciesMeta": { + "@cursor/sdk": { + "optional": true + }, + "@earendil-works/chord": { + "optional": true + }, + "@earendil-works/pi-durable": { + "optional": true + } + } + }, "node_modules/@braintree/sanitize-url": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-7.1.2.tgz", @@ -992,137 +1062,33 @@ "@connectrpc/connect": "1.7.0" } }, - "node_modules/@cursor/sdk": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@cursor/sdk/-/sdk-1.4.1.tgz", - "integrity": "sha512-+/be5Dh+MSk3KHwVWv2l7rCKemxd6ducLO+X7u43GE+jL9Md00bxwMciP+WMzVu4qcn5Yh0y/Ij+UT+W5FbtQg==", - "license": "SEE LICENSE IN LICENSE.md", - "dependencies": { - "@bufbuild/protobuf": "1.10.0", - "@connectrpc/connect": "^1.6.1", - "@connectrpc/connect-web": "^1.6.1", - "@statsig/js-client": "3.31.0" - }, - "engines": { - "node": ">=22.13" - }, - "optionalDependencies": { - "@cursor/sdk-darwin-arm64": "1.4.1", - "@cursor/sdk-darwin-x64": "1.4.1", - "@cursor/sdk-linux-arm64": "1.4.1", - "@cursor/sdk-linux-x64": "1.4.1", - "@cursor/sdk-win32-x64": "1.4.1" - }, - "peerDependencies": { - "zod": "^3.25.0 || ^4.0.0" - } - }, - "node_modules/@cursor/sdk-darwin-arm64": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@cursor/sdk-darwin-arm64/-/sdk-darwin-arm64-1.4.1.tgz", - "integrity": "sha512-iR5v8dQSF574WC4S/hgqXvDjMdLQlXbu9hJnhmUUferHVjI2v1RPoX/HvXFvke3SbPD2sLaTAB69rn3jpyuSFg==", - "cpu": [ - "arm64" - ], - "license": "SEE LICENSE IN LICENSE.md", - "optional": true, - "os": [ - "darwin" - ], - "bin": { - "rg": "bin/rg" - } - }, - "node_modules/@cursor/sdk-darwin-x64": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@cursor/sdk-darwin-x64/-/sdk-darwin-x64-1.4.1.tgz", - "integrity": "sha512-nvmA1+rRI/enhbA9P5xKW1sicbSdjN3WkOM0JTIzkjee/A/UQ7YaLBcZjrTqSIna+/tqyNdSupVa41/BL+NM7A==", - "cpu": [ - "x64" - ], - "license": "SEE LICENSE IN LICENSE.md", - "optional": true, - "os": [ - "darwin" - ], - "bin": { - "rg": "bin/rg" - } - }, - "node_modules/@cursor/sdk-linux-arm64": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@cursor/sdk-linux-arm64/-/sdk-linux-arm64-1.4.1.tgz", - "integrity": "sha512-92HIbKzlILBMLUso6a8IlnbUysNi6jJvbkuZX45/T3+C/rkYe5RheIaytdz53crKMleH00Lz2fy9l0MK5aOrOQ==", - "cpu": [ - "arm64" - ], - "license": "SEE LICENSE IN LICENSE.md", - "optional": true, - "os": [ - "linux" - ], - "bin": { - "rg": "bin/rg" - } - }, - "node_modules/@cursor/sdk-linux-x64": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@cursor/sdk-linux-x64/-/sdk-linux-x64-1.4.1.tgz", - "integrity": "sha512-lUpG6G7qkOh9cC5IMOWr8sGrlOpnEH7s0nw/Mdg0o6DpJFkouyXk6Cy+RMaQKQeilTPIy5RW87zWgBwRKnj8KQ==", - "cpu": [ - "x64" - ], - "license": "SEE LICENSE IN LICENSE.md", - "optional": true, - "os": [ - "linux" - ], - "bin": { - "rg": "bin/rg" - } - }, - "node_modules/@cursor/sdk-win32-x64": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@cursor/sdk-win32-x64/-/sdk-win32-x64-1.4.1.tgz", - "integrity": "sha512-8x8hIPyVu6ChyzGPryOSFVJVbLe7nTvXBUKKia9/SEtzSonQLYPoj5pjpkWOpLxhyHkWnwxQfkSC0mO9+9pW1w==", - "cpu": [ - "x64" - ], - "license": "SEE LICENSE IN LICENSE.md", - "optional": true, - "os": [ - "win32" - ], - "bin": { - "rg": "bin/rg.exe" - } - }, "node_modules/@earendil-works/pi-agent-core": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.6.0.tgz", - "integrity": "sha512-IU/x+2XtE4KIdIkEndZssdLPbIUR38Btj+Q7vjIIXIK7GSamLtDH5jOw/dzBWAvWFAgZ2dslF5sPc6GcGOnS+w==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.7.0.tgz", + "integrity": "sha512-pLs/wTAcrUnKDILPHjnd7RiDZSotAhJ965LwVc8x37TeWF+k+vKPMmAW6Z1T8XMQuICbIYusjkT7K0lmjgQwrg==", "license": "MIT", "optional": true, "dependencies": { - "@earendil-works/pi-ai": "1.6.0", - "@earendil-works/pi-schema": "1.6.0" + "@earendil-works/pi-ai": "1.7.0", + "@earendil-works/pi-schema": "1.7.0" }, "engines": { "node": ">=22.19.0" } }, "node_modules/@earendil-works/pi-ai": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.6.0.tgz", - "integrity": "sha512-9hL+eygFDEiFp//cydeUfmFsKmEqpmvsNPb10Y1W8+m5K9O+sx1hMStfu6nukrBD5sl6mP4RykCYBBNEgsVLfw==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.7.0.tgz", + "integrity": "sha512-iKryMlUYniwWbU7YU0uS7W0+cGd9c6oJ6PzRLOn8j4+1njG4c+BQq1cNawctx/npDqGeOx8ME7Gkgl6K6arPuw==", "license": "MIT", "optional": true, "dependencies": { "@anthropic-ai/sdk": "0.129.0", "@aws-sdk/client-bedrock-runtime": "3.1127.0", - "@earendil-works/pi-schema": "1.6.0", - "@earendil-works/pi-telemetry": "1.6.0", - "@google/genai": "2.32.0", + "@aws-sdk/credential-provider-node": "3.972.82", + "@earendil-works/pi-schema": "1.7.0", + "@earendil-works/pi-telemetry": "1.7.0", + "@google/genai": "3.6.1", "@smithy/node-http-handler": "4.12.1", "http-proxy-agent": "9.1.0", "https-proxy-agent": "9.1.0", @@ -1159,9 +1125,9 @@ } }, "node_modules/@earendil-works/pi-codemode": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.6.0.tgz", - "integrity": "sha512-GAgAy7iJCVbeiuqq2dTIuNj3aXTMUeTF8Nu8LZs72e8ueGGDU5L3/D8VxzTHALIpQ1/q8u1tfmB3iYS2Nopchw==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.7.0.tgz", + "integrity": "sha512-fhCoh8TLxhdRTOWSEplwp39Uv+JTsu9pCqtgu9gorO8zcaw92vsbVI/G89yFs92csTo2+yB7EsJq/+725Vj+eA==", "license": "MIT", "optional": true, "dependencies": { @@ -1172,17 +1138,17 @@ } }, "node_modules/@earendil-works/pi-coding-agent": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-1.6.0.tgz", - "integrity": "sha512-zX1BVEsshx7A2MRuQ6jfr3RJGWw4Wn+vLq5ZfmlvS1RskhRmByaSZVXH/zcwRrWHO7qPgs98pNCbPOEti/t0fQ==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-1.7.0.tgz", + "integrity": "sha512-opRelA1oqV/o+cByICMYU87oiHuICeCkghHMqsZsDwDz9F6qo8HFhoH4J/wZkr6tBeFor7ryOSwEmpZsusYrbA==", "license": "MIT", "optional": true, "dependencies": { - "@earendil-works/pi-agent-core": "1.6.0", - "@earendil-works/pi-ai": "1.6.0", - "@earendil-works/pi-codemode": "1.6.0", - "@earendil-works/pi-mcp": "1.6.0", - "@earendil-works/pi-tui": "1.6.0", + "@earendil-works/pi-agent-core": "1.7.0", + "@earendil-works/pi-ai": "1.7.0", + "@earendil-works/pi-codemode": "1.7.0", + "@earendil-works/pi-mcp": "1.7.0", + "@earendil-works/pi-tui": "1.7.0", "@silvia-odwyer/photon-node": "0.3.4", "brace-expansion": "5.0.12", "chalk": "6.0.0", @@ -1241,10 +1207,17 @@ "node": ">=10" } }, + "node_modules/@earendil-works/pi-coding-agent/node_modules/typebox": { + "version": "1.3.27", + "resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.27.tgz", + "integrity": "sha512-zu+jc1pcy4UiNThxikUr36f0Rybk9PEeCg/NE6adeWr/SKsdNO4EzZHYRDlv2YCVAfj3Odq3dESSo/jNyoBXzA==", + "license": "MIT", + "optional": true + }, "node_modules/@earendil-works/pi-mcp": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-mcp/-/pi-mcp-1.6.0.tgz", - "integrity": "sha512-dhqAR6MP8Fp3b8LEcBFOyxMZpGSozUAdzF0Dbl7OvojsjZrQsDV3ZKn85WRbwjHb4WjQUCVBsIZXwoyQxXeunw==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-mcp/-/pi-mcp-1.7.0.tgz", + "integrity": "sha512-ScsDjuFXjT9eKioD5oyZqofDXtaWCMhCBa+1aDSh7WmRACLsohfGQJtAX1rv5OmEbaerrRPgyD5jgwJFBjTFNw==", "license": "MIT", "optional": true, "dependencies": { @@ -1255,9 +1228,9 @@ } }, "node_modules/@earendil-works/pi-schema": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.6.0.tgz", - "integrity": "sha512-jD0VRCUcFzWQ5zN82pOuoHNN42/3pu4E5krtpiKknvPq4g2m+fuO38lj+xnZhuVpYcd2G0qlmr8lE6ZMzkad7Q==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.7.0.tgz", + "integrity": "sha512-skji4McLg9jum3NFWzFa/4QRGEZhMGnSi3QL8b9VljJkc/QopH2/BFuGKI+VcEwYzKGwsd0I8RzvXGnZGfGltQ==", "license": "MIT", "optional": true, "engines": { @@ -1265,9 +1238,9 @@ } }, "node_modules/@earendil-works/pi-telemetry": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.6.0.tgz", - "integrity": "sha512-MNL0TvtpgoSfX7mBLSVgzxTW6yvT8VLEpHvbWnZsIp92FtqVvx+4q9DxWZdX8KvcQqBs0GseAgVnLdVFinjN9Q==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.7.0.tgz", + "integrity": "sha512-QZkngqktohuFZ2TZuJSXDuUntld4sCMW1tkUPaD4moMEX/z1lwcjycXnd9ChO9HNxm/Jfo+UTiC+N2hkAF9b0w==", "license": "MIT", "optional": true, "engines": { @@ -1275,9 +1248,9 @@ } }, "node_modules/@earendil-works/pi-tui": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.6.0.tgz", - "integrity": "sha512-nVtWZ4rYr3KHDla3skGAWG5XoITEUJCoEx1AsWv1yKxV7+v86ulD2hxVn/P+COI6jsoeQmj3orqHbCHZwAUsUg==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.7.0.tgz", + "integrity": "sha512-C6vkUYGTeDdl/cMIbFOabSEPMRy9HuaUV76PS2BhvSmWifO5y8Rz8/LgFWqGIIFS7RMqu0gdeEpdXfH8jIp05g==", "license": "MIT", "optional": true, "dependencies": { @@ -1745,20 +1718,19 @@ } }, "node_modules/@google/genai": { - "version": "2.32.0", - "resolved": "https://registry.npmjs.org/@google/genai/-/genai-2.32.0.tgz", - "integrity": "sha512-60c79uXpR0a47bmGqDxbXEBuQUalNmwo5mx5kqb91jIW4FoqpsLSt86DeVhRhtH5+s/16Wqxt3sXzFQn2U1OHQ==", - "hasInstallScript": true, + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/@google/genai/-/genai-3.6.1.tgz", + "integrity": "sha512-DQIkZkl+VoZc+RUSaJ41vRuywjQDpP0t/oUf5/ddQhNW6JsPjVULW2EgHmuJ1mrr6ACtrmUdPlqtNXF1yfKySg==", "license": "Apache-2.0", "optional": true, "dependencies": { "google-auth-library": "^10.3.0", "p-retry": "^4.6.2", - "protobufjs": "^7.5.4", - "ws": "^8.18.0" + "protobufjs": "^7.6.5", + "ws": "^8.21.0" }, "engines": { - "node": ">=20.0.0" + "node": ">=22.0.0" }, "peerDependencies": { "@modelcontextprotocol/sdk": "^1.25.2" @@ -1774,7 +1746,6 @@ "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.8.tgz", "integrity": "sha512-jdf7FHh6A1lzjpHHQUgxsg2GeER2vMetnAOfeActzcoli6jamlK+NAwL6Dsr5Fl3BS3tYUQzCdtZjU8Qxv7bEA==", "license": "MIT", - "peer": true, "engines": { "node": ">=20" }, @@ -1893,7 +1864,6 @@ "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.32.1.tgz", "integrity": "sha512-2DdE+SJDtzLEEWzY1ZjY7Q+VcPhcV1KisD3zI4u0XZyktsjHum1mwbMI+JaulUBi2OZk+KJAi2uPXzxichPkdw==", "license": "MIT", - "peer": true, "dependencies": { "@hono/node-server": "^1.19.9 || ^2.0.5", "ajv": "^8.17.1", @@ -2383,9 +2353,9 @@ "optional": true }, "node_modules/@smithy/core": { - "version": "3.41.0", - "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.41.0.tgz", - "integrity": "sha512-fuZ34H1uizS3WgcX9VXG7Uy8od5A5/kCc+CR3NkHLNm2H/BE9AUHG02VIdu8ZB7FYhLqsr/RZbqAoXuOCg/Oxg==", + "version": "3.41.1", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.41.1.tgz", + "integrity": "sha512-24LyiHSY0R/MLcbTylurWXU6Uy4lzI6KJgsdzxkNnjT9/OLWc2zGPb/3k5AM1f0vcgCGrExanUG339t+TBiIrA==", "license": "Apache-2.0", "optional": true, "dependencies": { @@ -2987,7 +2957,6 @@ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", "license": "MIT", - "peer": true, "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" @@ -3011,7 +2980,6 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", "license": "MIT", - "peer": true, "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", @@ -3028,7 +2996,6 @@ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", "license": "MIT", - "peer": true, "dependencies": { "ajv": "^8.0.0" }, @@ -3119,7 +3086,6 @@ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz", "integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==", "license": "MIT", - "peer": true, "dependencies": { "bytes": "^3.1.2", "content-type": "^2.1.0", @@ -3144,7 +3110,6 @@ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", "license": "MIT", - "peer": true, "engines": { "node": ">=18" }, @@ -3219,7 +3184,6 @@ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.8" } @@ -3229,7 +3193,6 @@ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", "license": "MIT", - "peer": true, "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" @@ -3243,7 +3206,6 @@ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", "license": "MIT", - "peer": true, "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" @@ -3388,7 +3350,6 @@ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-2.0.1.tgz", "integrity": "sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==", "license": "MIT", - "peer": true, "engines": { "node": ">=18" }, @@ -3402,7 +3363,6 @@ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.6" } @@ -3419,7 +3379,6 @@ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.6" } @@ -3429,7 +3388,6 @@ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", "license": "MIT", - "peer": true, "engines": { "node": ">=6.6.0" } @@ -3439,7 +3397,6 @@ "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz", "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==", "license": "MIT", - "peer": true, "dependencies": { "object-assign": "^4", "vary": "^1" @@ -4052,7 +4009,6 @@ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.8" } @@ -4114,7 +4070,6 @@ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", "license": "MIT", - "peer": true, "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", @@ -4138,8 +4093,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/electron-to-chromium": { "version": "1.5.452", @@ -4159,7 +4113,6 @@ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.8" } @@ -4181,7 +4134,6 @@ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.4" } @@ -4191,7 +4143,6 @@ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.4" } @@ -4201,7 +4152,6 @@ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", "license": "MIT", - "peer": true, "dependencies": { "es-errors": "^1.3.0" }, @@ -4277,8 +4227,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/escape-string-regexp": { "version": "5.0.0", @@ -4320,7 +4269,6 @@ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.6" } @@ -4330,7 +4278,6 @@ "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz", "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==", "license": "MIT", - "peer": true, "dependencies": { "eventsource-parser": "^3.0.1" }, @@ -4343,7 +4290,6 @@ "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.1.1.tgz", "integrity": "sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==", "license": "MIT", - "peer": true, "engines": { "node": ">=18.0.0" } @@ -4353,7 +4299,6 @@ "resolved": "https://registry.npmjs.org/express/-/express-5.3.0.tgz", "integrity": "sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==", "license": "MIT", - "peer": true, "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.3.0", @@ -4397,7 +4342,6 @@ "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.7.1.tgz", "integrity": "sha512-2FXbqkygil3mZiXzEtM0IjE/UBmBNot0J1GEVrJT4JbrvwOSoEtqtO+wHbiMQELWe1eNvHoYRg2dkjOid+6JkA==", "license": "MIT", - "peer": true, "dependencies": { "debug": "^4.4.3", "ip-address": "^10.2.0" @@ -4417,7 +4361,6 @@ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", "license": "MIT", - "peer": true, "engines": { "node": ">=18" }, @@ -4448,8 +4391,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/fast-sha256": { "version": "1.3.0", @@ -4471,8 +4413,7 @@ "url": "https://opencollective.com/fastify" } ], - "license": "BSD-3-Clause", - "peer": true + "license": "BSD-3-Clause" }, "node_modules/fetch-blob": { "version": "3.2.0", @@ -4503,7 +4444,6 @@ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", "license": "MIT", - "peer": true, "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", @@ -4538,7 +4478,6 @@ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.6" } @@ -4548,7 +4487,6 @@ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.8" } @@ -4573,7 +4511,6 @@ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "license": "MIT", - "peer": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -4660,7 +4597,6 @@ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "license": "MIT", - "peer": true, "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", @@ -4685,7 +4621,6 @@ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", "license": "MIT", - "peer": true, "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" @@ -4727,7 +4662,6 @@ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.4" }, @@ -4768,7 +4702,6 @@ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.4" }, @@ -4781,7 +4714,6 @@ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", "license": "MIT", - "peer": true, "dependencies": { "function-bind": "^1.1.2" }, @@ -5014,7 +4946,6 @@ "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.18.tgz", "integrity": "sha512-H9q/E1XizaWstJxUW881dmLxEj+t/TrGGnyxINkm4+sK0qUwsMtFdo2BWI9Vs3cIS19MU6b6iCijoUoEf4f3DA==", "license": "MIT", - "peer": true, "engines": { "node": ">=16.9.0" } @@ -5033,9 +4964,9 @@ } }, "node_modules/hosted-git-info/node_modules/lru-cache": { - "version": "11.5.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", - "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", + "version": "11.5.4", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.4.tgz", + "integrity": "sha512-B8nJCTi8JuSaDBg0tBdnImV6j5O2CXaqKfdj24ZTCFbyivN8KZ2Z+RL3aHjwJAfLutD9cNnObG4SIgW4gMufiw==", "license": "BlueOak-1.0.0", "optional": true, "engines": { @@ -5067,7 +4998,6 @@ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", "license": "MIT", - "peer": true, "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", @@ -5118,7 +5048,6 @@ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", "license": "MIT", - "peer": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -5154,8 +5083,7 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/inline-style-parser": { "version": "0.2.7", @@ -5177,7 +5105,6 @@ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.6.tgz", "integrity": "sha512-00LYkM6byILa9eQIx6qoaXCM40xTLd56AZ4vyaPW3YTyb49VZYPo5xsiAq4tuQ54GH4R7gVdYScJ1B7B77PuTg==", "license": "MIT", - "peer": true, "engines": { "node": ">= 12" } @@ -5187,7 +5114,6 @@ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.10" } @@ -5261,8 +5187,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", @@ -5285,7 +5210,6 @@ "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.12.tgz", "integrity": "sha512-9NiFmJEex0sy2Dk58j2UGBSHgUs2ypF9eZSu4L6vjOX3Dp96Sw1F3uL+H+D1sx02jZZdzUT0HgvCy59CuvXcWw==", "license": "MIT", - "peer": true, "funding": { "url": "https://github.com/sponsors/panva" } @@ -5349,15 +5273,13 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/json-schema-typed": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", - "license": "BSD-2-Clause", - "peer": true + "license": "BSD-2-Clause" }, "node_modules/json5": { "version": "2.2.3", @@ -5541,7 +5463,6 @@ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.4" } @@ -5842,7 +5763,6 @@ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz", "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.8" }, @@ -5856,7 +5776,6 @@ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", "license": "MIT", - "peer": true, "engines": { "node": ">=18" }, @@ -6505,7 +6424,6 @@ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.6" } @@ -6515,7 +6433,6 @@ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", "license": "MIT", - "peer": true, "dependencies": { "mime-db": "^1.54.0" }, @@ -6595,7 +6512,6 @@ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==", "license": "MIT", - "peer": true, "dependencies": { "content-type": "^2.1.0" }, @@ -6612,7 +6528,6 @@ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", "license": "MIT", - "peer": true, "engines": { "node": ">=18" }, @@ -6701,7 +6616,6 @@ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.4" }, @@ -6714,7 +6628,6 @@ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", "license": "MIT", - "peer": true, "dependencies": { "ee-first": "1.1.1" }, @@ -6727,7 +6640,6 @@ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "license": "ISC", - "peer": true, "dependencies": { "wrappy": "1" } @@ -6836,7 +6748,6 @@ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.8" } @@ -6868,7 +6779,6 @@ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", "license": "MIT", - "peer": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/express" @@ -6886,7 +6796,6 @@ "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz", "integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==", "license": "MIT", - "peer": true, "engines": { "node": ">=16.20.0" } @@ -7009,7 +6918,6 @@ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz", "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==", "license": "MIT", - "peer": true, "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" @@ -7045,7 +6953,6 @@ "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz", "integrity": "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==", "license": "BSD-3-Clause", - "peer": true, "dependencies": { "es-define-property": "^1.0.1", "side-channel": "^1.1.1" @@ -7069,7 +6976,6 @@ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz", "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.6" }, @@ -7083,7 +6989,6 @@ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", "license": "MIT", - "peer": true, "dependencies": { "bytes": "~3.1.2", "http-errors": "~2.0.1", @@ -7327,7 +7232,6 @@ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "license": "MIT", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -7411,7 +7315,6 @@ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", "license": "MIT", - "peer": true, "dependencies": { "debug": "^4.4.0", "depd": "^2.0.0", @@ -7493,7 +7396,6 @@ "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", "license": "MIT", - "peer": true, "dependencies": { "debug": "^4.4.3", "encodeurl": "^2.0.0", @@ -7520,7 +7422,6 @@ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", "license": "MIT", - "peer": true, "dependencies": { "encodeurl": "^2.0.0", "escape-html": "^1.0.3", @@ -7539,8 +7440,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/shebang-command": { "version": "2.0.0", @@ -7568,7 +7468,6 @@ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", "license": "MIT", - "peer": true, "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.4", @@ -7588,7 +7487,6 @@ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", "license": "MIT", - "peer": true, "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.4" @@ -7605,7 +7503,6 @@ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", "license": "MIT", - "peer": true, "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", @@ -7624,7 +7521,6 @@ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", "license": "MIT", - "peer": true, "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", @@ -7687,7 +7583,6 @@ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.8" } @@ -7790,7 +7685,6 @@ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", "license": "MIT", - "peer": true, "engines": { "node": ">=0.6" } @@ -7861,7 +7755,6 @@ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz", "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==", "license": "MIT", - "peer": true, "dependencies": { "content-type": "^2.0.0", "media-typer": "^1.1.0", @@ -7880,7 +7773,6 @@ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", "license": "MIT", - "peer": true, "engines": { "node": ">=18" }, @@ -7890,9 +7782,9 @@ } }, "node_modules/typebox": { - "version": "1.3.27", - "resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.27.tgz", - "integrity": "sha512-zu+jc1pcy4UiNThxikUr36f0Rybk9PEeCg/NE6adeWr/SKsdNO4EzZHYRDlv2YCVAfj3Odq3dESSo/jNyoBXzA==", + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/typebox/-/typebox-1.4.7.tgz", + "integrity": "sha512-KonYdBj3gOgG/rH96TlUs/f+eaEDqiKRW7KU4/LE/tEjEnRCcfpYLofBfHfNMBAiBosmY55e4YeCPuE+NXmJtg==", "license": "MIT", "optional": true }, @@ -8032,7 +7924,6 @@ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.8" } @@ -8073,7 +7964,6 @@ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.8" } @@ -8649,8 +8539,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/ws": { "version": "8.22.0", @@ -8710,7 +8599,6 @@ "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz", "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==", "license": "ISC", - "peer": true, "peerDependencies": { "zod": "^3.25.28 || ^4" } @@ -8730,7 +8618,7 @@ "version": "0.1.0", "dependencies": { "@agentclientprotocol/claude-agent-acp": "0.89.0", - "@botiverse/oar": "0.128.1", + "@botiverse/oar": "0.142.0", "@cursor/sdk": "1.4.1", "node-pty": "^1.1.0", "playwright-core": "1.58.0", @@ -8745,44 +8633,109 @@ "typescript": "^5.6.0" } }, - "packages/daemon/node_modules/@botiverse/oar": { - "version": "0.128.1", - "resolved": "https://registry.npmjs.org/@botiverse/oar/-/oar-0.128.1.tgz", - "integrity": "sha512-nyJHsiZSoACX/a17yd18ngFMWLdCd/FuyexjCVMjXgt39fynzFcZP+1Mza5QEF6ZTaH/8jkJAoZaNxtm7vKQ+w==", - "license": "Apache-2.0", + "packages/daemon/node_modules/@cursor/sdk": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@cursor/sdk/-/sdk-1.4.1.tgz", + "integrity": "sha512-+/be5Dh+MSk3KHwVWv2l7rCKemxd6ducLO+X7u43GE+jL9Md00bxwMciP+WMzVu4qcn5Yh0y/Ij+UT+W5FbtQg==", + "license": "SEE LICENSE IN LICENSE.md", "dependencies": { - "@agentclientprotocol/sdk": "^1.4.0", - "cross-spawn": "^7.0.6", - "dotenv": "^17.4.2", - "gray-matter": "4.0.3", - "js-yaml": "3.15.2", - "jsonc-parser": "3.3.1", - "strip-json-comments": "^5.0.3", - "undici": "8.12.4", - "which": "^2.0.2" + "@bufbuild/protobuf": "1.10.0", + "@connectrpc/connect": "^1.6.1", + "@connectrpc/connect-web": "^1.6.1", + "@statsig/js-client": "3.31.0" }, "engines": { - "node": ">=24.0.0" + "node": ">=22.13" }, "optionalDependencies": { - "@earendil-works/pi-ai": "~1.6.0", - "@earendil-works/pi-coding-agent": "~1.6.0" + "@cursor/sdk-darwin-arm64": "1.4.1", + "@cursor/sdk-darwin-x64": "1.4.1", + "@cursor/sdk-linux-arm64": "1.4.1", + "@cursor/sdk-linux-x64": "1.4.1", + "@cursor/sdk-win32-x64": "1.4.1" }, "peerDependencies": { - "@cursor/sdk": "1.4.1", - "@earendil-works/chord": "~1.6.0", - "@earendil-works/pi-durable": "~1.6.0" - }, - "peerDependenciesMeta": { - "@cursor/sdk": { - "optional": true - }, - "@earendil-works/chord": { - "optional": true - }, - "@earendil-works/pi-durable": { - "optional": true - } + "zod": "^3.25.0 || ^4.0.0" + } + }, + "packages/daemon/node_modules/@cursor/sdk-darwin-arm64": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@cursor/sdk-darwin-arm64/-/sdk-darwin-arm64-1.4.1.tgz", + "integrity": "sha512-iR5v8dQSF574WC4S/hgqXvDjMdLQlXbu9hJnhmUUferHVjI2v1RPoX/HvXFvke3SbPD2sLaTAB69rn3jpyuSFg==", + "cpu": [ + "arm64" + ], + "license": "SEE LICENSE IN LICENSE.md", + "optional": true, + "os": [ + "darwin" + ], + "bin": { + "rg": "bin/rg" + } + }, + "packages/daemon/node_modules/@cursor/sdk-darwin-x64": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@cursor/sdk-darwin-x64/-/sdk-darwin-x64-1.4.1.tgz", + "integrity": "sha512-nvmA1+rRI/enhbA9P5xKW1sicbSdjN3WkOM0JTIzkjee/A/UQ7YaLBcZjrTqSIna+/tqyNdSupVa41/BL+NM7A==", + "cpu": [ + "x64" + ], + "license": "SEE LICENSE IN LICENSE.md", + "optional": true, + "os": [ + "darwin" + ], + "bin": { + "rg": "bin/rg" + } + }, + "packages/daemon/node_modules/@cursor/sdk-linux-arm64": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@cursor/sdk-linux-arm64/-/sdk-linux-arm64-1.4.1.tgz", + "integrity": "sha512-92HIbKzlILBMLUso6a8IlnbUysNi6jJvbkuZX45/T3+C/rkYe5RheIaytdz53crKMleH00Lz2fy9l0MK5aOrOQ==", + "cpu": [ + "arm64" + ], + "license": "SEE LICENSE IN LICENSE.md", + "optional": true, + "os": [ + "linux" + ], + "bin": { + "rg": "bin/rg" + } + }, + "packages/daemon/node_modules/@cursor/sdk-linux-x64": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@cursor/sdk-linux-x64/-/sdk-linux-x64-1.4.1.tgz", + "integrity": "sha512-lUpG6G7qkOh9cC5IMOWr8sGrlOpnEH7s0nw/Mdg0o6DpJFkouyXk6Cy+RMaQKQeilTPIy5RW87zWgBwRKnj8KQ==", + "cpu": [ + "x64" + ], + "license": "SEE LICENSE IN LICENSE.md", + "optional": true, + "os": [ + "linux" + ], + "bin": { + "rg": "bin/rg" + } + }, + "packages/daemon/node_modules/@cursor/sdk-win32-x64": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@cursor/sdk-win32-x64/-/sdk-win32-x64-1.4.1.tgz", + "integrity": "sha512-8x8hIPyVu6ChyzGPryOSFVJVbLe7nTvXBUKKia9/SEtzSonQLYPoj5pjpkWOpLxhyHkWnwxQfkSC0mO9+9pW1w==", + "cpu": [ + "x64" + ], + "license": "SEE LICENSE IN LICENSE.md", + "optional": true, + "os": [ + "win32" + ], + "bin": { + "rg": "bin/rg.exe" } }, "packages/e2e": { @@ -8875,23 +8828,6 @@ } } }, - "packages/site": { - "name": "@calli/site", - "version": "0.1.0", - "extraneous": true, - "dependencies": { - "react": "^18.3.1", - "react-dom": "^18.3.1" - }, - "devDependencies": { - "@types/react": "^18.3.12", - "@types/react-dom": "^18.3.1", - "@vitejs/plugin-react": "^4.3.4", - "tsx": "^4.19.0", - "typescript": "^5.6.0", - "vite": "^5.4.11" - } - }, "packages/web": { "name": "@loopx/loochat-web", "version": "0.1.0", diff --git a/apps/workbench/packages/daemon/package.json b/apps/workbench/packages/daemon/package.json index 021fd7d9a1..766930b1b2 100644 --- a/apps/workbench/packages/daemon/package.json +++ b/apps/workbench/packages/daemon/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@agentclientprotocol/claude-agent-acp": "0.89.0", - "@botiverse/oar": "0.128.1", + "@botiverse/oar": "0.142.0", "@cursor/sdk": "1.4.1", "node-pty": "^1.1.0", "playwright-core": "1.58.0", diff --git a/apps/workbench/packages/daemon/src/adapters/oar.ts b/apps/workbench/packages/daemon/src/adapters/oar.ts index d9054a35d1..f5d4222dfb 100644 --- a/apps/workbench/packages/daemon/src/adapters/oar.ts +++ b/apps/workbench/packages/daemon/src/adapters/oar.ts @@ -1,8 +1,27 @@ import type { AvailableInstallation, Event, Runtime, Session, SessionOptions } from '@botiverse/oar/browser'; +import { installedSessionCapabilities } from '@botiverse/oar/capabilities'; import type { AgentAdapter, AgentSession, LoginSession, LoginState, ModelOption, StartOptions, TurnHooks, TurnInput, TurnResult } from './types.js'; import { EFFORT_LEVELS, sessionEnvironment } from './types.js'; import { agentLoginRequired } from './diagnostics.js'; +const MINIMUM_OAR_NODE_VERSION = [24, 21, 0] as const; + +function isSupportedOarNodeVersion(version: string): boolean { + const parts = version.replace(/^v/u, '').split('.').map(part => Number.parseInt(part, 10)); + if (parts.length < 3 || parts.some(part => !Number.isFinite(part))) return false; + for (let i = 0; i < MINIMUM_OAR_NODE_VERSION.length; i += 1) { + if (parts[i]! > MINIMUM_OAR_NODE_VERSION[i]!) return true; + if (parts[i]! < MINIMUM_OAR_NODE_VERSION[i]!) return false; + } + return true; +} + +function enforceIsolatedPlacement(runtime: Runtime): Runtime { + return runtime.execution === 'process' && typeof runtime.withPlacement === 'function' + ? runtime.withPlacement('isolated') + : runtime; +} + /** These are additional providers; existing adapters keep their native contracts. */ export const OAR_AGENTS = [ { adapter: 'cursor', label: 'Cursor', binary: null, installGuide: 'Node.js 24+; Cursor SDK is included. Sign in from the agent row.' }, @@ -64,8 +83,12 @@ export class OarAdapter implements AgentAdapter { } private engine(): Promise { - if (Number(process.versions.node.split('.')[0]) < 24) throw new Error('OAR requires Node.js 24 or newer.'); - return this.runtime ??= this.runtimeLoader(this.id).catch(error => { this.runtime = undefined; throw error; }); + if (!isSupportedOarNodeVersion(process.versions.node)) { + throw new Error('OAR requires Node.js 24.21.0 or newer.'); + } + return this.runtime ??= this.runtimeLoader(this.id) + .then(enforceIsolatedPlacement) + .catch(error => { this.runtime = undefined; throw error; }); } private environment(context?: Record): NonNullable { @@ -86,7 +109,7 @@ export class OarAdapter implements AgentAdapter { return null; } this.unavailableReason = undefined; - this.capabilities.images = runtime.sessionCapabilities?.(result).images === true; + this.capabilities.images = installedSessionCapabilities(runtime, result).images === true; return result; } catch (error) { this.unavailableReason = error instanceof Error ? error.message : 'OAR runtime unavailable'; diff --git a/loopx/chat/endpoint_catalog.py b/loopx/chat/endpoint_catalog.py index 18fafdf582..7ecfaed94e 100644 --- a/loopx/chat/endpoint_catalog.py +++ b/loopx/chat/endpoint_catalog.py @@ -29,6 +29,52 @@ KIRO_CLI_CHAT_DISPLAY_NAME, ) +OAR_CHAT_ADAPTER_KIND = "oar_runtime" + +# Additional built-in OAR CLI runtimes not already surfaced by the dedicated +# built-in rows (codex, antigravity desktop LS, claude-code, dsh). +OAR_CHAT_RUNTIME_SPECS: tuple[dict[str, str], ...] = ( + {"agent_id": "opencode", "runtime_id": "opencode", "display_name": "OpenCode", "executable": "opencode"}, + {"agent_id": "pi", "runtime_id": "pi", "display_name": "Pi", "executable": "pi"}, + {"agent_id": "kimi", "runtime_id": "kimi", "display_name": "Kimi Code", "executable": "kimi"}, + {"agent_id": "qwen", "runtime_id": "qwen", "display_name": "Qwen Code", "executable": "qwen"}, + {"agent_id": "devin", "runtime_id": "devin", "display_name": "Devin", "executable": "devin"}, + {"agent_id": "factory", "runtime_id": "factory", "display_name": "Factory Droid", "executable": "droid"}, + {"agent_id": "grok", "runtime_id": "grok", "display_name": "Grok Build", "executable": "grok"}, + {"agent_id": "codebuddy", "runtime_id": "codebuddy", "display_name": "CodeBuddy Code", "executable": "codebuddy"}, + {"agent_id": "qoder", "runtime_id": "qoder", "display_name": "Qoder", "executable": "qodercli"}, + {"agent_id": "agy-cli", "runtime_id": "antigravity", "display_name": "Antigravity CLI", "executable": "agy"}, +) + +OAR_CHAT_RUNTIME_BY_AGENT_ID: dict[str, dict[str, str]] = { + spec["agent_id"]: spec for spec in OAR_CHAT_RUNTIME_SPECS +} + + +def oar_chat_endpoints(*, include_unavailable: bool = False) -> list[dict[str, Any]]: + """Live PATH-probed capability rows for additional built-in OAR CLI runtimes.""" + rows: list[dict[str, Any]] = [] + for spec in OAR_CHAT_RUNTIME_SPECS: + readiness = _executable_readiness(spec["executable"]) + if not include_unavailable and readiness.get("available") is not True: + continue + rows.append( + { + "agent_id": spec["agent_id"], + "display_name": spec["display_name"], + "adapter_kind": OAR_CHAT_ADAPTER_KIND, + "oar_runtime_id": spec["runtime_id"], + **readiness, + "streaming": True, + "resume": True, + "interrupt": True, + "tool_calls": True, + "trust_scope": "read_only", + "source": "builtin_oar", + } + ) + return rows + def managed_host_capability(runtime_root: Path | None = None) -> dict[str, Any]: """Project the managed host as a chat endpoint with its own verdict. @@ -107,6 +153,7 @@ def builtin_chat_endpoints( claude_bin: str, kiro_cli_bin: str, runtime_root: Path | None = None, + include_unavailable_oar: bool = False, ) -> list[dict[str, Any]]: """Return the built-in endpoints, managed host included. @@ -199,4 +246,5 @@ def builtin_chat_endpoints( "source": "builtin", }, managed_host_capability(runtime_root), + *oar_chat_endpoints(include_unavailable=include_unavailable_oar), ] diff --git a/loopx/chat/oar_chat_adapter.py b/loopx/chat/oar_chat_adapter.py new file mode 100644 index 0000000000..9c216a9a48 --- /dev/null +++ b/loopx/chat/oar_chat_adapter.py @@ -0,0 +1,315 @@ +"""Unified read-only Chat adapter over LoopX's persistent ``OarSessionHost``. + +Exposes any OAR built-in runtime (``opencode``, ``pi``, ``kimi``, ``qwen``, +``devin``, ``factory``, ``grok``, ``codebuddy``, ``qoder``, ``antigravity``, +``cursor``, ``bottega``, ``pi-durable``, plus test-only ``scripted``) as a +first-class LoopX Chat adapter with streaming deltas, real handshake model +confirmation, fail-closed rejection on non-completed turn outcomes, native +abort, and session cleanup. +""" +from __future__ import annotations + +from dataclasses import dataclass, field +from pathlib import Path +import shutil +import threading +from typing import Any, Callable +import uuid + +from ..chat import VisibleResponseStreamFilter, _turn_prompt, parse_agent_response +from ..chat_agent import CodexChatAgentError, _host_tool_gate +from ..hosts.oar_client import OarHostError, OarSessionClient, default_oar_client + +EventSink = Callable[[str, dict[str, Any]], None] + + +def _oar_chat_error( + label: str, + summary: str, + *, + error_code: str = "provider_error", + action: str | None = None, +) -> CodexChatAgentError: + return CodexChatAgentError( + summary, + error_code=error_code, + gate=_host_tool_gate( + summary, + action or f"Check the local {label} installation and authentication, then retry.", + ), + ) + + +@dataclass +class OarChatAdapter: + """First-class LoopX Chat adapter backed directly by ``OarSessionClient``.""" + + runtime_id: str + display_name: str + work_dir: Path + session_id: str + executable: str | None = None + context_summary: str = "" + requested_model: str | None = None + requested_reasoning_effort: str | None = None + resolved_model: str | None = None + resolved_reasoning_effort: str | None = None + service_tier: str | None = None + resumed: bool = False + oar_client: OarSessionClient | None = None + oar_scripted_turns: list[dict[str, Any]] | None = None + _oar_session_key: str | None = field(default=None, init=False, repr=False) + _unhealthy: bool = field(default=False, init=False, repr=False) + lock: threading.RLock = field(default_factory=threading.RLock, repr=False) + + @property + def upstream_thread_id(self) -> str: + return self.session_id + + @property + def current_model_id(self) -> str | None: + return self.resolved_model + + @property + def model_settings(self) -> dict[str, str | None]: + return { + "agent_reasoning_effort": self.resolved_reasoning_effort, + "agent_service_tier": self.service_tier, + } + + @classmethod + def start( + cls, + *, + runtime_id: str, + display_name: str, + work_dir: Path, + executable: str | None = None, + resume_thread_id: str | None = None, + context_summary: str = "", + model: str | None = None, + reasoning_effort: str | None = None, + oar_client: OarSessionClient | None = None, + oar_scripted_turns: list[dict[str, Any]] | None = None, + ) -> "OarChatAdapter": + resolved_bin: str | None = None + if executable: + candidate = ( + executable + if Path(executable).is_absolute() and Path(executable).exists() + else shutil.which(executable) + ) + if not candidate and oar_client is None: + raise _oar_chat_error( + display_name, + f"{display_name} CLI executable '{executable}' was not found.", + error_code="executable_not_found", + ) + resolved_bin = str(candidate) if candidate else executable + adapter = cls( + runtime_id=runtime_id, + display_name=display_name, + work_dir=work_dir.resolve(), + session_id=resume_thread_id or str(uuid.uuid4()), + executable=resolved_bin, + context_summary=context_summary, + requested_model=model, + requested_reasoning_effort=reasoning_effort, + resumed=bool(resume_thread_id), + oar_client=oar_client, + oar_scripted_turns=oar_scripted_turns, + ) + # Open session eagerly so handshake metadata (real model/effort/native_id) + # and availability errors surface cleanly at session start. + adapter._ensure_oar_session() + return adapter + + def capabilities(self) -> dict[str, Any]: + return { + "adapter_kind": "oar_runtime", + "oar_runtime_id": self.runtime_id, + "streaming": True, + "resume": True, + "interrupt": True, + "tool_calls": True, + } + + def _ensure_oar_session(self) -> tuple[OarSessionClient, str]: + client = self.oar_client or default_oar_client() + with self.lock: + if self._oar_session_key is not None: + return client, self._oar_session_key + open_params: dict[str, object] = { + "runtimeId": self.runtime_id, + "cwd": str(self.work_dir), + "permissionMode": "read_only", + } + if self.executable and self.runtime_id != "scripted": + open_params["executablePath"] = self.executable + if self.requested_model: + open_params["model"] = self.requested_model + if self.requested_reasoning_effort: + open_params["effort"] = self.requested_reasoning_effort + if self.resumed and self.session_id: + open_params["resume"] = self.session_id + if self.oar_scripted_turns is not None: + open_params["scriptedTurns"] = self.oar_scripted_turns + try: + opened = client.open_session(open_params) + except OarHostError as exc: + self._unhealthy = True + raise _oar_chat_error( + self.display_name, + f"{self.display_name} OAR session could not start: {exc}", + error_code=exc.failure_kind or exc.code, + ) from exc + self._oar_session_key = str(opened["session_key"]) + self._unhealthy = False + native_id = str(opened.get("native_session_id") or "") + if native_id: + self.session_id = native_id + # Record ONLY confirmed values observed from the runtime handshake. + observed_model = opened.get("model") + if isinstance(observed_model, str) and observed_model.strip(): + self.resolved_model = observed_model.strip() + observed_effort = opened.get("effort") + if isinstance(observed_effort, str) and observed_effort.strip(): + self.resolved_reasoning_effort = observed_effort.strip() + observed_tier = opened.get("service_tier") + if isinstance(observed_tier, str) and observed_tier.strip(): + self.service_tier = observed_tier.strip() + return client, self._oar_session_key + + def start_turn(self, message: str, event_sink: EventSink) -> dict[str, Any]: + client, session_key = self._ensure_oar_session() + event_sink("turn.started", {"upstream_turn_id": self.session_id}) + event_sink("agent.phase", {"label": f"正在连接 {self.display_name}"}) + parts: list[str] = [] + display_filter = VisibleResponseStreamFilter(protected_paths=[self.work_dir]) + visible_delta_count = 0 + + def on_stream_event(event: dict[str, object]) -> None: + nonlocal visible_delta_count + kind = str(event.get("kind") or "") + if kind == "tool_call_started": + event_sink("agent.phase", {"label": f"{self.display_name} 正在调用工具"}) + elif kind == "reasoning": + event_sink("agent.phase", {"label": f"{self.display_name} 正在思考"}) + elif kind == "text_delta": + chunk = str(event.get("text") or "") + parts.append(chunk) + visible = display_filter.feed(chunk) + if visible: + visible_delta_count += 1 + event_sink("answer.delta", {"text": visible}) + + try: + prompt_result = client.prompt_stream( + { + "sessionKey": session_key, + "input": _turn_prompt(message, context_summary=self.context_summary), + }, + on_event=on_stream_event, + timeout=600.0, + ) + except OarHostError as exc: + self._unhealthy = True + raise _oar_chat_error( + self.display_name, + f"{self.display_name} turn failed: {exc}", + error_code=exc.failure_kind or exc.code, + ) from exc + + native_id = str(prompt_result.get("native_session_id") or "") + if native_id: + self.session_id = native_id + + run_kind = str(prompt_result.get("kind") or "") + raw_outcome = prompt_result.get("outcome") + outcome: dict[str, Any] = raw_outcome if isinstance(raw_outcome, dict) else {} + outcome_kind = str(outcome.get("kind") or "") + if run_kind == "rejected": + code = str(prompt_result.get("code") or "") + if code in {"exited", "disposed"}: + self._unhealthy = True + reason = str(prompt_result.get("reason") or code or "prompt rejected") + raise _oar_chat_error( + self.display_name, + f"{self.display_name} rejected prompt: {reason}", + error_code="protocol_error", + ) + if run_kind == "interrupted" or outcome_kind in {"aborted", "interrupted"}: + raise _oar_chat_error( + self.display_name, + f"{self.display_name} turn was interrupted.", + error_code="interrupted", + action="Send a new message to continue in this session.", + ) + if outcome_kind == "failed": + raw_failure = prompt_result.get("loopx_failure") + failure_kind = ( + str(raw_failure.get("failure_kind") or "runtime_error") + if isinstance(raw_failure, dict) + else "runtime_error" + ) + if outcome.get("failure") == "runtime_exited": + self._unhealthy = True + raise _oar_chat_error( + self.display_name, + str(outcome.get("reason") or f"{self.display_name} reported a terminal turn failure."), + error_code=failure_kind, + ) + + result_text = str(prompt_result.get("text") or "") + streamed_response = "".join(parts) + raw_response = streamed_response if streamed_response.strip() else result_text + if not raw_response.strip(): + raise _oar_chat_error( + self.display_name, + f"{self.display_name} completed without returning an answer.", + error_code="provider_empty_response", + ) + if not parts and result_text: + visible = display_filter.feed(result_text) + if visible: + visible_delta_count += 1 + event_sink("answer.delta", {"text": visible}) + visible_tail = display_filter.finish() + if visible_tail: + visible_delta_count += 1 + event_sink("answer.delta", {"text": visible_tail}) + response = parse_agent_response( + raw_response, + protected_paths=[self.work_dir], + team_plan_context=getattr(self, "team_plan_context", None), + ) + self.resumed = True + event_sink("agent.phase", {"label": "正在整理回答"}) + if visible_delta_count == 0: + event_sink("answer.delta", {"text": str(response.get("message") or "")}) + event_sink("answer.final", {"response": response}) + return response + + def interrupt_turn(self, turn_id: str | None = None) -> None: + del turn_id + with self.lock: + session_key = self._oar_session_key + if session_key is not None: + try: + (self.oar_client or default_oar_client()).abort(session_key) + except Exception: + pass + + def close_session(self) -> None: + with self.lock: + session_key = self._oar_session_key + self._oar_session_key = None + if session_key is not None: + try: + (self.oar_client or default_oar_client()).close_session(session_key) + except Exception: + pass + + def healthcheck(self) -> bool: + with self.lock: + return not self._unhealthy and self._oar_session_key is not None diff --git a/loopx/chat/session_open.py b/loopx/chat/session_open.py index 116d142776..0ab675316f 100644 --- a/loopx/chat/session_open.py +++ b/loopx/chat/session_open.py @@ -479,6 +479,21 @@ def _start_adapter( return self._start_acp_adapter( command=kiro_cli_chat_command(self.kiro_cli_bin), work_dir=work_dir, resume_thread_id=resume_thread_id, execution_mode=execution_mode, agent_config=agent_config) + from .endpoint_catalog import OAR_CHAT_RUNTIME_BY_AGENT_ID + oar_spec = OAR_CHAT_RUNTIME_BY_AGENT_ID.get(agent_id) + if oar_spec is not None: + from .oar_chat_adapter import OarChatAdapter + + return OarChatAdapter.start( + runtime_id=oar_spec["runtime_id"], + display_name=oar_spec["display_name"], + work_dir=work_dir, + executable=oar_spec["executable"], + resume_thread_id=resume_thread_id, + context_summary=f"{goal_id}: {objective}".strip() if goal_id is not None else objective.strip(), + model=agent_config.get("model") if agent_config else None, + reasoning_effort=agent_config.get("reasoning_effort") if agent_config else None, + ) endpoint = self.endpoint_registry.get(agent_id) if endpoint is not None: return self._start_acp_adapter( @@ -514,7 +529,7 @@ def open_session( and capability.get("available") and agent_model_id and agent_id not in {"codex", "antigravity", "claude-code"} - and capability.get("adapter_kind") != "acp" + and capability.get("adapter_kind") not in {"acp", "oar_runtime"} ): raise CodexChatAgentError("This Agent does not offer model selection.", error_code="unsupported_configuration", gate=None) @@ -524,7 +539,7 @@ def open_session( capability and capability.get("available") and agent_id not in {"codex", "antigravity"} - and capability.get("adapter_kind") != "acp" + and capability.get("adapter_kind") not in {"acp", "oar_runtime"} ): raise CodexChatAgentError("This Agent does not offer reasoning choices.", error_code="unsupported_configuration", gate=None) diff --git a/loopx/cli_commands/turn_registration.py b/loopx/cli_commands/turn_registration.py index dd14309b95..4ca6bd5509 100644 --- a/loopx/cli_commands/turn_registration.py +++ b/loopx/cli_commands/turn_registration.py @@ -15,12 +15,14 @@ resolve_default_turn_host, ) from ..control_plane.turn_driver.execution_profile import REASONING_EFFORTS +from ..control_plane.turn_driver.oar_turn_host import OAR_TURN_RUNTIME_CHOICES from .turn_dsh_options import register_dsh_turn_options # Explicit host choices stay per-command: planning may name any host the Turn -# driver routes, while run-once only ships built-in adapters for these three. -PLANNED_TURN_HOST_CHOICES = ["codex-cli", "claude-code", "dsh", "generic-cli"] -RUN_ONCE_TURN_HOST_CHOICES = ["codex-cli", "dsh", "generic-cli"] +# driver routes, while run-once ships built-in adapters for codex-cli, dsh, +# unified OAR runtimes, and generic-cli. +PLANNED_TURN_HOST_CHOICES = ["codex-cli", "claude-code", "dsh", "oar", "generic-cli"] +RUN_ONCE_TURN_HOST_CHOICES = ["codex-cli", "dsh", "oar", "generic-cli"] AddFormat = Callable[[argparse.ArgumentParser], None] @@ -28,7 +30,7 @@ def turn_cli_execution_mode(host: str, requested: str | None) -> str: """Resolve the mode from the selected public host before planning.""" if requested is None: - return "isolated-headless" if host in (MANAGED_TURN_HOST, "generic-cli") else "interactive-visible" + return "isolated-headless" if host in (MANAGED_TURN_HOST, "oar", "generic-cli") else "interactive-visible" if (requested == "isolated-headless" and host in PLANNED_TURN_HOST_CHOICES and host not in RUN_ONCE_TURN_HOST_CHOICES): raise ValueError( @@ -239,6 +241,16 @@ def register_turn_commands( default="codex", help="Codex CLI executable used by the built-in codex-cli host.", ) + run_once.add_argument( + "--oar-executable", + help="Optional explicit CLI executable path passed to the selected OAR runtime.", + ) + run_once.add_argument( + "--oar-sandbox", + choices=["read-only", "workspace-write"], + default="workspace-write", + help="Permission posture enforced by LoopX session policy for --host oar (default: workspace-write).", + ) run_once.add_argument("--codex-model") run_once.add_argument( "--codex-operation-tools", @@ -364,9 +376,23 @@ def _add_turn_decision_arguments( parser.add_argument("--agent-id", required=True) parser.add_argument( "--host", - choices=host_choices or ["codex-cli", "claude-code", "generic-cli"], + choices=host_choices or ["codex-cli", "claude-code", "oar", "generic-cli"], default=default_host, ) + parser.add_argument( + "--oar-runtime", + choices=list(OAR_TURN_RUNTIME_CHOICES), + help="OAR built-in runtime ID to execute when --host oar is selected.", + ) + parser.add_argument( + "--oar-model", + help="Optional explicit model identifier passed to the selected OAR runtime.", + ) + parser.add_argument( + "--oar-reasoning-effort", + choices=list(REASONING_EFFORTS), + help="Optional reasoning effort passed to the selected OAR runtime.", + ) parser.add_argument( "--execution-mode", choices=execution_mode_choices or ["interactive-visible", "isolated-headless"], diff --git a/loopx/cli_commands/turn_run_once.py b/loopx/cli_commands/turn_run_once.py index ab635a1542..a4aa406a80 100644 --- a/loopx/cli_commands/turn_run_once.py +++ b/loopx/cli_commands/turn_run_once.py @@ -977,6 +977,18 @@ def resolve_dsh_session(envelope: Mapping[str, Any]) -> dict[str, str] | None: ) session_binding_resolver = resolve_dsh_session + elif args.host == "oar": + from ..control_plane.turn_driver.oar_turn_host import build_oar_turn_host_runner + + host_runner = build_oar_turn_host_runner( + args, + runtime_root=runtime_root, + registry_path=registry_path, + project=project, + goal_ref=goal_ref, + goal_admission=goal_admission, + current_launch_decision=current_launch_decision, + ) request_locator = payload.get("delegation_operation_locator") settlement_admission = None diff --git a/loopx/control_plane/oar/runtime_loader.ts b/loopx/control_plane/oar/runtime_loader.ts index 96733b137c..acadfd37e1 100644 --- a/loopx/control_plane/oar/runtime_loader.ts +++ b/loopx/control_plane/oar/runtime_loader.ts @@ -16,12 +16,16 @@ import { type Runtime, type SessionCapabilityDeclaration, } from "@botiverse/oar/capabilities"; +import type { PiDurableRuntimeOptions } from "@botiverse/oar/pi-durable"; + +import { EffectRuntimeRequestError } from "../effect_runtime_errors.ts"; export type OarBuiltinRuntimeId = | "codex" | "claude" | "dsh" | "pi" + | "pi-durable" | "opencode" | "antigravity" | "kimi" @@ -31,13 +35,15 @@ export type OarBuiltinRuntimeId = | "grok" | "codebuddy" | "qoder" - | "bottega"; + | "bottega" + | "cursor"; export const OAR_BUILTIN_RUNTIME_IDS: readonly OarBuiltinRuntimeId[] = [ "codex", "claude", "dsh", "pi", + "pi-durable", "opencode", "antigravity", "kimi", @@ -48,8 +54,11 @@ export const OAR_BUILTIN_RUNTIME_IDS: readonly OarBuiltinRuntimeId[] = [ "codebuddy", "qoder", "bottega", + "cursor", ]; +export const OAR_CURSOR_SDK_MODULE_ENV = "LOOPX_OAR_CURSOR_SDK_MODULE"; + const ALIAS_MAP: Readonly> = { codex: "codex", "codex-cli": "codex", @@ -63,6 +72,8 @@ const ALIAS_MAP: Readonly> = { deepseek_harness_segment: "dsh", pi: "pi", "pi-cli": "pi", + "pi-durable": "pi-durable", + pi_durable: "pi-durable", opencode: "opencode", opencode2: "opencode", antigravity: "antigravity", @@ -78,7 +89,28 @@ const ALIAS_MAP: Readonly> = { grok: "grok", codebuddy: "codebuddy", qoder: "qoder", + qodercli: "qoder", bottega: "bottega", + cursor: "cursor", + "cursor-cli": "cursor", + cursor_cli: "cursor", +}; + +/** Default CLI binary name for process-backed OAR runtimes (null for SDK/hosted runtimes). */ +export const OAR_RUNTIME_DEFAULT_BINARY: Readonly>> = { + codex: "codex", + claude: "claude", + dsh: "dsh", + pi: "pi", + opencode: "opencode", + antigravity: "agy", + kimi: "kimi", + qwen: "qwen", + devin: "devin", + factory: "droid", + grok: "grok", + codebuddy: "codebuddy", + qoder: "qodercli", }; /** Environment variable each OAR runtime uses to locate an explicit executable override. */ @@ -99,6 +131,8 @@ export const OAR_RUNTIME_BIN_ENV: Readonly>(); +let registeredPiDurableOptions: PiDurableRuntimeOptions | null = null; +let registeredPiDurableFactory: ((options: PiDurableRuntimeOptions) => Runtime) | null = null; const installationQueues = new Map>(); async function serializeRuntimeInstallation( @@ -149,6 +183,7 @@ export interface OarRuntimeCatalogEntry { readonly display_name: string; readonly aliases: readonly string[]; readonly bin_env_var: string | null; + readonly default_binary: string | null; } export function listOarRuntimeCatalog(): readonly OarRuntimeCatalogEntry[] { @@ -163,6 +198,7 @@ export function listOarRuntimeCatalog(): readonly OarRuntimeCatalogEntry[] { display_name: typeof brand?.name === "string" && brand.name ? brand.name : id, aliases, bin_env_var: OAR_RUNTIME_BIN_ENV[id] ?? null, + default_binary: OAR_RUNTIME_DEFAULT_BINARY[id] ?? null, }; }); } @@ -171,6 +207,57 @@ function enforceIsolatedPlacement(runtime: Runtime): Runtime { return runtime.execution === "process" ? runtime.withPlacement("isolated") : runtime; } +function unavailableRuntimeStub(id: OarBuiltinRuntimeId, reason: string): Runtime { + const stub = { + id, + execution: "process" as const, + placement: { kind: "isolated" as const }, + withPlacement() { + return stub; + }, + installation: async () => ({ kind: "unsupported" as const, reason }), + session: async () => { + throw new EffectRuntimeRequestError( + `OAR runtime '${id}' is not available: ${reason}`, + "oar_runtime_unavailable", + ); + }, + }; + return stub as unknown as Runtime; +} + +function resolveCursorSdkModule(): string | null { + const configured = process.env[OAR_CURSOR_SDK_MODULE_ENV]?.trim(); + if (configured) return configured; + try { + return import.meta.resolve("@cursor/sdk"); + } catch { + return null; + } +} + +/** + * Register a host-owned `@earendil-works/pi-durable` Harness for the + * `pi-durable` OAR runtime. Calling this invalidates any cached `pi-durable` + * probe stub so subsequent loads bind the live Harness. + */ +export function registerPiDurableRuntime( + options: PiDurableRuntimeOptions, + extra: { readonly factory?: (opts: PiDurableRuntimeOptions) => Runtime } = {}, +): Promise { + registeredPiDurableOptions = options; + registeredPiDurableFactory = extra.factory ?? null; + runtimeCache.delete("pi-durable"); + return loadOarRuntime("pi-durable"); +} + +/** Clear any registered `pi-durable` runtime binding (for tests and teardown). */ +export function clearPiDurableRuntime(): void { + registeredPiDurableOptions = null; + registeredPiDurableFactory = null; + runtimeCache.delete("pi-durable"); +} + async function importBuiltinRuntime(id: OarBuiltinRuntimeId): Promise { switch (id) { case "codex": { @@ -189,6 +276,25 @@ async function importBuiltinRuntime(id: OarBuiltinRuntimeId): Promise { const mod = await import("@botiverse/oar/runtimes/pi"); return enforceIsolatedPlacement(mod.createPiRuntime({ execution: "subprocess" })); } + case "pi-durable": { + if (!registeredPiDurableOptions) { + return unavailableRuntimeStub( + "pi-durable", + "pi-durable requires a host-owned Harness registered via registerPiDurableRuntime()", + ); + } + if (registeredPiDurableFactory) { + return enforceIsolatedPlacement(registeredPiDurableFactory(registeredPiDurableOptions)); + } + try { + const mod = await import("@botiverse/oar/pi-durable"); + return enforceIsolatedPlacement(mod.createPiDurableRuntime(registeredPiDurableOptions)); + } catch (error) { + const reason = + error instanceof Error ? error.message : "pi-durable optional peers are not installed"; + return unavailableRuntimeStub("pi-durable", reason); + } + } case "opencode": { const mod = await import("@botiverse/oar/runtimes/opencode"); return enforceIsolatedPlacement(mod.opencodeRuntime); @@ -229,6 +335,19 @@ async function importBuiltinRuntime(id: OarBuiltinRuntimeId): Promise { const mod = await import("@botiverse/oar/runtimes/bottega"); return enforceIsolatedPlacement(mod.bottegaRuntime); } + case "cursor": { + const sdkModule = resolveCursorSdkModule(); + if (!sdkModule) { + return unavailableRuntimeStub( + "cursor", + `@cursor/sdk is not installed (install @cursor/sdk or set ${OAR_CURSOR_SDK_MODULE_ENV})`, + ); + } + const mod = await import("@botiverse/oar/runtimes/cursor"); + return enforceIsolatedPlacement( + mod.createCursorRuntime({ execution: "subprocess", sdkModule }), + ); + } } } diff --git a/loopx/control_plane/oar/session_host_server.ts b/loopx/control_plane/oar/session_host_server.ts index c8226f1406..738c8a139c 100644 --- a/loopx/control_plane/oar/session_host_server.ts +++ b/loopx/control_plane/oar/session_host_server.ts @@ -395,6 +395,21 @@ server.on("close", () => { })().finally(() => process.exit(0)); }); +const handleShutdownSignal = (): void => { + if (shutdownRequested) return; + shutdownRequested = true; + clearTimeout(idleTimer); + idleTimer = undefined; + if (server.listening) { + server.close(); + } + for (const sock of sockets) { + sock.destroy(); + } +}; +process.once("SIGTERM", handleShutdownSignal); +process.once("SIGINT", handleShutdownSignal); + server.once("error", (error: Error) => { const { code } = effectRuntimeErrorPayload(error); failStartup(code, `OAR Session Host failed to bind loopback socket (${code})`); diff --git a/loopx/control_plane/oar/session_hub.ts b/loopx/control_plane/oar/session_hub.ts index 66658ab2d5..4a9b2d6381 100644 --- a/loopx/control_plane/oar/session_hub.ts +++ b/loopx/control_plane/oar/session_hub.ts @@ -981,6 +981,11 @@ export class OarSessionHub { loaded_runtimes: loadedOarRuntimeIds(), rss_bytes: mem.rss, heap_used_bytes: mem.heapUsed, + process_containment: { + platform: process.platform, + windows_job_object_supported: process.platform === "win32", + posix_process_group: process.platform !== "win32", + }, }; } diff --git a/loopx/control_plane/turn_driver/oar_turn_host.py b/loopx/control_plane/turn_driver/oar_turn_host.py new file mode 100644 index 0000000000..dbaca3c040 --- /dev/null +++ b/loopx/control_plane/turn_driver/oar_turn_host.py @@ -0,0 +1,344 @@ +"""Generic OAR-backed Turn host for ``loopx turn run-once --host oar``. + +Routes any of LoopX's 16 OAR built-in runtimes (``pi``, ``opencode``, +``antigravity``, ``kimi``, ``qwen``, ``claude``, ``grok``, ``factory``, +``devin``, ``codebuddy``, ``qoder``, ``bottega``, ``cursor``, ``pi-durable``, +``codex``, ``dsh``, plus test-only ``scripted``) through the shared persistent +``OarSessionHost`` while preserving LoopX's Goal admission, launch fence, +periodic ``require_running()`` abort watcher, structured result parsing, and +typed failure taxonomy. +""" +from __future__ import annotations + +from collections.abc import Callable, Mapping +from contextlib import nullcontext +import hashlib +import json +from pathlib import Path +import threading +from typing import Any + +from ...hosts.oar_client import OarHostError, OarSessionClient, default_oar_client +from ..goals.first_party_host_admission import ( + FirstPartyHostGoalAdmission, + FirstPartyHostRuntimeRejected, +) +from .host_candidate import ( + assert_turn_host_request_version, + build_result as build_host_result, + parse_model_json, + render_prompt, +) +from .host_failure import BuiltInHostError + +OAR_TURN_RUNTIME_CHOICES: tuple[str, ...] = ( + "codex", + "claude", + "dsh", + "pi", + "pi-durable", + "opencode", + "antigravity", + "kimi", + "qwen", + "devin", + "factory", + "grok", + "codebuddy", + "qoder", + "bottega", + "cursor", +) + +_OAR_RUNTIME_ALIASES: dict[str, str] = { + "codex-cli": "codex", + "claude-code": "claude", + "deepseek-harness": "dsh", + "opencode2": "opencode", + "agy": "antigravity", + "droid": "factory", + "qodercli": "qoder", + "pi_durable": "pi-durable", + "cursor-cli": "cursor", +} + +_RUNNING_GOAL_CHECK_SECONDS = 1.0 + + +def normalize_oar_turn_runtime_id(raw: str, *, allow_scripted: bool = False) -> str: + token = str(raw or "").strip().lower() + if not token: + raise ValueError("--oar-runtime is required when --host oar is selected") + if token == "scripted" and allow_scripted: + return "scripted" + resolved = _OAR_RUNTIME_ALIASES.get(token, token) + if resolved not in OAR_TURN_RUNTIME_CHOICES: + raise ValueError( + f"Unsupported OAR runtime '{raw}'. Supported runtimes: {', '.join(OAR_TURN_RUNTIME_CHOICES)}" + ) + return resolved + + +def _session_store_path(runtime_root: Path, *, goal_id: str, agent_id: str, todo_id: str, runtime_id: str) -> Path: + key = hashlib.sha256(f"{goal_id}\0{agent_id}\0{todo_id}\0{runtime_id}".encode("utf-8")).hexdigest()[:32] + return runtime_root / "oar_turn_sessions" / f"{key}.json" + + +def _load_saved_session_id(path: Path) -> str | None: + try: + payload = json.loads(path.read_text(encoding="utf-8")) + except (OSError, json.JSONDecodeError): + return None + raw = payload.get("native_session_id") if isinstance(payload, dict) else None + return raw.strip() if isinstance(raw, str) and raw.strip() else None + + +def _save_session_id(path: Path, *, native_session_id: str, runtime_id: str) -> None: + path.parent.mkdir(parents=True, exist_ok=True) + tmp = path.with_suffix(".tmp") + tmp.write_text( + json.dumps({"runtime_id": runtime_id, "native_session_id": native_session_id}) + "\n", + encoding="utf-8", + ) + tmp.replace(path) + + +def run_oar_turn_host( + request: Mapping[str, Any], + *, + runtime_id: str, + runtime_root: Path, + project: Path, + model: str | None = None, + reasoning_effort: str | None = None, + executable_path: str | None = None, + permission_mode: str = "workspace_write", + goal_admission: FirstPartyHostGoalAdmission | None = None, + oar_client: OarSessionClient | None = None, + oar_scripted_turns: list[dict[str, Any]] | None = None, + timeout_seconds: float = 1800.0, +) -> dict[str, Any]: + """Execute one governed LoopX Turn on any OAR runtime via ``OarSessionHost``.""" + assert_turn_host_request_version(request) + resolved_runtime = normalize_oar_turn_runtime_id( + runtime_id, + allow_scripted=(oar_client is not None), + ) + if permission_mode not in {"read_only", "workspace_write"}: + raise ValueError(f"Unsupported OAR turn permission_mode: {permission_mode}") + + client = oar_client or default_oar_client() + turn_envelope = request.get("turn_envelope") + envelope_map = turn_envelope if isinstance(turn_envelope, Mapping) else {} + goal_id = str(envelope_map.get("goal_id") or "") + agent_id = str(envelope_map.get("agent_id") or "") + action = envelope_map.get("action") + selected_todo = action.get("selected_todo") if isinstance(action, Mapping) else None + todo_id = str(selected_todo.get("todo_id") or "") if isinstance(selected_todo, Mapping) else "" + session_action = str((request.get("session") or {}).get("action") or "start") + store_path = _session_store_path( + runtime_root, + goal_id=goal_id, + agent_id=agent_id, + todo_id=todo_id, + runtime_id=resolved_runtime, + ) + resume_id = _load_saved_session_id(store_path) if session_action == "resume" else None + + if goal_admission is not None: + goal_admission.require_running(operation=f"oar_{resolved_runtime}_turn_open") + + open_params: dict[str, object] = { + "runtimeId": resolved_runtime, + "cwd": str(project.resolve()), + "permissionMode": permission_mode, + } + if executable_path: + open_params["executablePath"] = executable_path + if model: + open_params["model"] = model + if reasoning_effort: + open_params["effort"] = reasoning_effort + if resume_id: + open_params["resume"] = resume_id + if oar_scripted_turns is not None: + open_params["scriptedTurns"] = oar_scripted_turns + + launch_ctx = ( + (lambda: goal_admission.launch_lifetime(operation=f"oar_{resolved_runtime}_turn_launch")) + if goal_admission is not None + else nullcontext + ) + + try: + with launch_ctx(): + opened = client.open_session(open_params, timeout=max(30.0, min(timeout_seconds, 120.0))) + except FirstPartyHostRuntimeRejected: + raise + except OarHostError as exc: + raise BuiltInHostError( + f"OAR runtime '{resolved_runtime}' failed to start session: {exc}", + failure_kind=exc.failure_kind or "contract_rejected", + ) from exc + + session_key = str(opened["session_key"]) + native_session_id = str(opened.get("native_session_id") or session_key) + _save_session_id(store_path, native_session_id=native_session_id, runtime_id=resolved_runtime) + + prompt_text = render_prompt(request) + stop_watch = threading.Event() + admission_error: list[BaseException] = [] + + def _watch_admission() -> None: + while not stop_watch.wait(_RUNNING_GOAL_CHECK_SECONDS): + if goal_admission is None: + return + try: + goal_admission.require_running(operation=f"oar_{resolved_runtime}_turn_running") + except BaseException as exc: # noqa: BLE001 + admission_error.append(exc) + try: + client.abort(session_key) + except Exception: + pass + return + + watcher: threading.Thread | None = None + if goal_admission is not None: + watcher = threading.Thread( + target=_watch_admission, + name=f"loopx-oar-turn-{resolved_runtime}-watch", + daemon=True, + ) + watcher.start() + + try: + prompt_result = client.prompt_stream( + { + "sessionKey": session_key, + "input": prompt_text, + "timeoutMs": int(max(1.0, timeout_seconds) * 1000), + }, + timeout=timeout_seconds + 15.0, + launch_guard=launch_ctx if goal_admission is not None else None, + ) + except FirstPartyHostRuntimeRejected: + raise + except OarHostError as exc: + if admission_error: + raise admission_error[0] from exc + raise BuiltInHostError( + f"OAR runtime '{resolved_runtime}' turn failed: {exc}", + failure_kind=exc.failure_kind or "runtime_error", + ) from exc + finally: + stop_watch.set() + if watcher is not None: + watcher.join(timeout=2.0) + try: + client.close_session(session_key) + except Exception: + pass + + if admission_error: + raise admission_error[0] + if goal_admission is not None: + goal_admission.require_running(operation=f"oar_{resolved_runtime}_turn_complete") + + run_kind = str(prompt_result.get("kind") or "") + raw_outcome = prompt_result.get("outcome") + outcome: dict[str, Any] = raw_outcome if isinstance(raw_outcome, dict) else {} + outcome_kind = str(outcome.get("kind") or "") + if run_kind == "rejected": + reason = str(prompt_result.get("reason") or prompt_result.get("code") or "prompt rejected") + raise BuiltInHostError( + f"OAR runtime '{resolved_runtime}' rejected turn prompt: {reason}", + failure_kind="contract_rejected", + ) + if run_kind == "interrupted" or outcome_kind in {"aborted", "interrupted"}: + raise BuiltInHostError( + f"OAR runtime '{resolved_runtime}' turn was interrupted", + failure_kind="executor_timeout" + if prompt_result.get("interrupted_by") == "timeout" + else "interrupted", + ) + if outcome_kind == "failed": + raw_failure = prompt_result.get("loopx_failure") + failure_kind = ( + str(raw_failure.get("failure_kind") or "runtime_error") + if isinstance(raw_failure, dict) + else "runtime_error" + ) + raise BuiltInHostError( + str(outcome.get("reason") or f"OAR runtime '{resolved_runtime}' turn failed"), + failure_kind=failure_kind, + ) + + final_native_id = str(prompt_result.get("native_session_id") or native_session_id) + if final_native_id: + _save_session_id(store_path, native_session_id=final_native_id, runtime_id=resolved_runtime) + + raw_text = str(prompt_result.get("text") or "") + parsed = parse_model_json(raw_text) + result = build_host_result( + request, + parsed, + fallback_reason=( + f"OAR runtime '{resolved_runtime}' returned no typed JSON result; rerun or inspect the session." + if parsed is None + else "" + ), + host_name=f"OAR ({resolved_runtime})", + ) + result["session"] = { + "session_id": final_native_id, + "runtime_id": resolved_runtime, + } + return result + + +def build_oar_turn_host_runner( + args: Any, + *, + runtime_root: Path, + registry_path: Path, + project: Path, + goal_ref: Mapping[str, Any] | None = None, + goal_admission: FirstPartyHostGoalAdmission | None = None, + current_launch_decision: Callable[[], Mapping[str, Any]] | None = None, +) -> Callable[[Mapping[str, Any]], dict[str, Any]]: + """Create a ``host_runner`` callable for ``loopx turn run-once --host oar``.""" + raw_runtime = getattr(args, "oar_runtime", None) or "" + runtime_id = normalize_oar_turn_runtime_id(raw_runtime) + sandbox = str(getattr(args, "oar_sandbox", None) or "workspace-write") + permission_mode = "read_only" if sandbox == "read-only" else "workspace_write" + model = getattr(args, "oar_model", None) + reasoning_effort = getattr(args, "oar_reasoning_effort", None) + executable_path = getattr(args, "oar_executable", None) + timeout_seconds = float(getattr(args, "host_timeout_seconds", None) or 1800.0) + admission = goal_admission + if admission is None and getattr(args, "goal_id", None): + admission = FirstPartyHostGoalAdmission.for_plan( + registry_path=registry_path, + goal_id=str(args.goal_id), + planned_goal_ref=goal_ref, + agent_id=getattr(args, "agent_id", None), + ) + if admission is not None and current_launch_decision is not None: + admission = admission.with_launch_decision(current_launch_decision) + + def _run(request: Mapping[str, Any]) -> dict[str, Any]: + return run_oar_turn_host( + request, + runtime_id=runtime_id, + runtime_root=runtime_root, + project=project, + model=model, + reasoning_effort=reasoning_effort, + executable_path=executable_path, + permission_mode=permission_mode, + goal_admission=admission, + timeout_seconds=timeout_seconds, + ) + + return _run diff --git a/loopx/hosts/oar_client.py b/loopx/hosts/oar_client.py index b614b9ea96..4c27be6f11 100644 --- a/loopx/hosts/oar_client.py +++ b/loopx/hosts/oar_client.py @@ -23,6 +23,7 @@ from pathlib import Path import secrets import select +import signal import socket import stat import subprocess @@ -31,6 +32,7 @@ import threading import time import uuid +from typing import Protocol from ..control_plane.runtime.node_probe import ( MINIMUM_NODE_VERSION_TEXT, @@ -253,6 +255,102 @@ def _decode_error(decoded: dict[str, object]) -> OarHostError: return OarHostError(code, message, failure_kind=failure_kind) +class _WindowsJobHandle(Protocol): + name: str + + def assign(self, process: subprocess.Popen[bytes]) -> None: ... + + def finish(self) -> None: ... + + def __exit__(self, *exc: object) -> None: ... + + +class _OarDaemonContainment: + """Cross-platform process-tree containment for the spawned OarSessionHost daemon. + + - On Windows (``nt``): assigns the Node daemon process to a non-inherited, + non-breakaway ``WindowsHostJob`` (``JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE``) + immediately after spawn so no OAR child CLI processes survive daemon crash + or parent exit. + - On POSIX: starts the daemon in its own process group (``start_new_session``) + and falls back to ``os.killpg(pgid, SIGTERM)`` when graceful RPC shutdown + fails or times out. + """ + + def __init__( + self, + *, + platform_name: str | None = None, + windows_job_factory: Callable[[], _WindowsJobHandle] | None = None, + ) -> None: + self._platform_name = os.name if platform_name is None else platform_name + self._windows_job_factory = windows_job_factory + self._lock = threading.Lock() + self._windows_job: _WindowsJobHandle | None = None + self._spawned_pid: int | None = None + + @property + def mode(self) -> str: + return "windows_job_object" if self._platform_name == "nt" else "posix_process_group" + + def popen_kwargs(self) -> dict[str, object]: + if self._platform_name == "nt": + create_no_window = int(getattr(subprocess, "CREATE_NO_WINDOW", 0x08000000)) + create_new_group = int(getattr(subprocess, "CREATE_NEW_PROCESS_GROUP", 0x00000200)) + return {"creationflags": create_no_window | create_new_group} + return {"start_new_session": True} + + def _create_windows_job(self) -> _WindowsJobHandle: + if self._windows_job_factory is not None: + return self._windows_job_factory() + from ..control_plane.turn_driver.windows_host_job import WindowsHostJob + + return WindowsHostJob() # type: ignore[return-value] + + def attach(self, proc: subprocess.Popen[bytes]) -> None: + with self._lock: + self._release_locked(terminate=False) + self._spawned_pid = proc.pid + if self._platform_name == "nt": + job = self._create_windows_job() + try: + job.assign(proc) + except BaseException: + try: + job.__exit__(None, None, None) + except Exception: + pass + raise + self._windows_job = job + + def terminate_and_close(self) -> None: + with self._lock: + self._release_locked(terminate=True) + + def _release_locked(self, *, terminate: bool) -> None: + job = self._windows_job + pid = self._spawned_pid + self._windows_job = None + self._spawned_pid = None + if job is not None: + try: + if terminate: + job.finish() + finally: + try: + job.__exit__(None, None, None) + except Exception: + pass + return + if terminate and pid is not None and self._platform_name != "nt": + try: + pgid = os.getpgid(pid) + if pgid == pid: + os.killpg(pgid, signal.SIGTERM) + except (OSError, ProcessLookupError): + pass + + class OarSessionClient: """Thread-safe persistent Keep-Alive client for ``session_host_server.ts``.""" @@ -263,11 +361,17 @@ def __init__( idle_ms: int | None = None, timeout_seconds: float = DEFAULT_RPC_TIMEOUT_SECONDS, allow_scripted_runtime: bool = False, + _platform_name: str | None = None, + _windows_job_factory: Callable[[], _WindowsJobHandle] | None = None, ) -> None: self._runtime_dir = runtime_dir or _default_runtime_dir() self._idle_ms = idle_ms self._timeout = timeout_seconds self._allow_scripted_runtime = allow_scripted_runtime + self._containment = _OarDaemonContainment( + platform_name=_platform_name, + windows_job_factory=_windows_job_factory, + ) self._endpoint_lock = threading.Lock() self._lock = threading.Lock() self._control_lock = threading.Lock() @@ -361,8 +465,13 @@ def _ensure_daemon(self) -> OarHostEndpoint: stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE, - start_new_session=True, + **self._containment.popen_kwargs(), ) + try: + self._containment.attach(proc) + except BaseException: + proc.kill() + raise deadline = time.monotonic() + STARTUP_WAIT_SECONDS while time.monotonic() < deadline: @@ -370,6 +479,7 @@ def _ensure_daemon(self) -> OarHostEndpoint: stderr_text = "" if proc.stderr is not None: stderr_text = proc.stderr.read().decode("utf-8", errors="replace").strip() + self._containment.terminate_and_close() raise OarHostError( "oar_host_startup_failed", f"OAR Session Host exited during startup (code={proc.returncode}): {stderr_text[:300]}", @@ -388,6 +498,7 @@ def _ensure_daemon(self) -> OarHostEndpoint: time.sleep(0.025) proc.kill() + self._containment.terminate_and_close() raise OarHostError( "oar_host_startup_timeout", "Timed out waiting for OAR Session Host locator", @@ -832,7 +943,18 @@ def close_session(self, session_key: str) -> dict[str, object]: return self.call("oar.close_session", {"session_key": session_key}) def shutdown(self) -> dict[str, object]: - return self.call("oar.shutdown") + try: + return self.call("oar.shutdown") + finally: + # On Windows, ensure the Job Object terminates any lingering child + # processes and closes its handle cleanly after graceful shutdown. + if self._containment.mode == "windows_job_object": + self._containment.terminate_and_close() + + def terminate_contained_processes(self) -> None: + """Force-terminate any daemon process tree owned by this client.""" + self.close_transport() + self._containment.terminate_and_close() _DEFAULT_CLIENT_LOCK = threading.Lock() @@ -868,4 +990,7 @@ def collect_oar_runtime_readiness() -> dict[str, object]: "detected_node_version": probe.version, "oar_package_installed": oar_version is not None, "oar_version": oar_version, + "process_containment": ( + "windows_job_object" if os.name == "nt" else "posix_process_group" + ), } diff --git a/tests/control_plane/test_oar_phase4_runtimes.py b/tests/control_plane/test_oar_phase4_runtimes.py new file mode 100644 index 0000000000..57ca87afab --- /dev/null +++ b/tests/control_plane/test_oar_phase4_runtimes.py @@ -0,0 +1,329 @@ +"""End-to-end tests for OAR Phase 4 PR 1: +- All 16 OAR built-in runtimes exposed via ``loopx turn --host oar --oar-runtime ...`` +- Dynamic OAR Chat endpoint discovery & unified ``OarChatAdapter`` +- Cross-platform Windows Job Object / POSIX process-group containment on ``OarSessionClient`` +""" +from __future__ import annotations + +import argparse +import json +from pathlib import Path +import threading +import time +from typing import Any + +import pytest + +from loopx.chat.endpoint_catalog import ( + OAR_CHAT_ADAPTER_KIND, + OAR_CHAT_RUNTIME_SPECS, + builtin_chat_endpoints, + oar_chat_endpoints, +) +from loopx.chat.oar_chat_adapter import OarChatAdapter +from loopx.chat_agent import CodexChatAgentError +from loopx.cli_commands.turn_registration import ( + PLANNED_TURN_HOST_CHOICES, + RUN_ONCE_TURN_HOST_CHOICES, + register_turn_commands, + turn_cli_execution_mode, +) +from loopx.control_plane.goals.first_party_host_admission import ( + FirstPartyHostRuntimeRejected, +) +from loopx.control_plane.turn_driver.host_failure import BuiltInHostError +from loopx.control_plane.turn_driver.oar_turn_host import ( + OAR_TURN_RUNTIME_CHOICES, + normalize_oar_turn_runtime_id, + run_oar_turn_host, +) +from loopx.hosts.oar_client import ( + OarSessionClient, + _OarDaemonContainment, + collect_oar_runtime_readiness, +) +from tests.test_loopx_turn_codex_cli import _request + + +def _scripted_client(tmp_path: Path) -> OarSessionClient: + return OarSessionClient( + runtime_dir=tmp_path / "oar-host", + idle_ms=30_000, + allow_scripted_runtime=True, + ) + + +def test_turn_cli_registers_oar_host_and_preserves_claude_code_mode_gate() -> None: + assert "oar" in PLANNED_TURN_HOST_CHOICES + assert "oar" in RUN_ONCE_TURN_HOST_CHOICES + assert turn_cli_execution_mode("oar", None) == "isolated-headless" + assert turn_cli_execution_mode("codex-cli", None) == "interactive-visible" + + with pytest.raises(ValueError, match="interactive-visible"): + turn_cli_execution_mode("claude-code", "isolated-headless") + + parser = argparse.ArgumentParser() + sub = parser.add_subparsers(dest="command", required=True) + register_turn_commands(sub, lambda p: p.add_argument("--format", default="json")) + + planned = parser.parse_args( + [ + "turn", + "plan", + "--goal-id", + "g-1", + "--agent-id", + "a-1", + "--host", + "oar", + "--oar-runtime", + "kimi", + "--oar-model", + "kimi-k2.5", + "--oar-reasoning-effort", + "high", + ] + ) + assert planned.host == "oar" + assert planned.oar_runtime == "kimi" + assert planned.oar_model == "kimi-k2.5" + assert planned.oar_reasoning_effort == "high" + + run_once = parser.parse_args( + [ + "turn", + "run-once", + "--goal-id", + "g-1", + "--agent-id", + "a-1", + "--project", + "/tmp/project", + "--host", + "oar", + "--oar-runtime", + "opencode", + "--oar-sandbox", + "read-only", + "--oar-executable", + "/usr/local/bin/opencode", + ] + ) + assert run_once.host == "oar" + assert run_once.oar_runtime == "opencode" + assert run_once.oar_sandbox == "read-only" + assert run_once.oar_executable == "/usr/local/bin/opencode" + + assert len(OAR_TURN_RUNTIME_CHOICES) == 16 + assert normalize_oar_turn_runtime_id("agy") == "antigravity" + assert normalize_oar_turn_runtime_id("cursor-cli") == "cursor" + assert normalize_oar_turn_runtime_id("pi_durable") == "pi-durable" + with pytest.raises(ValueError, match="Unsupported OAR runtime"): + normalize_oar_turn_runtime_id("unknown-runtime-xyz") + + +def test_run_oar_turn_host_executes_resumes_and_enforces_goal_admission(tmp_path: Path) -> None: + project = tmp_path / "project" + project.mkdir() + runtime_root = tmp_path / "runtime" + client = _scripted_client(tmp_path) + + valid_answer = json.dumps( + { + "result_kind": "validated_progress", + "classification": "oar_generic_turn_ok", + "summary": "Completed turn on OAR runtime.", + "next_action": "Continue.", + "recommended_action": "Verify output.", + "vision_unchanged_reason": "Goal unchanged.", + "evidence": ["oar-turn-host-verified"], + } + ) + + try: + # 1) Normal start persists native session id and returns validated result. + req1 = _request() + res1 = run_oar_turn_host( + req1, + runtime_id="scripted", + runtime_root=runtime_root, + project=project, + oar_client=client, + oar_scripted_turns=[{"text": valid_answer}], + ) + assert res1["result_kind"] == "validated_progress" + first_session_id = str(res1["session"]["session_id"]) + assert first_session_id + + # 2) Resume reuses persisted native session id. + req2 = _request() + req2["session"]["action"] = "resume" + res2 = run_oar_turn_host( + req2, + runtime_id="scripted", + runtime_root=runtime_root, + project=project, + oar_client=client, + oar_scripted_turns=[{"text": valid_answer}], + ) + assert res2["result_kind"] == "validated_progress" + assert res2["session"]["session_id"] == first_session_id + + # 3) Goal pause mid-turn triggers live abort and raises FirstPartyHostRuntimeRejected. + class _RevokingAdmission: + def __init__(self) -> None: + self._calls = 0 + + def require_running(self, *, operation: str = "") -> None: + self._calls += 1 + if self._calls >= 2: + raise FirstPartyHostRuntimeRejected("goal paused mid-turn") + + def launch_lifetime(self, *, operation: str = ""): + from contextlib import nullcontext + + return nullcontext() + + with pytest.raises(FirstPartyHostRuntimeRejected): + run_oar_turn_host( + _request(), + runtime_id="scripted", + runtime_root=runtime_root, + project=project, + goal_admission=_RevokingAdmission(), # type: ignore[arg-type] + oar_client=client, + oar_scripted_turns=[{"delayMs": 5_000, "text": valid_answer}], + ) + + # 4) Failed runtime exit maps to BuiltInHostError. + with pytest.raises(BuiltInHostError): + run_oar_turn_host( + _request(), + runtime_id="scripted", + runtime_root=runtime_root, + project=project, + oar_client=client, + oar_scripted_turns=[{"exitCode": 1}], + ) + finally: + assert client.list_sessions()["active_sessions"] == 0 + client.shutdown() + client.close_transport() + + +def test_oar_chat_endpoint_discovery_and_adapter_streaming_and_failure_rejection( + tmp_path: Path, + monkeypatch: pytest.MonkeyPatch, +) -> None: + # Discovery: only installed OAR CLIs appear in default builtin_chat_endpoints, + # while include_unavailable=True exposes all 10 additional built-in OAR CLI specs. + all_oar = oar_chat_endpoints(include_unavailable=True) + assert len(all_oar) == len(OAR_CHAT_RUNTIME_SPECS) + assert all(row["adapter_kind"] == OAR_CHAT_ADAPTER_KIND for row in all_oar) + assert all(row["source"] == "builtin_oar" for row in all_oar) + + with monkeypatch.context() as mp: + mp.setattr( + "loopx.chat.endpoint_catalog.shutil.which", + lambda exe: "/usr/local/bin/kimi" if exe == "kimi" else None, + ) + rows = builtin_chat_endpoints( + codex_bin="missing-codex", + claude_bin="missing-claude", + kiro_cli_bin="missing-kiro", + runtime_root=tmp_path, + ) + by_id = {row["agent_id"]: row for row in rows} + assert "kimi" in by_id + assert by_id["kimi"]["available"] is True + assert by_id["kimi"]["oar_runtime_id"] == "kimi" + assert "opencode" not in by_id + + # Adapter streaming, interrupt, and failure rejection over real OarSessionHost. + client = _scripted_client(tmp_path) + adapter = OarChatAdapter.start( + runtime_id="scripted", + display_name="Kimi Code", + work_dir=tmp_path, + context_summary="Test OAR Chat adapter", + oar_client=client, + oar_scripted_turns=[ + {"thought": "checking files", "chunks": ["Hello ", "from OAR Chat!"]}, + {"delayMs": 5_000, "text": "never finished"}, + ], + ) + try: + assert adapter.healthcheck() is True + assert adapter.capabilities()["adapter_kind"] == "oar_runtime" + events: list[tuple[str, dict[str, Any]]] = [] + reply = adapter.start_turn("Greet me.", lambda kind, payload: events.append((kind, payload))) + assert reply["message"] == "Hello from OAR Chat!" + assert any(kind == "answer.delta" for kind, _ in events) + assert any(kind == "answer.final" for kind, _ in events) + + # Interrupt must reject and NEVER emit answer.final. + events2: list[tuple[str, dict[str, Any]]] = [] + caught: list[BaseException] = [] + + def _run_second() -> None: + try: + adapter.start_turn("Slow turn.", lambda kind, payload: events2.append((kind, payload))) + except BaseException as exc: # pragma: no cover + caught.append(exc) + + t = threading.Thread(target=_run_second) + t.start() + time.sleep(0.15) + adapter.interrupt_turn() + t.join(timeout=10.0) + assert not t.is_alive() + assert caught and isinstance(caught[0], CodexChatAgentError) + assert caught[0].error_code == "interrupted" + assert not any(kind == "answer.final" for kind, _ in events2) + finally: + adapter.close_session() + assert client.list_sessions()["active_sessions"] == 0 + client.shutdown() + client.close_transport() + + +def test_oar_daemon_windows_job_object_containment_lifecycle() -> None: + events: list[tuple[str, object]] = [] + + class _FakeJob: + name = "Local\\LoopXHost-00000000000000000000000000000001" + + def assign(self, proc: Any) -> None: + events.append(("assign", proc.pid)) + + def finish(self) -> None: + events.append(("finish", self.name)) + + def __exit__(self, *exc: object) -> None: + events.append(("exit", self.name)) + + class _FakeProc: + pid = 424242 + + win_containment = _OarDaemonContainment( + platform_name="nt", + windows_job_factory=_FakeJob, + ) + assert win_containment.mode == "windows_job_object" + kwargs = win_containment.popen_kwargs() + assert "creationflags" in kwargs + assert "start_new_session" not in kwargs + + win_containment.attach(_FakeProc()) # type: ignore[arg-type] + assert events == [("assign", 424242)] + + win_containment.terminate_and_close() + assert events == [ + ("assign", 424242), + ("finish", _FakeJob.name), + ("exit", _FakeJob.name), + ] + + # Readiness snapshot reports active platform containment mode. + readiness = collect_oar_runtime_readiness() + assert readiness["process_containment"] in {"windows_job_object", "posix_process_group"} diff --git a/tests/control_plane_ts/oar_session_hub.test.ts b/tests/control_plane_ts/oar_session_hub.test.ts index 006fe7cfd4..cf3b80a991 100644 --- a/tests/control_plane_ts/oar_session_hub.test.ts +++ b/tests/control_plane_ts/oar_session_hub.test.ts @@ -19,8 +19,12 @@ import { normalizeOarError, } from "../../loopx/control_plane/oar/error_mapping.ts"; import { + clearPiDurableRuntime, listOarRuntimeCatalog, loadOarRuntime, + OAR_BUILTIN_RUNTIME_IDS, + probeOarRuntime, + registerPiDurableRuntime, resolveOarRuntimeFromCommand, resolveOarRuntimeId, resolveRuntimeInstallation, @@ -968,3 +972,67 @@ test("OarSessionHub reserves explicit sessionKey across concurrent opens, releas assert.equal(hub.activeSessionCount, 0); assert.equal(liveNative, 0); }); + +test("runtime_loader covers all 16 OAR built-in runtimes including cursor and pi-durable fail-closed probes", async t => { + t.after(() => clearPiDurableRuntime()); + + assert.equal(OAR_BUILTIN_RUNTIME_IDS.length, 16); + assert.equal(resolveOarRuntimeId("cursor"), "cursor"); + assert.equal(resolveOarRuntimeId("cursor-cli"), "cursor"); + assert.equal(resolveOarRuntimeId("pi-durable"), "pi-durable"); + assert.equal(resolveOarRuntimeId("pi_durable"), "pi-durable"); + assert.equal(resolveOarRuntimeId("qodercli"), "qoder"); + + const catalog = listOarRuntimeCatalog(); + assert.equal(catalog.length, 16); + const cursorEntry = catalog.find((entry) => entry.runtime_id === "cursor"); + const piDurableEntry = catalog.find((entry) => entry.runtime_id === "pi-durable"); + const kimiEntry = catalog.find((entry) => entry.runtime_id === "kimi"); + assert.ok(cursorEntry); + assert.equal(cursorEntry.default_binary, null); + assert.ok(piDurableEntry); + assert.equal(piDurableEntry.default_binary, null); + assert.equal(kimiEntry?.default_binary, "kimi"); + + // Unregistered pi-durable probes cleanly as unavailable without crashing. + clearPiDurableRuntime(); + const piDurableProbe = await probeOarRuntime("pi-durable"); + assert.equal(piDurableProbe.probe.runtime_id, "pi-durable"); + assert.equal(piDurableProbe.probe.available, false); + assert.equal(piDurableProbe.probe.installation_kind, "unsupported"); + assert.match(String(piDurableProbe.probe.unavailable_reason ?? ""), /registerPiDurableRuntime/); + + // Cursor without @cursor/sdk in root node_modules probes cleanly as unavailable. + const cursorProbe = await probeOarRuntime("cursor"); + assert.equal(cursorProbe.probe.runtime_id, "cursor"); + assert.equal(typeof cursorProbe.probe.available, "boolean"); + + // Registering a host-owned pi-durable Harness binds cleanly (and fails closed if optional peers are absent). + const fakeHarness = { + listSessions: async () => [], + } as never; + const bound = await registerPiDurableRuntime( + { harness: fakeHarness, models: [] as never }, + { factory: () => scriptedRuntime({ id: "pi-durable", turn: (turn) => { turn.say(turn.input); } }) }, + ); + assert.equal(bound.id, "pi-durable"); + clearPiDurableRuntime(); + const afterClear = await loadOarRuntime("pi-durable"); + const afterClearInst = await afterClear.installation?.(); + assert.equal(afterClearInst?.kind, "unsupported"); + + // Without optional peer packages installed, default pi-durable import also fails closed as unsupported. + const withoutPeers = await registerPiDurableRuntime({ harness: fakeHarness, models: [] as never }); + assert.equal(withoutPeers.id, "pi-durable"); + const withoutPeersInst = await withoutPeers.installation?.(); + assert.equal(withoutPeersInst?.kind, "unsupported"); + clearPiDurableRuntime(); + + // Hub health reports cross-platform process containment posture. + const hub = new OarSessionHub(); + const health = hub.health(); + const containment = health.process_containment as Record; + assert.equal(containment.platform, process.platform); + assert.equal(containment.windows_job_object_supported, process.platform === "win32"); + assert.equal(containment.posix_process_group, process.platform !== "win32"); +}); From 72589f4fd86d709fb85c7f335a880563e3bf0591 Mon Sep 17 00:00:00 2001 From: song Date: Thu, 3 Dec 2026 23:47:22 -0500 Subject: [PATCH 2/7] feat(oar): add sessions.sqlite WAL store, in-process MCP write tools, and Dashboard OAR observe/brands/forms Signed-off-by: song --- apps/presentation/dashboard/package-lock.json | 5126 +++++++++++++---- apps/presentation/dashboard/package.json | 2 + .../dashboard/smoke/oar-observe-smoke.ts | 83 + .../dashboard/src/data/oar-observe.ts | 202 + .../personal-workspace/agent-family.ts | 16 +- loopx/control_plane/oar/control_plane_mcp.ts | 303 + .../control_plane/oar/session_host_server.ts | 37 +- loopx/control_plane/oar/session_hub.ts | 153 +- .../control_plane/oar/session_sqlite_store.ts | 460 ++ loopx/hosts/oar_client.py | 52 + .../control_plane/test_oar_phase4_storage.py | 115 + .../oar_session_sqlite_store.test.ts | 353 ++ 12 files changed, 5910 insertions(+), 992 deletions(-) create mode 100644 apps/presentation/dashboard/smoke/oar-observe-smoke.ts create mode 100644 apps/presentation/dashboard/src/data/oar-observe.ts create mode 100644 loopx/control_plane/oar/session_sqlite_store.ts create mode 100644 tests/control_plane/test_oar_phase4_storage.py create mode 100644 tests/control_plane_ts/oar_session_sqlite_store.test.ts diff --git a/apps/presentation/dashboard/package-lock.json b/apps/presentation/dashboard/package-lock.json index 3985d102b2..ffd6e1d4f0 100644 --- a/apps/presentation/dashboard/package-lock.json +++ b/apps/presentation/dashboard/package-lock.json @@ -9,6 +9,7 @@ "version": "0.1.0", "license": "Apache-2.0", "dependencies": { + "@botiverse/oar": "0.142.0", "@fontsource-variable/geist": "^5.3.0", "@fontsource-variable/geist-mono": "^5.3.0", "@tailwindcss/vite": "^4.3.0", @@ -37,1198 +38,3223 @@ "vite": "^8.3.4" } }, - "node_modules/@emnapi/core": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", - "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", + "node_modules/@agentclientprotocol/sdk": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@agentclientprotocol/sdk/-/sdk-1.9.0.tgz", + "integrity": "sha512-saCOTPYBK1iqWqJFAYHXbg3+zCoFXyZZFoqQAwdTWkbrZZPpAETr80QOnYr2l+dzPwL0jpNhn3eDY8MoEIDbUA==", + "license": "Apache-2.0", + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + }, + "node_modules/@anthropic-ai/sdk": { + "version": "0.129.0", + "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.129.0.tgz", + "integrity": "sha512-MH7LB20kNpGLUpPTe2OG5XvL/KhX8HUO9XyBaFjgFk6TLS4Xjt0VPIuMKywe7POKKPslX+QxSlVok9e+8kG5Nw==", "license": "MIT", "optional": true, "dependencies": { - "@emnapi/wasi-threads": "1.2.1", - "tslib": "^2.4.0" + "json-schema-to-ts": "^3.1.1", + "standardwebhooks": "^1.0.0" + }, + "bin": { + "anthropic-ai-sdk": "bin/cli" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + }, + "peerDependenciesMeta": { + "zod": { + "optional": true + } } }, - "node_modules/@emnapi/runtime": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", - "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", - "license": "MIT", + "node_modules/@aws-sdk/client-bedrock-runtime": { + "version": "3.1127.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.1127.0.tgz", + "integrity": "sha512-IDl/lrPb90aH+pZFHGNDmgH9nAUQj5PlZH1sJ3w7RikctyjHSnY3oNjZhrLoaBoQn/rNK0zsP6OHEqEhj2tdLA==", + "license": "Apache-2.0", "optional": true, "dependencies": { - "tslib": "^2.4.0" + "@aws-sdk/core": "^3.977.9", + "@aws-sdk/credential-provider-node": "^3.972.82", + "@aws-sdk/eventstream-handler-node": "^3.972.34", + "@aws-sdk/middleware-eventstream": "^3.972.29", + "@aws-sdk/middleware-websocket": "^3.972.52", + "@aws-sdk/token-providers": "3.1127.0", + "@aws-sdk/types": "^3.974.5", + "@smithy/core": "^3.33.3", + "@smithy/fetch-http-handler": "^5.7.2", + "@smithy/node-http-handler": "^4.11.3", + "@smithy/types": "^4.17.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" } }, - "node_modules/@emnapi/wasi-threads": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", - "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", - "license": "MIT", + "node_modules/@aws-sdk/core": { + "version": "3.981.2", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.981.2.tgz", + "integrity": "sha512-N3XKZdfa+Dcm7Kl8NJnaaHLx860Ts3QYHOraj/wuKOYHqqCApQBIKwzSxrpwZdwrqfbPt7BvJdYVhVMPpsRoGA==", + "license": "Apache-2.0", "optional": true, "dependencies": { - "tslib": "^2.4.0" + "@aws-sdk/types": "^3.975.1", + "@aws-sdk/xml-builder": "^3.972.43", + "@aws/lambda-invoke-store": "^0.3.0", + "@smithy/core": "^3.41.1", + "@smithy/signature-v4": "^5.7.5", + "@smithy/types": "^4.20.0", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" } }, - "node_modules/@fontsource-variable/geist": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/@fontsource-variable/geist/-/geist-5.3.0.tgz", - "integrity": "sha512-j0m+vLQuG5XAYoHtGCVu0spvlGreR3EzpECUVzkFmI1mTVnAO38l/NEPDCFgZ177JxzYJCLSmTQibIiYPilGrA==", - "license": "OFL-1.1", - "funding": { - "url": "https://github.com/sponsors/ayuhito" + "node_modules/@aws-sdk/credential-provider-env": { + "version": "3.972.86", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.86.tgz", + "integrity": "sha512-ZFIkIzLAiOLOakfrzUuOz938+AF+q4nc/MYINYwFlgBbl8CsI8ofJ8Ueh0/Pp7hXMJfpq10eJdnQ7aaE6kfikQ==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/types": "^3.975.1", + "@smithy/core": "^3.41.1", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" } }, - "node_modules/@fontsource-variable/geist-mono": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/@fontsource-variable/geist-mono/-/geist-mono-5.3.0.tgz", - "integrity": "sha512-vBbuwDEo9AkrqADMXOrlAR3DFcJi4/JxeuU43FoiQERnNwsfXNnvxvReZG02cQKmyk4DZkZdBZX3oTDvy2zBAw==", - "license": "OFL-1.1", - "funding": { - "url": "https://github.com/sponsors/ayuhito" + "node_modules/@aws-sdk/credential-provider-http": { + "version": "3.972.89", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.89.tgz", + "integrity": "sha512-vxYNKrLdpHz7PF6grBBAC9QIC5bK7sP7/SFdx0PewJwbQbjpjiR/JuNDzXQQr+ix9Pb5ABRm6HcO68Vu401JuQ==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/types": "^3.975.1", + "@smithy/core": "^3.41.1", + "@smithy/fetch-http-handler": "^5.8.1", + "@smithy/node-http-handler": "^4.14.2", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" } }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", - "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "license": "MIT", + "node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler": { + "version": "4.14.2", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.14.2.tgz", + "integrity": "sha512-i1uORV1v3qBqP43ayRKzIdm1q5x14tf8N4Dd06/QUX1Szm6VxHMrTsu20X5E63UFsaNZCRjI4SXG0jDmqYa+3w==", + "license": "Apache-2.0", + "optional": true, "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" + "@smithy/core": "^3.39.0", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", - "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "license": "MIT", + "node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.973.33", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.973.33.tgz", + "integrity": "sha512-5h3d9kIhkUBWgzOMcmDSpnPxOKVWivwrdJe2K4E7D7n5sSJsYuBFkK6D5m2/KBnPpfcqYc/HIYfeRpQDFGVnOg==", + "license": "Apache-2.0", + "optional": true, "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/credential-provider-env": "^3.972.86", + "@aws-sdk/credential-provider-http": "^3.972.89", + "@aws-sdk/credential-provider-login": "^3.972.94", + "@aws-sdk/credential-provider-process": "^3.972.86", + "@aws-sdk/credential-provider-sso": "^3.973.30", + "@aws-sdk/credential-provider-web-identity": "^3.972.92", + "@aws-sdk/nested-clients": "^3.998.5", + "@aws-sdk/types": "^3.975.1", + "@smithy/core": "^3.41.1", + "@smithy/credential-provider-imds": "^4.5.2", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" } }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "license": "MIT", + "node_modules/@aws-sdk/credential-provider-login": { + "version": "3.972.94", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.94.tgz", + "integrity": "sha512-sSq1PxdXT1kqR11/dRvE5AC2dEWMbYJCXzRU03Ulu4stu6vv08zju8uUNhVdqiIX+OrMIcEHHT1maLrUZDBGDA==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/nested-clients": "^3.998.5", + "@aws-sdk/types": "^3.975.1", + "@smithy/core": "^3.41.1", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, "engines": { - "node": ">=6.0.0" + "node": ">=20.0.0" } }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "license": "MIT", + "node_modules/@aws-sdk/credential-provider-node": { + "version": "3.972.82", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.82.tgz", + "integrity": "sha512-znDkEOGXB8W3kG1LJUKP3foBZY/9qLM0eil/DxWXSp37XsdsRLQHE/d/OaCGGVgKpA6znR38h/+INk8do1FjiA==", + "license": "Apache-2.0", + "optional": true, "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" + "@aws-sdk/credential-provider-env": "^3.972.70", + "@aws-sdk/credential-provider-http": "^3.972.72", + "@aws-sdk/credential-provider-ini": "^3.973.15", + "@aws-sdk/credential-provider-process": "^3.972.70", + "@aws-sdk/credential-provider-sso": "^3.973.14", + "@aws-sdk/credential-provider-web-identity": "^3.972.76", + "@aws-sdk/types": "^3.974.5", + "@smithy/core": "^3.33.3", + "@smithy/credential-provider-imds": "^4.4.16", + "@smithy/types": "^4.17.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" } }, - "node_modules/@napi-rs/wasm-runtime": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz", - "integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==", - "license": "MIT", + "node_modules/@aws-sdk/credential-provider-process": { + "version": "3.972.86", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.86.tgz", + "integrity": "sha512-9x/+gtSDNxMQrRXgwIdwdNCVGxzUZtTZArjEeLfsn9xDvyXdsgs4my1g7JN5wKxT61ZLx4bKPREaDXnO8j7gkg==", + "license": "Apache-2.0", "optional": true, "dependencies": { - "@tybys/wasm-util": "^0.10.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Brooooooklyn" + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/types": "^3.975.1", + "@smithy/core": "^3.41.1", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@emnapi/core": "^1.7.1", - "@emnapi/runtime": "^1.7.1" + "engines": { + "node": ">=20.0.0" } }, - "node_modules/@oxc-project/types": { - "version": "0.154.0", - "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.154.0.tgz", - "integrity": "sha512-KYOUGQFlLWR+s4QMV2Q9ko38TZm7EdO87Qm7rvZLqk/webse/cDjtyxKhg/47l0byCbs/k46LT8qc4PKjAikzA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/oxc-project" + "node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.973.30", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.973.30.tgz", + "integrity": "sha512-sMvwUIaKQEeprbMT5LXrI6nhM1IUEBDRpJAydEkAMrI7brrsRl7pxnOAJ6nweg/Hn5pJOVS7JgieJIv6CvJ7Sw==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/nested-clients": "^3.998.5", + "@aws-sdk/token-providers": "3.1177.0", + "@aws-sdk/types": "^3.975.1", + "@smithy/core": "^3.41.1", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" } }, - "node_modules/@reduxjs/toolkit": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.12.0.tgz", - "integrity": "sha512-KiT+RzZbp6mQET+Mg+h2c97+9j1sNflUxQkIHI7Yuzf6Peu+OYpmkn6nbHWmLLWj+1ZODUJFwGZ7gx3L9R9EOw==", - "license": "MIT", + "node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers": { + "version": "3.1177.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1177.0.tgz", + "integrity": "sha512-KFQ/2YqE7OIGNu05hys6y9ZUyoNxxLJVHM7NCvjfyjV0Mki0u0Euwjduj5M/HMurdbZJfBV0NjMNQQkGlJEQqg==", + "license": "Apache-2.0", + "optional": true, "dependencies": { - "@standard-schema/spec": "^1.0.0", - "@standard-schema/utils": "^0.3.0", - "immer": "^11.0.0", - "redux": "^5.0.1", - "redux-thunk": "^3.1.0", - "reselect": "^5.1.0" + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/nested-clients": "^3.998.5", + "@aws-sdk/types": "^3.975.1", + "@smithy/core": "^3.41.1", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "react": "^16.9.0 || ^17.0.0 || ^18 || ^19", - "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0" + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.972.92", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.92.tgz", + "integrity": "sha512-AKaUwpy1wPN3B/byFWuvL6v+Qk8Gm840InZJw/bA1A+ciCL3zkzBUyEgxdeghJPEe79VKLs6BvbME74MQa3YKg==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/nested-clients": "^3.998.5", + "@aws-sdk/types": "^3.975.1", + "@smithy/core": "^3.41.1", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-redux": { - "optional": true - } + "engines": { + "node": ">=20.0.0" } }, - "node_modules/@reduxjs/toolkit/node_modules/immer": { - "version": "11.1.8", - "resolved": "https://registry.npmjs.org/immer/-/immer-11.1.8.tgz", - "integrity": "sha512-/tbkHMW7y10Lx6i1crLjD4/OhNkRG+Fo7byZHtah0547nIeXYcpIXaUh0IAQY6gO5459qpGGYapcEOHtFXkIuA==", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/immer" + "node_modules/@aws-sdk/eventstream-handler-node": { + "version": "3.972.43", + "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-handler-node/-/eventstream-handler-node-3.972.43.tgz", + "integrity": "sha512-q7r2UxyaGdDf+//7esWvC95JLz9oEFljL2sKCZlkHa22HhEiIE4xwaP1CbWSxSPua/P2h2sgTHOgywuw8mVJRQ==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@aws-sdk/types": "^3.975.1", + "@smithy/core": "^3.41.1", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" } }, - "node_modules/@rolldown/binding-android-arm-eabi": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.14.tgz", - "integrity": "sha512-aWR+XKH9+rW7m5fWq/5360J3mHycrx/o6xZM2DQFdJnTMdyP7/WzxPjhtLbVWdKo2y612/4U1bWqb3HQhiF7vg==", - "cpu": [ - "arm" - ], - "license": "MIT", + "node_modules/@aws-sdk/middleware-eventstream": { + "version": "3.972.39", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-eventstream/-/middleware-eventstream-3.972.39.tgz", + "integrity": "sha512-FZiEHXudprvzex41hoFZecbVmqYhbrOGsCm2W8C+xBPhKtk4DCkvnCIohh1WfmXPcphoHICeLcdR3sVQClMNUw==", + "license": "Apache-2.0", "optional": true, - "os": [ - "android" - ], + "dependencies": { + "@aws-sdk/types": "^3.975.1", + "@smithy/core": "^3.41.1", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=20.0.0" } }, - "node_modules/@rolldown/binding-android-arm64": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.14.tgz", - "integrity": "sha512-QiVxHofl6A8lQU7WAtOUY4QMVZXohxwz7WJJoeh8NBEUyKfIkMRKhYyq8az/1RypNiIXzNTtiS6KwHz0erxYRQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", + "node_modules/@aws-sdk/middleware-websocket": { + "version": "3.972.68", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.972.68.tgz", + "integrity": "sha512-Jm9R6LtSw8IeolnhInwcUaAUOO74kKTpy+URWthFrCBQKbd5ZulLtePYoGwiRBkao1UiIjvU1vfDjksOJFP1Vw==", + "license": "Apache-2.0", "optional": true, - "os": [ - "android" - ], + "dependencies": { + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/types": "^3.975.1", + "@smithy/core": "^3.41.1", + "@smithy/fetch-http-handler": "^5.8.1", + "@smithy/signature-v4": "^5.7.5", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">= 14.0.0" } }, - "node_modules/@rolldown/binding-darwin-arm64": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.14.tgz", - "integrity": "sha512-lTQOzHuBIooh3jIr5XINQkjPGEuGy+Dsy0meXDr6Sjty0b99kYgGh4uBC/8mJX1T0kC8d6S0aPP1Y+bHkh6aBw==", - "cpu": [ - "arm64" - ], - "license": "MIT", + "node_modules/@aws-sdk/nested-clients": { + "version": "3.998.5", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.998.5.tgz", + "integrity": "sha512-9w5mkwVLOuGqlJkPR1uhod6ZP+TOtaxrKtvK2pY9G/+FEx0e8wYRLIDeg30dYQjFDx27jHGSzEA+OaMqxeyTPg==", + "license": "Apache-2.0", "optional": true, - "os": [ - "darwin" - ], + "dependencies": { + "@aws-sdk/core": "^3.981.2", + "@aws-sdk/signature-v4-multi-region": "^3.996.52", + "@aws-sdk/types": "^3.975.1", + "@smithy/core": "^3.41.1", + "@smithy/fetch-http-handler": "^5.8.1", + "@smithy/node-http-handler": "^4.14.2", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=20.0.0" } }, - "node_modules/@rolldown/binding-darwin-x64": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.14.tgz", - "integrity": "sha512-hyMKEGatjmBYCs/Q4sbIcL/GqpFEqsX3wc+HYVQ/85A4rxc1o7rPm4DUI4GV4k/h0ITddwFSGpqQunI14GXjTA==", - "cpu": [ - "x64" - ], - "license": "MIT", + "node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler": { + "version": "4.14.2", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.14.2.tgz", + "integrity": "sha512-i1uORV1v3qBqP43ayRKzIdm1q5x14tf8N4Dd06/QUX1Szm6VxHMrTsu20X5E63UFsaNZCRjI4SXG0jDmqYa+3w==", + "license": "Apache-2.0", "optional": true, - "os": [ - "darwin" - ], + "dependencies": { + "@smithy/core": "^3.39.0", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=18.0.0" } }, - "node_modules/@rolldown/binding-freebsd-x64": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.14.tgz", - "integrity": "sha512-u371GbXoVXrEgP20PwzoGNOdAOqAMhzo19JzzY+V4YmmnC+DTOoqdbMu+O+54emM59Mik/UdrtWgcuEDKWRPKA==", - "cpu": [ - "x64" - ], - "license": "MIT", + "node_modules/@aws-sdk/signature-v4-multi-region": { + "version": "3.996.52", + "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.996.52.tgz", + "integrity": "sha512-6W6SjGc8OXUhMzNxU1X922ghD+PP1XvzmCk5Scui0jaYsLezycMYR1RaLp5xTIOUrhTXyb4DnAbPr3fBgmdnzg==", + "license": "Apache-2.0", "optional": true, - "os": [ - "freebsd" - ], + "dependencies": { + "@aws-sdk/types": "^3.975.1", + "@smithy/signature-v4": "^5.7.5", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=20.0.0" } }, - "node_modules/@rolldown/binding-linux-arm-gnueabihf": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.14.tgz", - "integrity": "sha512-BqwKsdZQf6EqVWr8fv2MrDYzAvOZ7+NYFSJESRGs87fkseEhs0TU9TXgRJTkZoRRkxTizyEg1LKUXfU3/78uqg==", - "cpu": [ - "arm" - ], - "license": "MIT", + "node_modules/@aws-sdk/token-providers": { + "version": "3.1127.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1127.0.tgz", + "integrity": "sha512-Dv2TMWBshJ+tF6ahs2Sy5bh4Iabsd4GAQqVvE9XZmYmnoaVbpS2QKIKE/HRacc7bTtbjEEvP+laGzHvHlf1CiQ==", + "license": "Apache-2.0", "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@aws-sdk/core": "^3.977.9", + "@aws-sdk/nested-clients": "^3.997.44", + "@aws-sdk/types": "^3.974.5", + "@smithy/core": "^3.33.3", + "@smithy/types": "^4.17.2", + "tslib": "^2.6.2" + }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=20.0.0" } }, - "node_modules/@rolldown/binding-linux-arm64-gnu": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.14.tgz", - "integrity": "sha512-SD9kY8M009x/7s57Z1dgUVlP5+uYBgKQK0Tkr1WIWngrtUJmRCW1RJFMY7QDla2khXhmg2i5Io7MUjcmZNZ/KQ==", - "cpu": [ - "arm64" - ], - "libc": [ - "glibc" - ], - "license": "MIT", + "node_modules/@aws-sdk/types": { + "version": "3.975.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.975.1.tgz", + "integrity": "sha512-7rGxUkCB2QPoQOeJmonmAICTN2zrH+fpmi1p4Iwu72lnxNaMhOgqcbpyddifnM1DBb19TWQ1u6z/XjkaFNEDWw==", + "license": "Apache-2.0", "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=20.0.0" } }, - "node_modules/@rolldown/binding-linux-arm64-musl": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.14.tgz", - "integrity": "sha512-BJ2CL19M6uuWesMgnqJzgxoI+N+eV7b0A9O9vLV42y+gitC41fNa8KElau1tHVzuLWX5GzEuxMPhAO0tQXQMkg==", - "cpu": [ - "arm64" - ], - "libc": [ - "musl" - ], - "license": "MIT", + "node_modules/@aws-sdk/xml-builder": { + "version": "3.972.43", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.43.tgz", + "integrity": "sha512-rG8QVx4DOrJWptsogu1Aq+CDsnPKaBrAlJpKLxrJrIDXAq1ElnW0yQjjBnlWSXll0cDakCG6UDvaqwz0A9d9Og==", + "license": "Apache-2.0", "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=20.0.0" } }, - "node_modules/@rolldown/binding-linux-ppc64-gnu": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.14.tgz", - "integrity": "sha512-4+Kl8daPV8NDHaD7mfCcc1pRM+Qg7ab8DyMm5FG5WoZgv4h2i3KFN1CybYBNbQqmuYm7ftJLvmMI1eHYJ22S/Q==", - "cpu": [ - "ppc64" - ], - "libc": [ - "glibc" - ], - "license": "MIT", + "node_modules/@aws/lambda-invoke-store": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.3.0.tgz", + "integrity": "sha512-sl4Bm6yiMNYrZKkqqDFWN0UfnWhlS8ivKxrYl+6t0gCLrqr8y3B2IqZZbFRkfaVVp7C/baApyh71P+LeE1A2sQ==", + "license": "Apache-2.0", "optional": true, - "os": [ - "linux" - ], "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=18.0.0" } }, - "node_modules/@rolldown/binding-linux-s390x-gnu": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.14.tgz", - "integrity": "sha512-V/h8ePq1fKDrmtFMz6xcCN3DKvuvMRrwwD1q0PkBeeo4DpK64biaKvqWGVxqCeYKqeRk7gE7/iKPxLCn08O97A==", - "cpu": [ - "s390x" - ], - "libc": [ - "glibc" - ], + "node_modules/@babel/runtime": { + "version": "7.29.17", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.17.tgz", + "integrity": "sha512-CvlZdpED5dsu21yK0DfpXksJWt1zeW09lY49hp7P9cA5Qedx/QkwEs1PfluSJjijH9i94oT9LmtgGWlPY8ISzw==", "license": "MIT", "optional": true, - "os": [ - "linux" - ], "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=6.9.0" } }, - "node_modules/@rolldown/binding-linux-x64-gnu": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.14.tgz", - "integrity": "sha512-WxalXzgrLVpKC93xfpaJ3gCXUWzeCr+FRCbDVD2mUAy4L6Vo3lNVz0epUEUpxPWJkLNYUwM4OSIikv36OJ9mLg==", - "cpu": [ - "x64" - ], - "libc": [ - "glibc" - ], + "node_modules/@botiverse/bottega": { + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/@botiverse/bottega/-/bottega-0.3.11.tgz", + "integrity": "sha512-fh6bpWLnz6DKVUsgFMl3c5IbkWo9GOZIgQXWr05FhrnAWK99NUMGYW9D4ojEbT57DUo/YwwichfCluqNNag7KA==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@earendil-works/pi-ai": "^1.7.0", + "@modelcontextprotocol/sdk": "^1.32.1", + "typebox": "^1.3.27", + "undici": "7.29.1" + }, + "bin": { + "bottega": "dist/cli.js" + }, + "engines": { + "node": ">=24" + } + }, + "node_modules/@botiverse/bottega/node_modules/undici": { + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.29.1.tgz", + "integrity": "sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==", "license": "MIT", "optional": true, - "os": [ - "linux" - ], "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=20.18.1" } }, - "node_modules/@rolldown/binding-linux-x64-musl": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.14.tgz", - "integrity": "sha512-3G3tnAmTpdk9jO3GQtyHXqeFD2SlecfTws/Y3M2mmj9nMBwwuLT4kur8sZKeu7ENUHSpVO3cIsm5A52LEWWwlg==", - "cpu": [ - "x64" - ], - "libc": [ - "musl" - ], + "node_modules/@botiverse/oar": { + "version": "0.142.0", + "resolved": "https://registry.npmjs.org/@botiverse/oar/-/oar-0.142.0.tgz", + "integrity": "sha512-sJh+7rZ8GkDq62wPg7tTgSB8Fzszh3o9lQzvDMnbPBIBovZU+0FKSWaTrVZMePhGD/5UwoWFezjnGpvWEUWZ6A==", + "license": "Apache-2.0", + "dependencies": { + "@agentclientprotocol/sdk": "^1.4.0", + "cross-spawn": "^7.0.6", + "dotenv": "^17.4.2", + "gray-matter": "4.0.3", + "js-yaml": "3.15.2", + "jsonc-parser": "3.3.1", + "strip-json-comments": "^5.0.3", + "undici": "8.12.4", + "which": "^2.0.2" + }, + "engines": { + "node": ">=24.0.0" + }, + "optionalDependencies": { + "@botiverse/bottega": "~0.3.0", + "@earendil-works/pi-ai": "~1.7.0", + "@earendil-works/pi-coding-agent": "~1.7.0" + }, + "peerDependencies": { + "@cursor/sdk": "1.5.3", + "@earendil-works/chord": "~1.7.0", + "@earendil-works/pi-durable": "~1.7.0" + }, + "peerDependenciesMeta": { + "@cursor/sdk": { + "optional": true + }, + "@earendil-works/chord": { + "optional": true + }, + "@earendil-works/pi-durable": { + "optional": true + } + } + }, + "node_modules/@earendil-works/pi-agent-core": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.7.0.tgz", + "integrity": "sha512-pLs/wTAcrUnKDILPHjnd7RiDZSotAhJ965LwVc8x37TeWF+k+vKPMmAW6Z1T8XMQuICbIYusjkT7K0lmjgQwrg==", "license": "MIT", "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@earendil-works/pi-ai": "1.7.0", + "@earendil-works/pi-schema": "1.7.0" + }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=22.19.0" } }, - "node_modules/@rolldown/binding-openharmony-arm64": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.14.tgz", - "integrity": "sha512-qyr5XiNGxm2ytx17vvtcJ9nXn6v1gENETi503bJx3OGwZ1tSonj7BosxbMa/xeAfSl5iS9X6KjEWYXLu6v1L7Q==", - "cpu": [ - "arm64" - ], + "node_modules/@earendil-works/pi-ai": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.7.0.tgz", + "integrity": "sha512-iKryMlUYniwWbU7YU0uS7W0+cGd9c6oJ6PzRLOn8j4+1njG4c+BQq1cNawctx/npDqGeOx8ME7Gkgl6K6arPuw==", "license": "MIT", "optional": true, - "os": [ - "openharmony" - ], + "dependencies": { + "@anthropic-ai/sdk": "0.129.0", + "@aws-sdk/client-bedrock-runtime": "3.1127.0", + "@aws-sdk/credential-provider-node": "3.972.82", + "@earendil-works/pi-schema": "1.7.0", + "@earendil-works/pi-telemetry": "1.7.0", + "@google/genai": "3.6.1", + "@smithy/node-http-handler": "4.12.1", + "http-proxy-agent": "9.1.0", + "https-proxy-agent": "9.1.0", + "openai": "7.59.0", + "partial-json": "0.1.7" + }, + "bin": { + "pi-ai": "dist/cli.js" + }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=22.19.0" } }, - "node_modules/@rolldown/binding-win32-arm64-msvc": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.14.tgz", - "integrity": "sha512-oA4o5o0S2yB199YyYXDzKUv1Z56Rc+mgOjwm7Z/vJ9Z8igiDPYvoOuDyo6g7AK/ZaF09nPhDKVnGBcYHO11GXA==", - "cpu": [ - "arm64" - ], + "node_modules/@earendil-works/pi-codemode": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.7.0.tgz", + "integrity": "sha512-fhCoh8TLxhdRTOWSEplwp39Uv+JTsu9pCqtgu9gorO8zcaw92vsbVI/G89yFs92csTo2+yB7EsJq/+725Vj+eA==", "license": "MIT", "optional": true, - "os": [ - "win32" - ], + "dependencies": { + "quickjs-wasi": "3.6.2" + }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=22.19.0" } }, - "node_modules/@rolldown/binding-win32-x64-msvc": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.14.tgz", - "integrity": "sha512-9mE94bf2GZUaR/fUSXCMpBoWkctu421Mi0ORpm4zqfbkjKep7RxzPFa5etcGs5h+2KApoWBOA/hAJa/7saGgEQ==", - "cpu": [ - "x64" - ], + "node_modules/@earendil-works/pi-coding-agent": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-1.7.0.tgz", + "integrity": "sha512-opRelA1oqV/o+cByICMYU87oiHuICeCkghHMqsZsDwDz9F6qo8HFhoH4J/wZkr6tBeFor7ryOSwEmpZsusYrbA==", "license": "MIT", "optional": true, - "os": [ - "win32" - ], + "dependencies": { + "@earendil-works/pi-agent-core": "1.7.0", + "@earendil-works/pi-ai": "1.7.0", + "@earendil-works/pi-codemode": "1.7.0", + "@earendil-works/pi-mcp": "1.7.0", + "@earendil-works/pi-tui": "1.7.0", + "@silvia-odwyer/photon-node": "0.3.4", + "brace-expansion": "5.0.12", + "chalk": "6.0.0", + "cross-spawn": "7.0.6", + "diff": "8.0.4", + "highlight.js": "10.7.3", + "hosted-git-info": "9.0.3", + "ignore": "7.0.8", + "jiti": "2.7.0", + "lovely-mermaid": "0.3.3", + "minimatch": "11.0.3", + "proper-lockfile": "4.1.2", + "quickjs-wasi": "3.6.2", + "semver": "7.8.5", + "typebox": "1.3.27", + "undici": "8.12.4", + "yaml": "2.9.0" + }, + "bin": { + "pi": "dist/bundle/cli.js" + }, "engines": { - "node": "^20.19.0 || >=22.12.0" + "node": ">=22.19.0" } }, - "node_modules/@rolldown/pluginutils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", - "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", - "license": "MIT" + "node_modules/@earendil-works/pi-coding-agent/node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "license": "MIT", + "optional": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } }, - "node_modules/@standard-schema/spec": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", - "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", - "license": "MIT" + "node_modules/@earendil-works/pi-coding-agent/node_modules/typebox": { + "version": "1.3.27", + "resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.27.tgz", + "integrity": "sha512-zu+jc1pcy4UiNThxikUr36f0Rybk9PEeCg/NE6adeWr/SKsdNO4EzZHYRDlv2YCVAfj3Odq3dESSo/jNyoBXzA==", + "license": "MIT", + "optional": true }, - "node_modules/@standard-schema/utils": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@standard-schema/utils/-/utils-0.3.0.tgz", - "integrity": "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==", - "license": "MIT" + "node_modules/@earendil-works/pi-mcp": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-mcp/-/pi-mcp-1.7.0.tgz", + "integrity": "sha512-ScsDjuFXjT9eKioD5oyZqofDXtaWCMhCBa+1aDSh7WmRACLsohfGQJtAX1rv5OmEbaerrRPgyD5jgwJFBjTFNw==", + "license": "MIT", + "optional": true, + "dependencies": { + "cross-spawn": "7.0.6" + }, + "engines": { + "node": ">=22.19.0" + } }, - "node_modules/@tailwindcss/node": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.0.tgz", - "integrity": "sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==", + "node_modules/@earendil-works/pi-mcp/node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "license": "MIT", + "optional": true, "dependencies": { - "@jridgewell/remapping": "^2.3.5", - "enhanced-resolve": "^5.21.0", - "jiti": "^2.6.1", - "lightningcss": "1.32.0", - "magic-string": "^0.30.21", - "source-map-js": "^1.2.1", - "tailwindcss": "4.3.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" } }, - "node_modules/@tailwindcss/oxide": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.0.tgz", - "integrity": "sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==", + "node_modules/@earendil-works/pi-schema": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.7.0.tgz", + "integrity": "sha512-skji4McLg9jum3NFWzFa/4QRGEZhMGnSi3QL8b9VljJkc/QopH2/BFuGKI+VcEwYzKGwsd0I8RzvXGnZGfGltQ==", "license": "MIT", + "optional": true, "engines": { - "node": ">= 20" - }, - "optionalDependencies": { - "@tailwindcss/oxide-android-arm64": "4.3.0", - "@tailwindcss/oxide-darwin-arm64": "4.3.0", - "@tailwindcss/oxide-darwin-x64": "4.3.0", - "@tailwindcss/oxide-freebsd-x64": "4.3.0", - "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.0", - "@tailwindcss/oxide-linux-arm64-gnu": "4.3.0", - "@tailwindcss/oxide-linux-arm64-musl": "4.3.0", - "@tailwindcss/oxide-linux-x64-gnu": "4.3.0", - "@tailwindcss/oxide-linux-x64-musl": "4.3.0", - "@tailwindcss/oxide-wasm32-wasi": "4.3.0", - "@tailwindcss/oxide-win32-arm64-msvc": "4.3.0", - "@tailwindcss/oxide-win32-x64-msvc": "4.3.0" + "node": ">=22.19.0" } }, - "node_modules/@tailwindcss/oxide-android-arm64": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.0.tgz", - "integrity": "sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==", - "cpu": [ - "arm64" - ], + "node_modules/@earendil-works/pi-telemetry": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.7.0.tgz", + "integrity": "sha512-QZkngqktohuFZ2TZuJSXDuUntld4sCMW1tkUPaD4moMEX/z1lwcjycXnd9ChO9HNxm/Jfo+UTiC+N2hkAF9b0w==", "license": "MIT", "optional": true, - "os": [ - "android" - ], "engines": { - "node": ">= 20" + "node": ">=22.19.0" } }, - "node_modules/@tailwindcss/oxide-darwin-arm64": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.0.tgz", - "integrity": "sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==", + "node_modules/@earendil-works/pi-tui": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.7.0.tgz", + "integrity": "sha512-C6vkUYGTeDdl/cMIbFOabSEPMRy9HuaUV76PS2BhvSmWifO5y8Rz8/LgFWqGIIFS7RMqu0gdeEpdXfH8jIp05g==", + "license": "MIT", + "optional": true, + "dependencies": { + "get-east-asian-width": "1.6.0", + "marked": "18.0.11", + "marked-cjk-friendly": "0.1.2" + }, + "engines": { + "node": ">=22.19.0" + } + }, + "node_modules/@emnapi/core": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", + "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.1", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", + "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", + "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@fontsource-variable/geist": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource-variable/geist/-/geist-5.3.0.tgz", + "integrity": "sha512-j0m+vLQuG5XAYoHtGCVu0spvlGreR3EzpECUVzkFmI1mTVnAO38l/NEPDCFgZ177JxzYJCLSmTQibIiYPilGrA==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource-variable/geist-mono": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource-variable/geist-mono/-/geist-mono-5.3.0.tgz", + "integrity": "sha512-vBbuwDEo9AkrqADMXOrlAR3DFcJi4/JxeuU43FoiQERnNwsfXNnvxvReZG02cQKmyk4DZkZdBZX3oTDvy2zBAw==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@google/genai": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/@google/genai/-/genai-3.6.1.tgz", + "integrity": "sha512-DQIkZkl+VoZc+RUSaJ41vRuywjQDpP0t/oUf5/ddQhNW6JsPjVULW2EgHmuJ1mrr6ACtrmUdPlqtNXF1yfKySg==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "google-auth-library": "^10.3.0", + "p-retry": "^4.6.2", + "protobufjs": "^7.6.5", + "ws": "^8.21.0" + }, + "engines": { + "node": ">=22.0.0" + }, + "peerDependencies": { + "@modelcontextprotocol/sdk": "^1.25.2" + }, + "peerDependenciesMeta": { + "@modelcontextprotocol/sdk": { + "optional": true + } + } + }, + "node_modules/@hono/node-server": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.11.tgz", + "integrity": "sha512-KzKz9vl4vvr1vgLHamj+g5uonbrj5NwAdO3yzOS6cd2HjALVeOgTgeZOyAzNxejbkfOOPIcvuf/Tg8l1pEFLog==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=20" + }, + "peerDependencies": { + "hono": "^4 || ^5.0.0-0" + } + }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz", + "integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==", + "license": "BlueOak-1.0.0", + "optional": true + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@modelcontextprotocol/sdk": { + "version": "1.32.2", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.32.2.tgz", + "integrity": "sha512-SWsVtH/0vULSQStoZ6xxH2K09Li8fXYTMC64ZeogCdpZ3XSi1eCPOByV1OpuJxuI3OcmHhosDWYyii07tpPsLw==", + "license": "MIT", + "optional": true, + "dependencies": { + "@hono/node-server": "^1.19.9 || ^2.0.5", + "ajv": "^8.17.1", + "ajv-formats": "^3.0.1", + "content-type": "^1.0.5", + "cors": "^2.8.5", + "cross-spawn": "^7.0.5", + "eventsource": "^3.0.2", + "eventsource-parser": "^3.0.0", + "express": "^5.2.1", + "express-rate-limit": "^8.2.1", + "hono": "^4.11.4", + "jose": "^6.1.3", + "json-schema-typed": "^8.0.2", + "pkce-challenge": "^5.0.0", + "raw-body": "^3.0.0", + "zod": "^3.25 || ^4.0", + "zod-to-json-schema": "^3.25.1" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@cfworker/json-schema": "^4.1.1", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@cfworker/json-schema": { + "optional": true + }, + "zod": { + "optional": false + } + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz", + "integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==", + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.154.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.154.0.tgz", + "integrity": "sha512-KYOUGQFlLWR+s4QMV2Q9ko38TZm7EdO87Qm7rvZLqk/webse/cDjtyxKhg/47l0byCbs/k46LT8qc4PKjAikzA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause", + "optional": true + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause", + "optional": true + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.5.tgz", + "integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==", + "license": "BSD-3-Clause", + "optional": true + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.1.tgz", + "integrity": "sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==", + "license": "BSD-3-Clause", + "optional": true + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.1.tgz", + "integrity": "sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==", + "license": "BSD-3-Clause", + "optional": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.1" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause", + "optional": true + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause", + "optional": true + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause", + "optional": true + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.2.tgz", + "integrity": "sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==", + "license": "BSD-3-Clause", + "optional": true + }, + "node_modules/@reduxjs/toolkit": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.12.0.tgz", + "integrity": "sha512-KiT+RzZbp6mQET+Mg+h2c97+9j1sNflUxQkIHI7Yuzf6Peu+OYpmkn6nbHWmLLWj+1ZODUJFwGZ7gx3L9R9EOw==", + "license": "MIT", + "dependencies": { + "@standard-schema/spec": "^1.0.0", + "@standard-schema/utils": "^0.3.0", + "immer": "^11.0.0", + "redux": "^5.0.1", + "redux-thunk": "^3.1.0", + "reselect": "^5.1.0" + }, + "peerDependencies": { + "react": "^16.9.0 || ^17.0.0 || ^18 || ^19", + "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-redux": { + "optional": true + } + } + }, + "node_modules/@reduxjs/toolkit/node_modules/immer": { + "version": "11.1.8", + "resolved": "https://registry.npmjs.org/immer/-/immer-11.1.8.tgz", + "integrity": "sha512-/tbkHMW7y10Lx6i1crLjD4/OhNkRG+Fo7byZHtah0547nIeXYcpIXaUh0IAQY6gO5459qpGGYapcEOHtFXkIuA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.14.tgz", + "integrity": "sha512-aWR+XKH9+rW7m5fWq/5360J3mHycrx/o6xZM2DQFdJnTMdyP7/WzxPjhtLbVWdKo2y612/4U1bWqb3HQhiF7vg==", "cpu": [ - "arm64" + "arm" ], "license": "MIT", "optional": true, "os": [ - "darwin" + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.14.tgz", + "integrity": "sha512-QiVxHofl6A8lQU7WAtOUY4QMVZXohxwz7WJJoeh8NBEUyKfIkMRKhYyq8az/1RypNiIXzNTtiS6KwHz0erxYRQ==", + "cpu": [ + "arm64" ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.14.tgz", + "integrity": "sha512-lTQOzHuBIooh3jIr5XINQkjPGEuGy+Dsy0meXDr6Sjty0b99kYgGh4uBC/8mJX1T0kC8d6S0aPP1Y+bHkh6aBw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.14.tgz", + "integrity": "sha512-hyMKEGatjmBYCs/Q4sbIcL/GqpFEqsX3wc+HYVQ/85A4rxc1o7rPm4DUI4GV4k/h0ITddwFSGpqQunI14GXjTA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.14.tgz", + "integrity": "sha512-u371GbXoVXrEgP20PwzoGNOdAOqAMhzo19JzzY+V4YmmnC+DTOoqdbMu+O+54emM59Mik/UdrtWgcuEDKWRPKA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.14.tgz", + "integrity": "sha512-BqwKsdZQf6EqVWr8fv2MrDYzAvOZ7+NYFSJESRGs87fkseEhs0TU9TXgRJTkZoRRkxTizyEg1LKUXfU3/78uqg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.14.tgz", + "integrity": "sha512-SD9kY8M009x/7s57Z1dgUVlP5+uYBgKQK0Tkr1WIWngrtUJmRCW1RJFMY7QDla2khXhmg2i5Io7MUjcmZNZ/KQ==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.14.tgz", + "integrity": "sha512-BJ2CL19M6uuWesMgnqJzgxoI+N+eV7b0A9O9vLV42y+gitC41fNa8KElau1tHVzuLWX5GzEuxMPhAO0tQXQMkg==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.14.tgz", + "integrity": "sha512-4+Kl8daPV8NDHaD7mfCcc1pRM+Qg7ab8DyMm5FG5WoZgv4h2i3KFN1CybYBNbQqmuYm7ftJLvmMI1eHYJ22S/Q==", + "cpu": [ + "ppc64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.14.tgz", + "integrity": "sha512-V/h8ePq1fKDrmtFMz6xcCN3DKvuvMRrwwD1q0PkBeeo4DpK64biaKvqWGVxqCeYKqeRk7gE7/iKPxLCn08O97A==", + "cpu": [ + "s390x" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.14.tgz", + "integrity": "sha512-WxalXzgrLVpKC93xfpaJ3gCXUWzeCr+FRCbDVD2mUAy4L6Vo3lNVz0epUEUpxPWJkLNYUwM4OSIikv36OJ9mLg==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.14.tgz", + "integrity": "sha512-3G3tnAmTpdk9jO3GQtyHXqeFD2SlecfTws/Y3M2mmj9nMBwwuLT4kur8sZKeu7ENUHSpVO3cIsm5A52LEWWwlg==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.14.tgz", + "integrity": "sha512-qyr5XiNGxm2ytx17vvtcJ9nXn6v1gENETi503bJx3OGwZ1tSonj7BosxbMa/xeAfSl5iS9X6KjEWYXLu6v1L7Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.14.tgz", + "integrity": "sha512-oA4o5o0S2yB199YyYXDzKUv1Z56Rc+mgOjwm7Z/vJ9Z8igiDPYvoOuDyo6g7AK/ZaF09nPhDKVnGBcYHO11GXA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.14.tgz", + "integrity": "sha512-9mE94bf2GZUaR/fUSXCMpBoWkctu421Mi0ORpm4zqfbkjKep7RxzPFa5etcGs5h+2KApoWBOA/hAJa/7saGgEQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "license": "MIT" + }, + "node_modules/@silvia-odwyer/photon-node": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@silvia-odwyer/photon-node/-/photon-node-0.3.4.tgz", + "integrity": "sha512-bnly4BKB3KDTFxrUIcgCLbaeVVS8lrAkri1pEzskpmxu9MdfGQTy8b8EgcD83ywD3RPMsIulY8xJH5Awa+t9fA==", + "license": "Apache-2.0", + "optional": true + }, + "node_modules/@smithy/core": { + "version": "3.41.1", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.41.1.tgz", + "integrity": "sha512-24LyiHSY0R/MLcbTylurWXU6Uy4lzI6KJgsdzxkNnjT9/OLWc2zGPb/3k5AM1f0vcgCGrExanUG339t+TBiIrA==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/credential-provider-imds": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.5.2.tgz", + "integrity": "sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@smithy/core": "^3.33.2", + "@smithy/types": "^4.17.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/fetch-http-handler": { + "version": "5.8.1", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.8.1.tgz", + "integrity": "sha512-h8BdMUrUBhMhMaeK7QqAdINRZezCGuYOCpcOZZ1ewxbHST9rdTd09xwNpvLTYfzDRehxQiReK4SKbdYZxBA+ew==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@smithy/core": "^3.39.0", + "@smithy/types": "^4.20.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/node-http-handler": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.12.1.tgz", + "integrity": "sha512-ThMkboGeONWXAelq9FvGsuJC4rOi+qyC4/zhUF58xYpxUg5sQKx2VXZYJmtNjr4dSuBJ1HeJXETQILCz3wOHvw==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@smithy/core": "^3.33.3", + "@smithy/types": "^4.18.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/signature-v4": { + "version": "5.7.5", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.7.5.tgz", + "integrity": "sha512-WPjdr5oWOk1LArpI4pavu+fSo+/evi0Re1olxGvqwuZopd4gYR1UGCi+Soyn/IjmafqbWs+ZC+3AKxJS3ZpwUg==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@smithy/core": "^3.38.0", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/types": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.20.0.tgz", + "integrity": "sha512-lCA6QG22dPk9ecHbv91jDQZsmtPUjdS1aE2Il6NNPqe7DrYc0dZQi6DhcESk2KYXH2sp5xbAcGdYMZDFnuzA2A==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@stablelib/base64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/base64/-/base64-1.0.1.tgz", + "integrity": "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==", + "license": "MIT", + "optional": true + }, + "node_modules/@stablelib/binary": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/binary/-/binary-1.0.1.tgz", + "integrity": "sha512-ClJWvmL6UBM/wjkvv/7m5VP3GMr9t0osr4yVgLZsLCOz4hGN9gIAFEqnJ0TsSMAN+n840nf2cHZnA5/KFqHC7Q==", + "license": "MIT", + "optional": true, + "dependencies": { + "@stablelib/int": "^1.0.1" + } + }, + "node_modules/@stablelib/ed25519": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stablelib/ed25519/-/ed25519-1.0.3.tgz", + "integrity": "sha512-puIMWaX9QlRsbhxfDc5i+mNPMY+0TmQEskunY1rZEBPi1acBCVQAhnsk/1Hk50DGPtVsZtAWQg4NHGlVaO9Hqg==", + "license": "MIT", + "optional": true, + "dependencies": { + "@stablelib/random": "^1.0.2", + "@stablelib/sha512": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/hash": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/hash/-/hash-1.0.1.tgz", + "integrity": "sha512-eTPJc/stDkdtOcrNMZ6mcMK1e6yBbqRBaNW55XA1jU8w/7QdnCF0CmMmOD1m7VSkBR44PWrMHU2l6r8YEQHMgg==", + "license": "MIT", + "optional": true + }, + "node_modules/@stablelib/int": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/int/-/int-1.0.1.tgz", + "integrity": "sha512-byr69X/sDtDiIjIV6m4roLVWnNNlRGzsvxw+agj8CIEazqWGOQp2dTYgQhtyVXV9wpO6WyXRQUzLV/JRNumT2w==", + "license": "MIT", + "optional": true + }, + "node_modules/@stablelib/random": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@stablelib/random/-/random-1.0.2.tgz", + "integrity": "sha512-rIsE83Xpb7clHPVRlBj8qNe5L8ISQOzjghYQm/dZ7VaM2KHYwMW5adjQjrzTZCchFnNCNhkwtnOBa9HTMJCI8w==", + "license": "MIT", + "optional": true, + "dependencies": { + "@stablelib/binary": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/sha512": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/sha512/-/sha512-1.0.1.tgz", + "integrity": "sha512-13gl/iawHV9zvDKciLo1fQ8Bgn2Pvf7OV6amaRVKiq3pjQ3UmEpXxWiAfV8tYjUpeZroBxtyrwtdooQT/i3hzw==", + "license": "MIT", + "optional": true, + "dependencies": { + "@stablelib/binary": "^1.0.1", + "@stablelib/hash": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/wipe": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/wipe/-/wipe-1.0.1.tgz", + "integrity": "sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==", + "license": "MIT", + "optional": true + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "license": "MIT" + }, + "node_modules/@standard-schema/utils": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@standard-schema/utils/-/utils-0.3.0.tgz", + "integrity": "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==", + "license": "MIT" + }, + "node_modules/@tailwindcss/node": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.0.tgz", + "integrity": "sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==", + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.21.0", + "jiti": "^2.6.1", + "lightningcss": "1.32.0", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.3.0" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.0.tgz", + "integrity": "sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==", + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.3.0", + "@tailwindcss/oxide-darwin-arm64": "4.3.0", + "@tailwindcss/oxide-darwin-x64": "4.3.0", + "@tailwindcss/oxide-freebsd-x64": "4.3.0", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.0", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.0", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.0", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.0", + "@tailwindcss/oxide-linux-x64-musl": "4.3.0", + "@tailwindcss/oxide-wasm32-wasi": "4.3.0", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.0", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.0" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.0.tgz", + "integrity": "sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.0.tgz", + "integrity": "sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.0.tgz", + "integrity": "sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.0.tgz", + "integrity": "sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.0.tgz", + "integrity": "sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.0.tgz", + "integrity": "sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.0.tgz", + "integrity": "sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.0.tgz", + "integrity": "sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.0.tgz", + "integrity": "sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.0.tgz", + "integrity": "sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.10.0", + "@emnapi/runtime": "^1.10.0", + "@emnapi/wasi-threads": "^1.2.1", + "@napi-rs/wasm-runtime": "^1.1.4", + "@tybys/wasm-util": "^0.10.1", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.0.tgz", + "integrity": "sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.0.tgz", + "integrity": "sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.0.tgz", + "integrity": "sha512-t6J3OrB5Fc0ExuhohouH0fWUGMYL6PTLhW+E7zIk/pdbnJARZDCwjBznFnkh5ynRnIRSI4YjtTH0t6USjJISrw==", + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.3.0", + "@tailwindcss/oxide": "4.3.0", + "tailwindcss": "4.3.0" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7 || ^8" + } + }, + "node_modules/@tanstack/history": { + "version": "1.162.0", + "resolved": "https://registry.npmjs.org/@tanstack/history/-/history-1.162.0.tgz", + "integrity": "sha512-79pf/RkhteYZTRgcR4F9kbk84P2N8rugQJswxfIqovlbRiT3yI7eBE+5QorIrZaOKktsgzRlXh1l/du/xpl4iA==", + "license": "MIT", + "engines": { + "node": ">=20.19" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/query-core": { + "version": "5.101.0", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.101.0.tgz", + "integrity": "sha512-cQetA74EB+seWySv1TTKr828TnP0u39m6LykwDXIo84SNortpDkp30TMEjkqtYCNP9c40uT/iwl6MLiufEt0Ow==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/react-query": { + "version": "5.101.0", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.101.0.tgz", + "integrity": "sha512-rLlJXSpkqfizLWgkR5+eLeIk0MvTx/meEIR7LRjxic+qxiQP8zVjq7BqQkiCMNLQBlLfuOLqqr6KO5GtrDlmSg==", + "license": "MIT", + "dependencies": { + "@tanstack/query-core": "5.101.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^18 || ^19" + } + }, + "node_modules/@tanstack/react-router": { + "version": "1.170.10", + "resolved": "https://registry.npmjs.org/@tanstack/react-router/-/react-router-1.170.10.tgz", + "integrity": "sha512-gVmWYq0ucWr+OB97Nud0YhKa9NOipB7/QrWI7wRZJJWEL0qUS8WPqAs0vA1f3IBXZpXmf8xxzf/tl5cmo4tlmA==", + "license": "MIT", + "dependencies": { + "@tanstack/history": "1.162.0", + "@tanstack/react-store": "^0.9.3", + "@tanstack/router-core": "1.171.8", + "isbot": "^5.1.22" + }, + "engines": { + "node": ">=20.19" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": ">=18.0.0 || >=19.0.0", + "react-dom": ">=18.0.0 || >=19.0.0" + } + }, + "node_modules/@tanstack/react-store": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/@tanstack/react-store/-/react-store-0.9.3.tgz", + "integrity": "sha512-y2iHd/N9OkoQbFJLUX1T9vbc2O9tjH0pQRgTcx1/Nz4IlwLvkgpuglXUx+mXt0g5ZDFrEeDnONPqkbfxXJKwRg==", + "license": "MIT", + "dependencies": { + "@tanstack/store": "0.9.3", + "use-sync-external-store": "^1.6.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/@tanstack/react-table": { + "version": "8.21.3", + "resolved": "https://registry.npmjs.org/@tanstack/react-table/-/react-table-8.21.3.tgz", + "integrity": "sha512-5nNMTSETP4ykGegmVkhjcS8tTLW6Vl4axfEGQN3v0zdHYbK4UfoqfPChclTrJ4EoK9QynqAu9oUf8VEmrpZ5Ww==", + "license": "MIT", + "dependencies": { + "@tanstack/table-core": "8.21.3" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": ">=16.8", + "react-dom": ">=16.8" + } + }, + "node_modules/@tanstack/router-core": { + "version": "1.171.8", + "resolved": "https://registry.npmjs.org/@tanstack/router-core/-/router-core-1.171.8.tgz", + "integrity": "sha512-PbrTBbofFcacrH3RLgHYILRqTFnAGq+gXrXoA/vo7qUSkJpSO4GWfLtrtCahD4VayzRm19IPwcjPPLEugag6pw==", + "license": "MIT", + "dependencies": { + "@tanstack/history": "1.162.0", + "cookie-es": "^3.0.0", + "seroval": "^1.5.4", + "seroval-plugins": "^1.5.4" + }, + "engines": { + "node": ">=20.19" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/store": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/@tanstack/store/-/store-0.9.3.tgz", + "integrity": "sha512-8reSzl/qGWGGVKhBoxXPMWzATSbZLZFWhwBAFO9NAyp0TxzfBP0mIrGb8CP8KrQTmvzXlR/vFPPUrHTLBGyFyw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/table-core": { + "version": "8.21.3", + "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.21.3.tgz", + "integrity": "sha512-ldZXEhOBb8Is7xLs01fR3YEc3DERiz5silj8tnGkFZytt1abEvl/GhUmCE0PMLaMPTa3Jk4HbKmRlHmu+gCftg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz", + "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/d3-array": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz", + "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==", + "license": "MIT" + }, + "node_modules/@types/d3-color": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", + "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", + "license": "MIT" + }, + "node_modules/@types/d3-ease": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", + "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", + "license": "MIT" + }, + "node_modules/@types/d3-interpolate": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", + "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", + "license": "MIT", + "dependencies": { + "@types/d3-color": "*" + } + }, + "node_modules/@types/d3-path": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", + "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==", + "license": "MIT" + }, + "node_modules/@types/d3-scale": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz", + "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==", + "license": "MIT", + "dependencies": { + "@types/d3-time": "*" + } + }, + "node_modules/@types/d3-shape": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.8.tgz", + "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==", + "license": "MIT", + "dependencies": { + "@types/d3-path": "*" + } + }, + "node_modules/@types/d3-time": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", + "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", + "license": "MIT" + }, + "node_modules/@types/d3-timer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", + "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "26.6.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.11.tgz", + "integrity": "sha512-uUyQ2XLEz+EXh34lmS3GhKrkqn/8FU7KUiKRpk347At2bmnMVWss45yz8b4FG/tUtmV1tV/+TVkITItPROyeeQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "undici-types": "~8.9.0" + } + }, + "node_modules/@types/react": { + "version": "19.2.15", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.15.tgz", + "integrity": "sha512-eRwcGNHve+E8qtEQSSRl6urh+rFop4v8gm6O8rGv25CodbvFdLjA1vVQ1KkiFE0w0UPOnb8tDiFKL5lp0rtY5Q==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, + "node_modules/@types/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", + "license": "MIT", + "optional": true + }, + "node_modules/@types/use-sync-external-store": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz", + "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==", + "license": "MIT" + }, + "node_modules/@vitejs/plugin-react": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.2.tgz", + "integrity": "sha512-DlSMqo4WhThw4vB8Mpn0Woe9J+Jfq1geJ61AKW0QEgLzGMNwtIMdxbDUzLxcun8W7NbJO0e2Jg/Nxm3cCSVzzg==", + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + } + } + }, + "node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", + "license": "MIT", + "optional": true, + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/agent-base": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-9.0.0.tgz", + "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 20" + } + }, + "node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "license": "MIT", + "optional": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "license": "MIT", + "optional": true, + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "optional": true + }, + "node_modules/bignumber.js": { + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz", + "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": "*" + } + }, + "node_modules/body-parser": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz", + "integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "bytes": "^3.1.2", + "content-type": "^2.1.0", + "debug": "^4.4.3", + "http-errors": "^2.0.1", + "iconv-lite": "^0.7.3", + "on-finished": "^2.4.1", + "qs": "^6.16.1", + "raw-body": "^3.0.2", + "type-is": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/body-parser/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/bowser": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.15.1.tgz", + "integrity": "sha512-ma47ABeUiTsmG4McKDtGCgQSiTCatM97Mlbn13K42N1kPSFE14oN3WFMjtyL4KubhGvQTqYheKl4Qx2bJtMXLQ==", + "license": "MIT", + "optional": true + }, + "node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause", + "optional": true + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "optional": true, + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/chalk": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-6.0.0.tgz", + "integrity": "sha512-2uNTXIuTTxk7ciZgAU1BQcgnchcG0xXnrs6jzkQfj9SsRa9M2s5zE8WT96hS6KmG4MzWHSrvH43DF1m4XRkrFg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/class-variance-authority": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz", + "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==", + "license": "Apache-2.0", + "dependencies": { + "clsx": "^2.1.1" + }, + "funding": { + "url": "https://polar.sh/cva" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/content-disposition": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-2.0.1.tgz", + "integrity": "sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-es": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-3.1.1.tgz", + "integrity": "sha512-UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg==", + "license": "MIT" + }, + "node_modules/cookie-signature": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=6.6.0" + } + }, + "node_modules/cors": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz", + "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==", + "license": "MIT", + "optional": true, + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/cross-spawn": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.1.2.tgz", + "integrity": "sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/d3-array": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", + "license": "ISC", + "dependencies": { + "internmap": "1 - 2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-ease": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-format": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz", + "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-scale": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", + "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", + "license": "ISC", + "dependencies": { + "d3-array": "2.10.0 - 3", + "d3-format": "1 - 3", + "d3-interpolate": "1.2.0 - 3", + "d3-time": "2.1.1 - 3", + "d3-time-format": "2 - 4" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", + "license": "ISC", + "dependencies": { + "d3-path": "^3.1.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", + "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", + "license": "ISC", + "dependencies": { + "d3-array": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time-format": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", + "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "license": "ISC", + "dependencies": { + "d3-time": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-timer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 12" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "optional": true, + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js-light": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz", + "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==", + "license": "MIT" + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/diff/-/diff-8.0.4.tgz", + "integrity": "sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==", + "license": "BSD-3-Clause", + "optional": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dotenv": { + "version": "17.4.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz", + "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "optional": true, + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, "engines": { - "node": ">= 20" + "node": ">= 0.4" } }, - "node_modules/@tailwindcss/oxide-darwin-x64": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.0.tgz", - "integrity": "sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==", - "cpu": [ - "x64" - ], + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT", + "optional": true + }, + "node_modules/encodeurl": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.3.tgz", + "integrity": "sha512-mIteYONiEfc4xWf2F1WXovh1c8npzS00vNeiUPdwFF+QlVJni+gNvpQltLMQhob8rew/bWWc/bGTuUr0EUGt0w==", "license": "MIT", "optional": true, - "os": [ - "darwin" - ], "engines": { - "node": ">= 20" + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/@tailwindcss/oxide-freebsd-x64": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.0.tgz", - "integrity": "sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==", - "cpu": [ - "x64" - ], + "node_modules/enhanced-resolve": { + "version": "5.22.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.22.1.tgz", + "integrity": "sha512-6QEuw3zoX1SJQc7b87aBXke/no+mG2bTBgw29gWMQonLmpEkWoCAVkl+M49e48AZlWzxiDzDZzYdp6kobcyLww==", "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, "engines": { - "node": ">= 20" + "node": ">=10.13.0" } }, - "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.0.tgz", - "integrity": "sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==", - "cpu": [ - "arm" - ], + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "license": "MIT", "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">= 20" + "node": ">= 0.4" } }, - "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.0.tgz", - "integrity": "sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==", - "cpu": [ - "arm64" - ], + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "license": "MIT", "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">= 20" + "node": ">= 0.4" } }, - "node_modules/@tailwindcss/oxide-linux-arm64-musl": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.0.tgz", - "integrity": "sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==", - "cpu": [ - "arm64" - ], + "node_modules/es-object-atoms": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", "license": "MIT", "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "es-errors": "^1.3.0" + }, "engines": { - "node": ">= 20" + "node": ">= 0.4" } }, - "node_modules/@tailwindcss/oxide-linux-x64-gnu": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.0.tgz", - "integrity": "sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==", - "cpu": [ - "x64" - ], + "node_modules/es-toolkit": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.47.0.tgz", + "integrity": "sha512-n1GuoD0WEQZMBk5tttoZSqwgyLx01oqa5XsBmCHwPyNe1S9jPBEmtR2pSgp2kJuWE3ciFZ6yRHmY4pM4C3OOkw==", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], + "workspaces": [ + "docs", + "benchmarks" + ] + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT", + "optional": true + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, "engines": { - "node": ">= 20" + "node": ">=4" } }, - "node_modules/@tailwindcss/oxide-linux-x64-musl": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.0.tgz", - "integrity": "sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==", - "cpu": [ - "x64" - ], + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", "license": "MIT", "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">= 20" + "node": ">= 0.6" } }, - "node_modules/@tailwindcss/oxide-wasm32-wasi": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.0.tgz", - "integrity": "sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==", - "bundleDependencies": [ - "@napi-rs/wasm-runtime", - "@emnapi/core", - "@emnapi/runtime", - "@tybys/wasm-util", - "@emnapi/wasi-threads", - "tslib" - ], - "cpu": [ - "wasm32" - ], + "node_modules/eventemitter3": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", + "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", + "license": "MIT" + }, + "node_modules/eventsource": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz", + "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==", "license": "MIT", "optional": true, "dependencies": { - "@emnapi/core": "^1.10.0", - "@emnapi/runtime": "^1.10.0", - "@emnapi/wasi-threads": "^1.2.1", - "@napi-rs/wasm-runtime": "^1.1.4", - "@tybys/wasm-util": "^0.10.1", - "tslib": "^2.8.1" + "eventsource-parser": "^3.0.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0" } }, - "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.0.tgz", - "integrity": "sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==", - "cpu": [ - "arm64" - ], + "node_modules/eventsource-parser": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.1.1.tgz", + "integrity": "sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==", "license": "MIT", "optional": true, - "os": [ - "win32" - ], "engines": { - "node": ">= 20" + "node": ">=18.0.0" } }, - "node_modules/@tailwindcss/oxide-win32-x64-msvc": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.0.tgz", - "integrity": "sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==", - "cpu": [ - "x64" - ], + "node_modules/express": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/express/-/express-5.3.0.tgz", + "integrity": "sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==", "license": "MIT", "optional": true, - "os": [ - "win32" - ], + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.3.0", + "content-disposition": "^2.0.1", + "content-type": "^2.0.0", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "depd": "^2.0.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.8", + "qs": "^6.16.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.1.0", + "vary": "^1.1.2" + }, "engines": { - "node": ">= 20" + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/@tailwindcss/vite": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.0.tgz", - "integrity": "sha512-t6J3OrB5Fc0ExuhohouH0fWUGMYL6PTLhW+E7zIk/pdbnJARZDCwjBznFnkh5ynRnIRSI4YjtTH0t6USjJISrw==", + "node_modules/express-rate-limit": { + "version": "8.7.5", + "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.7.5.tgz", + "integrity": "sha512-wi+v38cx2EqD0JnhE/e74o5tFqKWUOAPFJIgyEiqJ8v2MNpoOAA3kI2hXYOI+YM+HE5yqbdAlVxm2GqOIeYOgA==", "license": "MIT", + "optional": true, "dependencies": { - "@tailwindcss/node": "4.3.0", - "@tailwindcss/oxide": "4.3.0", - "tailwindcss": "4.3.0" + "debug": "^4.4.3", + "ip-address": "^10.2.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/express-rate-limit" }, "peerDependencies": { - "vite": "^5.2.0 || ^6 || ^7 || ^8" + "express": ">= 4.11" } }, - "node_modules/@tanstack/history": { - "version": "1.162.0", - "resolved": "https://registry.npmjs.org/@tanstack/history/-/history-1.162.0.tgz", - "integrity": "sha512-79pf/RkhteYZTRgcR4F9kbk84P2N8rugQJswxfIqovlbRiT3yI7eBE+5QorIrZaOKktsgzRlXh1l/du/xpl4iA==", + "node_modules/express/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", "license": "MIT", + "optional": true, "engines": { - "node": ">=20.19" + "node": ">=18" }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/@tanstack/query-core": { - "version": "5.101.0", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.101.0.tgz", - "integrity": "sha512-cQetA74EB+seWySv1TTKr828TnP0u39m6LykwDXIo84SNortpDkp30TMEjkqtYCNP9c40uT/iwl6MLiufEt0Ow==", + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" - } + "optional": true }, - "node_modules/@tanstack/react-query": { - "version": "5.101.0", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.101.0.tgz", - "integrity": "sha512-rLlJXSpkqfizLWgkR5+eLeIk0MvTx/meEIR7LRjxic+qxiQP8zVjq7BqQkiCMNLQBlLfuOLqqr6KO5GtrDlmSg==", + "node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", "license": "MIT", "dependencies": { - "@tanstack/query-core": "5.101.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" + "is-extendable": "^0.1.0" }, - "peerDependencies": { - "react": "^18 || ^19" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/@tanstack/react-router": { - "version": "1.170.10", - "resolved": "https://registry.npmjs.org/@tanstack/react-router/-/react-router-1.170.10.tgz", - "integrity": "sha512-gVmWYq0ucWr+OB97Nud0YhKa9NOipB7/QrWI7wRZJJWEL0qUS8WPqAs0vA1f3IBXZpXmf8xxzf/tl5cmo4tlmA==", + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT", + "optional": true + }, + "node_modules/fast-sha256": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz", + "integrity": "sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==", + "license": "Unlicense", + "optional": true + }, + "node_modules/fast-uri": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause", + "optional": true + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", "license": "MIT", - "dependencies": { - "@tanstack/history": "1.162.0", - "@tanstack/react-store": "^0.9.3", - "@tanstack/router-core": "1.171.8", - "isbot": "^5.1.22" - }, "engines": { - "node": ">=20.19" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" + "node": ">=12.0.0" }, "peerDependencies": { - "react": ">=18.0.0 || >=19.0.0", - "react-dom": ">=18.0.0 || >=19.0.0" + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } } }, - "node_modules/@tanstack/react-store": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/@tanstack/react-store/-/react-store-0.9.3.tgz", - "integrity": "sha512-y2iHd/N9OkoQbFJLUX1T9vbc2O9tjH0pQRgTcx1/Nz4IlwLvkgpuglXUx+mXt0g5ZDFrEeDnONPqkbfxXJKwRg==", + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], "license": "MIT", + "optional": true, "dependencies": { - "@tanstack/store": "0.9.3", - "use-sync-external-store": "^1.6.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + "engines": { + "node": "^12.20 || >= 14.13" } }, - "node_modules/@tanstack/react-table": { - "version": "8.21.3", - "resolved": "https://registry.npmjs.org/@tanstack/react-table/-/react-table-8.21.3.tgz", - "integrity": "sha512-5nNMTSETP4ykGegmVkhjcS8tTLW6Vl4axfEGQN3v0zdHYbK4UfoqfPChclTrJ4EoK9QynqAu9oUf8VEmrpZ5Ww==", + "node_modules/finalhandler": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", + "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", "license": "MIT", + "optional": true, "dependencies": { - "@tanstack/table-core": "8.21.3" + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" }, "engines": { - "node": ">=12" + "node": ">= 18.0.0" }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" - }, - "peerDependencies": { - "react": ">=16.8", - "react-dom": ">=16.8" + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/@tanstack/router-core": { - "version": "1.171.8", - "resolved": "https://registry.npmjs.org/@tanstack/router-core/-/router-core-1.171.8.tgz", - "integrity": "sha512-PbrTBbofFcacrH3RLgHYILRqTFnAGq+gXrXoA/vo7qUSkJpSO4GWfLtrtCahD4VayzRm19IPwcjPPLEugag6pw==", + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", "license": "MIT", + "optional": true, "dependencies": { - "@tanstack/history": "1.162.0", - "cookie-es": "^3.0.0", - "seroval": "^1.5.4", - "seroval-plugins": "^1.5.4" + "fetch-blob": "^3.1.2" }, "engines": { - "node": ">=20.19" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" + "node": ">=12.20.0" } }, - "node_modules/@tanstack/store": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/@tanstack/store/-/store-0.9.3.tgz", - "integrity": "sha512-8reSzl/qGWGGVKhBoxXPMWzATSbZLZFWhwBAFO9NAyp0TxzfBP0mIrGb8CP8KrQTmvzXlR/vFPPUrHTLBGyFyw==", + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" + "optional": true, + "engines": { + "node": ">= 0.6" } }, - "node_modules/@tanstack/table-core": { - "version": "8.21.3", - "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.21.3.tgz", - "integrity": "sha512-ldZXEhOBb8Is7xLs01fR3YEc3DERiz5silj8tnGkFZytt1abEvl/GhUmCE0PMLaMPTa3Jk4HbKmRlHmu+gCftg==", + "node_modules/fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", "license": "MIT", + "optional": true, "engines": { - "node": ">=12" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" + "node": ">= 0.8" } }, - "node_modules/@tybys/wasm-util": { - "version": "0.10.2", - "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz", - "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==", + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, "license": "MIT", "optional": true, - "dependencies": { - "tslib": "^2.4.0" + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/@types/d3-array": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz", - "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==", - "license": "MIT" - }, - "node_modules/@types/d3-color": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", - "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", - "license": "MIT" - }, - "node_modules/@types/d3-ease": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", - "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", - "license": "MIT" - }, - "node_modules/@types/d3-interpolate": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", - "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "license": "MIT", - "dependencies": { - "@types/d3-color": "*" + "optional": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/@types/d3-path": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", - "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==", - "license": "MIT" - }, - "node_modules/@types/d3-scale": { - "version": "4.0.9", - "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz", - "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==", - "license": "MIT", + "node_modules/gaxios": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.3.1.tgz", + "integrity": "sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ==", + "license": "Apache-2.0", + "optional": true, "dependencies": { - "@types/d3-time": "*" + "extend": "^3.0.2", + "https-proxy-agent": "^7.0.1", + "node-fetch": "^3.3.2" + }, + "engines": { + "node": ">=18" } }, - "node_modules/@types/d3-shape": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.8.tgz", - "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==", + "node_modules/gaxios/node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", "license": "MIT", - "dependencies": { - "@types/d3-path": "*" + "optional": true, + "engines": { + "node": ">= 14" } }, - "node_modules/@types/d3-time": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", - "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", - "license": "MIT" - }, - "node_modules/@types/d3-timer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", - "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", - "license": "MIT" - }, - "node_modules/@types/react": { - "version": "19.2.15", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.15.tgz", - "integrity": "sha512-eRwcGNHve+E8qtEQSSRl6urh+rFop4v8gm6O8rGv25CodbvFdLjA1vVQ1KkiFE0w0UPOnb8tDiFKL5lp0rtY5Q==", - "devOptional": true, + "node_modules/gaxios/node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", "license": "MIT", + "optional": true, "dependencies": { - "csstype": "^3.2.2" - } - }, - "node_modules/@types/react-dom": { - "version": "19.2.3", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", - "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "@types/react": "^19.2.0" + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" } }, - "node_modules/@types/use-sync-external-store": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz", - "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==", - "license": "MIT" - }, - "node_modules/@vitejs/plugin-react": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.2.tgz", - "integrity": "sha512-DlSMqo4WhThw4vB8Mpn0Woe9J+Jfq1geJ61AKW0QEgLzGMNwtIMdxbDUzLxcun8W7NbJO0e2Jg/Nxm3cCSVzzg==", - "license": "MIT", + "node_modules/gcp-metadata": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.2.tgz", + "integrity": "sha512-zV/5HKTfCeKWnxG0Dmrw51hEWFGfcF2xiXqcA3+J90WDuP0SvoiSO5ORvcBsifmx/FoIjgQN3oNOGaQ5PhLFkg==", + "license": "Apache-2.0", + "optional": true, "dependencies": { - "@rolldown/pluginutils": "^1.0.0" + "gaxios": "^7.0.0", + "google-logging-utils": "^1.0.0", + "json-bigint": "^1.0.0" }, "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "peerDependencies": { - "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", - "babel-plugin-react-compiler": "^1.0.0", - "vite": "^8.0.0" - }, - "peerDependenciesMeta": { - "@rolldown/plugin-babel": { - "optional": true - }, - "babel-plugin-react-compiler": { - "optional": true - } + "node": ">=18" } }, - "node_modules/class-variance-authority": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz", - "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==", - "license": "Apache-2.0", - "dependencies": { - "clsx": "^2.1.1" + "node_modules/get-east-asian-width": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz", + "integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=18" }, "funding": { - "url": "https://polar.sh/cva" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/clsx": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", - "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "license": "MIT", + "optional": true, + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, "engines": { - "node": ">=6" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/cookie-es": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-3.1.1.tgz", - "integrity": "sha512-UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg==", - "license": "MIT" - }, - "node_modules/csstype": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", - "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "devOptional": true, - "license": "MIT" - }, - "node_modules/d3-array": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", - "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", - "license": "ISC", + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "optional": true, "dependencies": { - "internmap": "1 - 2" + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" }, "engines": { - "node": ">=12" + "node": ">= 0.4" } }, - "node_modules/d3-color": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", - "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", - "license": "ISC", + "node_modules/google-auth-library": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.9.1.tgz", + "integrity": "sha512-i1ydyHrqcIxXkWh/uBmVkzCvIuq5yiK2ATndIe5XxKholrG/MTYP9xGYka4sQhrbIAgGjL2B6NOE7rFaiF3fXw==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "base64-js": "^1.3.0", + "ecdsa-sig-formatter": "^1.0.11", + "gaxios": "^7.1.4", + "gcp-metadata": "8.1.2", + "google-logging-utils": "1.1.3", + "jws": "^4.0.0" + }, "engines": { - "node": ">=12" + "node": ">=18" } }, - "node_modules/d3-ease": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", - "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", - "license": "BSD-3-Clause", + "node_modules/google-logging-utils": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz", + "integrity": "sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==", + "license": "Apache-2.0", + "optional": true, "engines": { - "node": ">=12" + "node": ">=14" } }, - "node_modules/d3-format": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz", - "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==", - "license": "ISC", + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "optional": true, "engines": { - "node": ">=12" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/d3-interpolate": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", - "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", - "license": "ISC", + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, + "node_modules/gray-matter": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-4.0.3.tgz", + "integrity": "sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==", + "license": "MIT", "dependencies": { - "d3-color": "1 - 3" + "js-yaml": "^3.13.1", + "kind-of": "^6.0.2", + "section-matter": "^1.0.0", + "strip-bom-string": "^1.0.0" }, "engines": { - "node": ">=12" + "node": ">=6.0" } }, - "node_modules/d3-path": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", - "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", - "license": "ISC", + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "optional": true, "engines": { - "node": ">=12" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/d3-scale": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", - "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", - "license": "ISC", + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "license": "MIT", + "optional": true, "dependencies": { - "d3-array": "2.10.0 - 3", - "d3-format": "1 - 3", - "d3-interpolate": "1.2.0 - 3", - "d3-time": "2.1.1 - 3", - "d3-time-format": "2 - 4" + "function-bind": "^1.1.2" }, "engines": { - "node": ">=12" + "node": ">= 0.4" } }, - "node_modules/d3-shape": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", - "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", - "license": "ISC", - "dependencies": { - "d3-path": "^3.1.0" - }, + "node_modules/highlight.js": { + "version": "10.7.3", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", + "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", + "license": "BSD-3-Clause", + "optional": true, "engines": { - "node": ">=12" + "node": "*" } }, - "node_modules/d3-time": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", - "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", - "license": "ISC", - "dependencies": { - "d3-array": "2 - 3" - }, + "node_modules/hono": { + "version": "4.13.23", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.23.tgz", + "integrity": "sha512-OS90dj7dcsftEEWCOef8jRbnHE5lbrOq0hNRqjSyPsOnaGZvvfof1KS05hQNb4kUOCfDq1mG3PmHoX37DMnHQg==", + "license": "MIT", + "optional": true, "engines": { - "node": ">=12" + "node": ">=16.9.0" } }, - "node_modules/d3-time-format": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", - "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "node_modules/hosted-git-info": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.3.tgz", + "integrity": "sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==", "license": "ISC", + "optional": true, "dependencies": { - "d3-time": "1 - 3" + "lru-cache": "^11.1.0" }, "engines": { - "node": ">=12" + "node": "^20.17.0 || >=22.9.0" } }, - "node_modules/d3-timer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", - "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", - "license": "ISC", + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, "engines": { - "node": ">=12" + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/decimal.js-light": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz", - "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==", - "license": "MIT" - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "license": "Apache-2.0", + "node_modules/http-proxy-agent": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-9.1.0.tgz", + "integrity": "sha512-2NxoveTT58mjYT4n3RPTEfCZGLMbidoO8XEieXfpSYxu+PQJ1qpx4ypwH6N+uF9twBPIvRRgvkvW5HUTYWENig==", + "license": "MIT", + "optional": true, + "dependencies": { + "agent-base": "9.0.0", + "debug": "^4.3.4", + "proxy-agent-negotiate": "1.1.0" + }, "engines": { - "node": ">=8" + "node": ">= 20" } }, - "node_modules/enhanced-resolve": { - "version": "5.22.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.22.1.tgz", - "integrity": "sha512-6QEuw3zoX1SJQc7b87aBXke/no+mG2bTBgw29gWMQonLmpEkWoCAVkl+M49e48AZlWzxiDzDZzYdp6kobcyLww==", + "node_modules/https-proxy-agent": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-9.1.0.tgz", + "integrity": "sha512-ag87y7cJJ9/3+GxFr8Oy4O5faDsGRGnBGsJj/YjOSsSx/5eadKLYTMPlzuR6obgoCDDm0abAAZitXXQkMOPSpA==", "license": "MIT", + "optional": true, "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.3.3" + "agent-base": "9.0.0", + "debug": "^4.3.4", + "proxy-agent-negotiate": "1.1.0" }, "engines": { - "node": ">=10.13.0" + "node": ">= 20" } }, - "node_modules/es-toolkit": { - "version": "1.47.0", - "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.47.0.tgz", - "integrity": "sha512-n1GuoD0WEQZMBk5tttoZSqwgyLx01oqa5XsBmCHwPyNe1S9jPBEmtR2pSgp2kJuWE3ciFZ6yRHmY4pM4C3OOkw==", - "license": "MIT", - "workspaces": [ - "docs", - "benchmarks" - ] - }, - "node_modules/eventemitter3": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", - "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", - "license": "MIT" - }, - "node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "node_modules/iconv-lite": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", "license": "MIT", - "engines": { - "node": ">=12.0.0" + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" }, - "peerDependencies": { - "picomatch": "^3 || ^4" + "engines": { + "node": ">=0.10.0" }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "hasInstallScript": true, + "node_modules/ignore": { + "version": "7.0.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.8.tgz", + "integrity": "sha512-YYNsSlXBjMk92SKnkwvB5LOVSa6OznlFUGcsvrFgNJbJCd0M1XKeFVRc8ZByeCqz32FivYNHJVooLmdqrmvp/Q==", "license": "MIT", "optional": true, - "os": [ - "darwin" - ], "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + "node": ">= 4" } }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "license": "ISC" - }, "node_modules/immer": { "version": "10.2.0", "resolved": "https://registry.npmjs.org/immer/-/immer-10.2.0.tgz", @@ -1239,6 +3265,13 @@ "url": "https://opencollective.com/immer" } }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC", + "optional": true + }, "node_modules/internmap": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", @@ -1248,22 +3281,163 @@ "node": ">=12" } }, - "node_modules/isbot": { - "version": "5.1.40", - "resolved": "https://registry.npmjs.org/isbot/-/isbot-5.1.40.tgz", - "integrity": "sha512-yNeeynhhtIVRBk12tBV4eHNxwB42HzR4Q3Ea7vCOiJhImGaAIdIMrbJtacQlBizGLjUPw+akkFI5Dn9T70XoVQ==", - "license": "Unlicense", - "engines": { - "node": ">=18" + "node_modules/ip-address": { + "version": "10.7.7", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.7.tgz", + "integrity": "sha512-He15rAs4jip5AEAz7XM9L+S6Y8LBMIDj6YewbYuJfmDnOCKWb+3TLOGnHFBTAIW7wpm5ohtZ+Xyo5PEaG+O2vQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 12" + } + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", + "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", + "license": "MIT", + "optional": true + }, + "node_modules/isbot": { + "version": "5.1.40", + "resolved": "https://registry.npmjs.org/isbot/-/isbot-5.1.40.tgz", + "integrity": "sha512-yNeeynhhtIVRBk12tBV4eHNxwB42HzR4Q3Ea7vCOiJhImGaAIdIMrbJtacQlBizGLjUPw+akkFI5Dn9T70XoVQ==", + "license": "Unlicense", + "engines": { + "node": ">=18" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "license": "ISC" + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/jose": { + "version": "6.2.19", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.19.tgz", + "integrity": "sha512-NnThKzdK4dJTUQOBoMB0bF3Xmw4EtbFTo4xzeLaoBwcuOdBVDQcKB3/86DUTWjVMXkZOdaqZVo2OU6DllhS+9Q==", + "license": "MIT", + "optional": true, + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/js-yaml": { + "version": "3.15.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.2.tgz", + "integrity": "sha512-6EuL879VkRA+1Cz578mKMiKvjPNEuk6+r1JaFzoSWejZmtf7xWbIyw1e3KkxlkzTIt9Taw6JBhEppG7utc1P+w==", + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "bignumber.js": "^9.0.0" + } + }, + "node_modules/json-schema-to-ts": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/json-schema-to-ts/-/json-schema-to-ts-3.1.1.tgz", + "integrity": "sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==", + "license": "MIT", + "optional": true, + "dependencies": { + "@babel/runtime": "^7.18.3", + "ts-algebra": "^2.0.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT", + "optional": true + }, + "node_modules/json-schema-typed": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", + "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", + "license": "BSD-2-Clause", + "optional": true + }, + "node_modules/jsonc-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", + "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", + "license": "MIT" + }, + "node_modules/jwa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", + "optional": true, + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", + "optional": true, + "dependencies": { + "jwa": "^2.0.1", + "safe-buffer": "^5.0.1" } }, - "node_modules/jiti": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", - "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "license": "MIT", - "bin": { - "jiti": "lib/jiti-cli.mjs" + "engines": { + "node": ">=0.10.0" } }, "node_modules/lightningcss": { @@ -1424,150 +3598,505 @@ ], "license": "MPL-2.0", "optional": true, - "os": [ - "linux" - ], + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/linkify-it": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-6.1.0.tgz", + "integrity": "sha512-wJ/TwpSDTLepCrQoYWYIExIKg5Zchex2Nn5yk2mFnB+6PtdkHtyLx742md9csRjjOnGkKIS/RrbY7l8D6gT9Vw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/markdown-it" + } + ], + "license": "MIT", + "dependencies": { + "uc.micro": "^3.0.0" + } + }, + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0", + "optional": true + }, + "node_modules/lovely-mermaid": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/lovely-mermaid/-/lovely-mermaid-0.3.3.tgz", + "integrity": "sha512-EMLJS934qwt2MLO/a5o+T/89HGbuXZPwmCpHIhHO+DVrm+y5tHlEHgpZzlC2o4yW/rFPHRFO9xSMafzqH4wH5A==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=18" + } + }, + "node_modules/lru-cache": { + "version": "11.5.4", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.4.tgz", + "integrity": "sha512-B8nJCTi8JuSaDBg0tBdnImV6j5O2CXaqKfdj24ZTCFbyivN8KZ2Z+RL3aHjwJAfLutD9cNnObG4SIgW4gMufiw==", + "license": "BlueOak-1.0.0", + "optional": true, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/lucide-react": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.17.0.tgz", + "integrity": "sha512-9FA9evdox/JQL5PT57fdA1x/yg8T7knJ98+zjTL3UfKza6pflQUUh3XtaQIHKvnsJw1lmsEyHVlt5jchYxOQ5w==", + "license": "ISC", + "peerDependencies": { + "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/marked": { + "version": "18.0.11", + "resolved": "https://registry.npmjs.org/marked/-/marked-18.0.11.tgz", + "integrity": "sha512-HnslJfsZkRPBDJRHvVtAaWlZHEpSu7u8LgQuJCELjRKuWR+hpq4A7sLq3p8HaI9ypVoXDXxV34CsQJEe1+J5Aw==", + "license": "MIT", + "optional": true, + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/marked-cjk-friendly": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/marked-cjk-friendly/-/marked-cjk-friendly-0.1.2.tgz", + "integrity": "sha512-GUj8HjiEbur9yhgUo52FBgKizggF1QtT6gVdrYdWW6ZB4lVVjgS3EyyXPyfyRD0V4ghGRPlO7MO80rgSWbm0eA==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "marked": ">=15.0.0" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz", + "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/merge-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "optional": true, + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/minimatch": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.3.tgz", + "integrity": "sha512-iny/40PEGkNJQ5/Pv6z3nm6FbRAby32GeZRjCUJk2WnNDbgPSTcdI+DDvLqsgBdD4cD5sMtMheqPPnehCCa8Nw==", + "license": "BlueOak-1.0.0", + "optional": true, + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.0.3", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT", + "optional": true + }, + "node_modules/nanoid": { + "version": "3.3.18", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz", + "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/negotiator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", + "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==", + "license": "MIT", + "optional": true, + "dependencies": { + "content-type": "^2.1.0" + }, "engines": { - "node": ">= 12.0.0" + "node": ">=18" }, "funding": { "type": "opencollective", - "url": "https://opencollective.com/parcel" + "url": "https://opencollective.com/express" } }, - "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", - "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", - "cpu": [ - "x64" - ], - "license": "MPL-2.0", + "node_modules/negotiator/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">= 12.0.0" + "node": ">=18" }, "funding": { "type": "opencollective", - "url": "https://opencollective.com/parcel" + "url": "https://opencollective.com/express" } }, - "node_modules/lightningcss-linux-x64-musl": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", - "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", - "cpu": [ - "x64" + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "deprecated": "Use your platform's native DOMException instead", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } ], - "license": "MPL-2.0", + "license": "MIT", "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">= 12.0.0" + "node": ">=10.5.0" + } + }, + "node_modules/node-fetch": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "license": "MIT", + "optional": true, + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { "type": "opencollective", - "url": "https://opencollective.com/parcel" + "url": "https://opencollective.com/node-fetch" } }, - "node_modules/lightningcss-win32-arm64-msvc": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", - "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", - "cpu": [ - "arm64" - ], - "license": "MPL-2.0", + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", "optional": true, - "os": [ - "win32" - ], "engines": { - "node": ">= 12.0.0" + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.14.0.tgz", + "integrity": "sha512-IVgHNlp/jwQX271+Xzoq9LZNTWXxZK+cEOrGBOBxXNbn7fapnZ+Ts6TVMgNOuAezwG2wdtnMX97tTPK6VEnuOQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.4" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/lightningcss-win32-x64-msvc": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", - "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", - "cpu": [ - "x64" - ], - "license": "MPL-2.0", + "node_modules/on-finished": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.2.tgz", + "integrity": "sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==", + "license": "MIT", "optional": true, - "os": [ - "win32" - ], + "dependencies": { + "ee-first": "1.1.1" + }, "engines": { - "node": ">= 12.0.0" + "node": ">= 0.8" }, "funding": { "type": "opencollective", - "url": "https://opencollective.com/parcel" + "url": "https://opencollective.com/express" } }, - "node_modules/linkify-it": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-6.1.0.tgz", - "integrity": "sha512-wJ/TwpSDTLepCrQoYWYIExIKg5Zchex2Nn5yk2mFnB+6PtdkHtyLx742md9csRjjOnGkKIS/RrbY7l8D6gT9Vw==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/markdown-it" - } - ], - "license": "MIT", + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "optional": true, "dependencies": { - "uc.micro": "^3.0.0" + "wrappy": "1" } }, - "node_modules/lucide-react": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.17.0.tgz", - "integrity": "sha512-9FA9evdox/JQL5PT57fdA1x/yg8T7knJ98+zjTL3UfKza6pflQUUh3XtaQIHKvnsJw1lmsEyHVlt5jchYxOQ5w==", - "license": "ISC", + "node_modules/openai": { + "version": "7.59.0", + "resolved": "https://registry.npmjs.org/openai/-/openai-7.59.0.tgz", + "integrity": "sha512-wPYKJkLPFEdNJ2tThSg4jE1Ptsv4X3u8g8LIvu0Qz/UIhsKeCzl73rl48PtQsDVrJL/ku0liXOsbyd2TsRsPJw==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=22.0.0" + }, "peerDependencies": { - "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + "@aws-sdk/credential-provider-node": ">=3.972.0 <4", + "@smithy/hash-node": ">=4.3.0 <5", + "@smithy/signature-v4": ">=5.4.0 <6", + "google-auth-library": ">=9.15.1 <12", + "undici": ">=5 <9", + "ws": "^8.21.0", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@aws-sdk/credential-provider-node": { + "optional": true + }, + "@smithy/hash-node": { + "optional": true + }, + "@smithy/signature-v4": { + "optional": true + }, + "google-auth-library": { + "optional": true + }, + "undici": { + "optional": true + }, + "ws": { + "optional": true + }, + "zod": { + "optional": true + } } }, - "node_modules/magic-string": { - "version": "0.30.21", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", - "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "node_modules/p-retry": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", + "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", "license": "MIT", + "optional": true, "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.5" + "@types/retry": "0.12.0", + "retry": "^0.13.1" + }, + "engines": { + "node": ">=8" } }, - "node_modules/nanoid": { - "version": "3.3.18", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz", - "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, + "optional": true, "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + "node": ">= 0.8" + } + }, + "node_modules/partial-json": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/partial-json/-/partial-json-0.1.7.tgz", + "integrity": "sha512-Njv/59hHaokb/hRUjce3Hdv12wd60MtM9Z5Olmn+nehe0QDAsRtRbJPvJ0Z91TusF0SuZRIvnM+S4l6EIP8leA==", + "license": "MIT", + "optional": true + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-to-regexp": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", + "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", + "license": "MIT", + "optional": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/picocolors": { @@ -1588,6 +4117,16 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pkce-challenge": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.2.tgz", + "integrity": "sha512-vCc54+qyIfKC5e2UN28AZKElwqjLINgiIV3RKI8pDu93TjaAJoB3QrgMzEBouy8yOKsXVXdAinO1QArJf9x5WA==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=16.20.0" + } + }, "node_modules/playwright": { "version": "1.62.1", "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.62.1.tgz", @@ -1655,21 +4194,157 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.17", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" + "nanoid": "^3.3.17", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/proper-lockfile": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz", + "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==", + "license": "MIT", + "optional": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "retry": "^0.12.0", + "signal-exit": "^3.0.2" + } + }, + "node_modules/proper-lockfile/node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/protobufjs": { + "version": "7.6.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.6.tgz", + "integrity": "sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "optional": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.5", + "@protobufjs/eventemitter": "^1.1.1", + "@protobufjs/fetch": "^1.1.1", + "@protobufjs/float": "^1.0.2", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.1", + "@types/node": ">=13.7.0", + "long": "^5.3.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz", + "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/proxy-agent-negotiate": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-agent-negotiate/-/proxy-agent-negotiate-1.1.0.tgz", + "integrity": "sha512-N8IBcM3UgCVzz2L2Lqv8DVntDnnC8/hiV4nEDUPkqq72TPUgYWjQc+bdZlBPZK9LzPAvOY//gAt0S0DApoOXWQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 20" + }, + "peerDependencies": { + "kerberos": "^2.0.0" + }, + "peerDependenciesMeta": { + "kerberos": { + "optional": true + } + } + }, + "node_modules/qs": { + "version": "6.17.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz", + "integrity": "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==", + "license": "BSD-3-Clause", + "optional": true, + "dependencies": { + "es-define-property": "^1.0.1", + "side-channel": "^1.1.1" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/quickjs-wasi": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/quickjs-wasi/-/quickjs-wasi-3.6.2.tgz", + "integrity": "sha512-FCqGtGOrMgzUiIrMNMA2YnsOxCNwo31dzqXvclXUC6xeT35NJLKXQJsvbeCTjvoFAwZgEAPg8U6+KAPDGXn8Mg==", + "license": "MIT", + "optional": true + }, + "node_modules/range-parser": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz", + "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/raw-body": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", + "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", + "license": "MIT", + "optional": true, + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" }, "engines": { - "node": "^10 || ^12 || >=14" + "node": ">= 0.10" } }, - "node_modules/postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", - "dev": true, - "license": "MIT" - }, "node_modules/react": { "version": "19.2.6", "resolved": "https://registry.npmjs.org/react/-/react-19.2.6.tgz", @@ -1766,12 +4441,32 @@ "redux": "^5.0.0" } }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/reselect": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz", "integrity": "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==", "license": "MIT" }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 4" + } + }, "node_modules/rolldown": { "version": "1.2.14", "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.14.tgz", @@ -1805,12 +4500,114 @@ "@rolldown/binding-win32-x64-msvc": "1.2.14" } }, + "node_modules/router": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/router/-/router-2.3.0.tgz", + "integrity": "sha512-bpowRfGjEPe8t9R6fJIzhwmyCGAXwKvxBUsgJm+bJukwdcWmUXbMo7p22w7aYmQBPQTUMNqMV39YX0kMou3z8w==", + "license": "MIT", + "optional": true, + "dependencies": { + "debug": "^4.4.0", + "depd": "^2.0.0", + "is-promise": "^4.0.0", + "parseurl": "^1.3.3", + "path-to-regexp": "^8.0.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "optional": true + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT", + "optional": true + }, "node_modules/scheduler": { "version": "0.27.0", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", "license": "MIT" }, + "node_modules/section-matter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", + "integrity": "sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==", + "license": "MIT", + "dependencies": { + "extend-shallow": "^2.0.1", + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "license": "ISC", + "optional": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", + "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "debug": "^4.4.3", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.1", + "mime-types": "^3.0.2", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, "node_modules/seroval": { "version": "1.7.3", "resolved": "https://registry.npmjs.org/seroval/-/seroval-1.7.3.tgz", @@ -1832,6 +4629,137 @@ "seroval": "^1.0" } }, + "node_modules/serve-static": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", + "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", + "license": "MIT", + "optional": true, + "dependencies": { + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC", + "optional": true + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", + "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4", + "side-channel-list": "^1.0.1", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", + "license": "MIT", + "optional": true, + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "optional": true, + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "optional": true, + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC", + "optional": true + }, "node_modules/source-map-js": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", @@ -1841,6 +4769,55 @@ "node": ">=0.10.0" } }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "license": "BSD-3-Clause" + }, + "node_modules/standardwebhooks": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.4.1.tgz", + "integrity": "sha512-K1p/g4/3BBh3lQE/u9F3Oa5Do2+pN35JUaxJf2UL8I13tZpV22SZ+JPbgelyD/pikkjrRj9cNBB2rbKwpg0GFA==", + "license": "MIT", + "optional": true, + "dependencies": { + "@stablelib/base64": "^1.0.1", + "@stablelib/ed25519": "^1.0.3", + "fast-sha256": "^1.3.0" + } + }, + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/strip-bom-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", + "integrity": "sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-json-comments": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-5.1.0.tgz", + "integrity": "sha512-ErcwpJBYr8EfX/Br7JauOIGXoRE92w0hVtuS9j92UFgbATxA+WRSIZksSUDzEeItfWB/0QCEprTZT55RSINUHQ==", + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/tailwind-merge": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.6.0.tgz", @@ -1892,6 +4869,23 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/ts-algebra": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ts-algebra/-/ts-algebra-2.0.0.tgz", + "integrity": "sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==", + "license": "MIT", + "optional": true + }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", @@ -1899,6 +4893,46 @@ "license": "0BSD", "optional": true }, + "node_modules/type-is": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz", + "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==", + "license": "MIT", + "optional": true, + "dependencies": { + "content-type": "^2.0.0", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/type-is/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/typebox": { + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/typebox/-/typebox-1.4.7.tgz", + "integrity": "sha512-KonYdBj3gOgG/rH96TlUs/f+eaEDqiKRW7KU4/LE/tEjEnRCcfpYLofBfHfNMBAiBosmY55e4YeCPuE+NXmJtg==", + "license": "MIT", + "optional": true + }, "node_modules/typescript": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", @@ -1919,6 +4953,32 @@ "integrity": "sha512-U3PppEkleoTnIfi8BozMx3yju3qc/L6SwqWo2Sw+54PX+PX0q9I+r1Um5HCmqD7n9VDX5/v3vQH/AjA6deDdtw==", "license": "MIT" }, + "node_modules/undici": { + "version": "8.12.4", + "resolved": "https://registry.npmjs.org/undici/-/undici-8.12.4.tgz", + "integrity": "sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==", + "license": "MIT", + "engines": { + "node": ">=22.19.0" + } + }, + "node_modules/undici-types": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz", + "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==", + "license": "MIT", + "optional": true + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/use-sync-external-store": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz", @@ -1928,6 +4988,16 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/victory-vendor": { "version": "37.3.6", "resolved": "https://registry.npmjs.org/victory-vendor/-/victory-vendor-37.3.6.tgz", @@ -2288,6 +5358,76 @@ "url": "https://opencollective.com/parcel" } }, + "node_modules/web-streams-polyfill": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", + "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC", + "optional": true + }, + "node_modules/ws": { + "version": "8.23.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.23.1.tgz", + "integrity": "sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/yaml": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz", + "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==", + "license": "ISC", + "optional": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, "node_modules/zod": { "version": "4.6.6", "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.6.tgz", @@ -2296,6 +5436,16 @@ "funding": { "url": "https://github.com/sponsors/colinhacks" } + }, + "node_modules/zod-to-json-schema": { + "version": "3.25.2", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz", + "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==", + "license": "ISC", + "optional": true, + "peerDependencies": { + "zod": "^3.25.28 || ^4" + } } } } diff --git a/apps/presentation/dashboard/package.json b/apps/presentation/dashboard/package.json index c8a1196da2..a6d0083e94 100644 --- a/apps/presentation/dashboard/package.json +++ b/apps/presentation/dashboard/package.json @@ -24,6 +24,7 @@ "preview": "vite preview --host 127.0.0.1", "smoke:action-packet": "rm -rf /tmp/loopx-action-packet-smoke && tsc --ignoreConfig --target ES2022 --module NodeNext --moduleResolution NodeNext --skipLibCheck --strict --outDir /tmp/loopx-action-packet-smoke smoke/action-packet-smoke.ts src/data/action-packet.ts && node /tmp/loopx-action-packet-smoke/smoke/action-packet-smoke.js", "smoke:agent-family": "tsc --ignoreConfig --target ES2022 --module ES2022 --moduleResolution Bundler --skipLibCheck --strict --outDir node_modules/.cache/loopx-agent-family src/features/personal-workspace/agent-family.ts && node src/features/personal-workspace/agent-family.test.mjs", + "smoke:oar-observe": "tsc --noEmit --ignoreConfig --target ES2022 --module ES2022 --moduleResolution Bundler --allowImportingTsExtensions --types node --skipLibCheck --strict smoke/oar-observe-smoke.ts src/data/oar-observe.ts && vite build --ssr smoke/oar-observe-smoke.ts --outDir node_modules/.cache/loopx-oar-observe-smoke --emptyOutDir && node node_modules/.cache/loopx-oar-observe-smoke/oar-observe-smoke.js", "smoke:benchmark-study": "rm -rf node_modules/.cache/loopx-benchmark-study-smoke && tsc --ignoreConfig --target ES2022 --module NodeNext --moduleResolution NodeNext --skipLibCheck --strict --resolveJsonModule --outDir node_modules/.cache/loopx-benchmark-study-smoke smoke/benchmark-study-contract-smoke.ts src/data/benchmark-study.ts && node node_modules/.cache/loopx-benchmark-study-smoke/smoke/benchmark-study-contract-smoke.js", "smoke:benchmark-study-browser": "node ../../../examples/dashboard-benchmark-study-browser-smoke.mjs", "smoke:capability-configuration": "rm -rf node_modules/.cache/loopx-capability-configuration-smoke && tsc --ignoreConfig --target ES2022 --module NodeNext --moduleResolution NodeNext --types node --skipLibCheck --strict --outDir node_modules/.cache/loopx-capability-configuration-smoke smoke/capability-configuration-smoke.ts src/data/capability-configuration.ts && node node_modules/.cache/loopx-capability-configuration-smoke/smoke/capability-configuration-smoke.js", @@ -99,6 +100,7 @@ "smoke:delegation-cancel": "LOOPX_PLAYWRIGHT_PACKAGE=\"$PWD/node_modules/playwright\" node --experimental-strip-types smoke/delegation-read-cancel.ts" }, "dependencies": { + "@botiverse/oar": "0.142.0", "@fontsource-variable/geist": "^5.3.0", "@fontsource-variable/geist-mono": "^5.3.0", "@tailwindcss/vite": "^4.3.0", diff --git a/apps/presentation/dashboard/smoke/oar-observe-smoke.ts b/apps/presentation/dashboard/smoke/oar-observe-smoke.ts new file mode 100644 index 0000000000..05300f1acc --- /dev/null +++ b/apps/presentation/dashboard/smoke/oar-observe-smoke.ts @@ -0,0 +1,83 @@ +import assert from "node:assert/strict"; +import type { RawEvent } from "@botiverse/oar/browser"; +import { + canonicalOarBrandId, + classifyTool, + formatOarTurnFailure, + getOarRuntimeConfigForm, + listOarRuntimeBrands, + listOarRuntimeConfigForms, + reduceOarRecordsToView, + resolveOarRuntimeBrand, + toolActionLabel, +} from "../src/data/oar-observe.ts"; + +// 1) All 16 OAR brands resolve offline with SVG icons in both light & dark themes. +const lightBrands = listOarRuntimeBrands("light"); +const darkBrands = listOarRuntimeBrands("dark"); +assert.equal(lightBrands.length, 16); +assert.equal(darkBrands.length, 16); + +assert.equal(canonicalOarBrandId("deepseek_harness_segment"), "dsh"); +assert.equal(canonicalOarBrandId("claude-code"), "claude"); +assert.equal(canonicalOarBrandId("agy-cli"), "antigravity"); +assert.equal(canonicalOarBrandId("droid"), "factory"); +assert.equal(canonicalOarBrandId("unknown-custom"), null); + +const codexDark = resolveOarRuntimeBrand("codex-cli", "dark"); +assert.ok(codexDark); +assert.equal(codexDark.id, "codex"); +assert.equal(codexDark.name, "Codex"); +assert.ok(codexDark.icon?.startsWith("data:image/svg+xml,")); + +// 2) Declarative OAR runtime config forms resolve cleanly. +const forms = listOarRuntimeConfigForms(); +assert.ok(typeof forms === "object" && forms !== null); +for (const key of Object.keys(forms)) { + assert.ok(getOarRuntimeConfigForm(key) !== null); +} + +// 3) Pure @botiverse/oar/observe fold reduces RawEvent[] cleanly in browser-safe code. +const records: RawEvent[] = [ + { + sessionId: "sess-ui-1", + agentPath: [], + seq: 0, + receivedAt: 1_700_000_000_000, + kind: "frame", + body: { + type: "scripted/turn", + native: {}, + events: [ + { kind: "turn_active" }, + { kind: "text_delta", text: "All tests passed." }, + { kind: "turn_ended", outcome: { kind: "completed" } }, + ], + }, + }, +]; +const snapshot = reduceOarRecordsToView("sess-ui-1", records, "codex"); +assert.equal(snapshot.view.rootSessionId, "sess-ui-1"); +assert.equal(snapshot.status.kind, "idle"); +assert.ok(snapshot.view.messages.length >= 1); + +const action = classifyTool("claude", "Read", '{"file_path":"README.md"}'); +assert.equal(action.kind, "read_file"); +assert.equal(action.detail, "README.md"); +assert.ok(toolActionLabel(action.kind, "done").length > 0); + +// 4) Failure advice formatting preserves OAR recovery semantics. +const formatted = formatOarTurnFailure( + { + kind: "failed", + failure: "rate_limited", + reason: "429 too many requests", + status: 429, + }, + "Codex", +); +assert.ok(formatted.text.length > 0); +assert.equal(formatted.advice.retry, "now"); +assert.equal(formatted.advice.userAction, false); + +console.log("Dashboard OAR observe/brands/forms smoke passed"); diff --git a/apps/presentation/dashboard/src/data/oar-observe.ts b/apps/presentation/dashboard/src/data/oar-observe.ts new file mode 100644 index 0000000000..a2871638ae --- /dev/null +++ b/apps/presentation/dashboard/src/data/oar-observe.ts @@ -0,0 +1,202 @@ +/** + * Browser-safe OAR observability, branding, and runtime configuration form + * adapter for LoopX Dashboard. + * + * Imports ONLY browser-safe `@botiverse/oar` subpaths (`@botiverse/oar/observe`, + * `@botiverse/oar/brands`, `@botiverse/oar/forms`) with zero Node built-ins. + */ +import type { RawEvent, TurnOutcome } from "@botiverse/oar/browser"; +import { + runtimeBrandIcon, + runtimeBrands, + type RuntimeBrand, +} from "@botiverse/oar/brands"; +import { + configForms, + type RuntimeConfigForm, +} from "@botiverse/oar/forms"; +import { + classifyTool, + contextUsageOf, + failureAdvice, + failureText, + groupToolActivity, + initialConversation, + initialSessionView, + initialTaskState, + noticeText, + noticeTone, + observeStalls, + phaseLabel, + reduceConversation, + reduceSessionView, + reduceTaskState, + statusOf, + taskStatusLabel, + toolActionLabel, + toolGroupSummary, + usageOf, + type AgentStatus, + type ConversationState, + type FailureAdvice, + type SessionView, + type StallInfo, + type TaskState, +} from "@botiverse/oar/observe"; + +export type OarThemeMode = "light" | "dark"; + +export interface OarRuntimeBrandSummary { + readonly id: string; + readonly name: string; + readonly icon: string | null; +} + +export interface OarReducedSessionSnapshot { + readonly view: SessionView; + readonly conversation: ConversationState; + readonly tasks: TaskState; + readonly status: AgentStatus; + readonly phaseText: string; + readonly usage: ReturnType["value"]; + readonly contextUsage: ReturnType["value"]; +} + +const RUNTIME_BRAND_ALIASES: Readonly> = { + codex: "codex", + "codex-cli": "codex", + codex_cli: "codex", + claude: "claude", + "claude-code": "claude", + claude_code: "claude", + dsh: "dsh", + "deepseek-harness": "dsh", + deepseek_harness: "dsh", + deepseek_harness_segment: "dsh", + pi: "pi", + "pi-cli": "pi", + "pi-durable": "pi-durable", + pi_durable: "pi-durable", + opencode: "opencode", + opencode2: "opencode", + antigravity: "antigravity", + "antigravity-cli": "antigravity", + "agy-cli": "antigravity", + agy: "antigravity", + kimi: "kimi", + "kimi-cli": "kimi", + qwen: "qwen", + devin: "devin", + factory: "factory", + droid: "factory", + grok: "grok", + codebuddy: "codebuddy", + qoder: "qoder", + qodercli: "qoder", + cursor: "cursor", + "cursor-cli": "cursor", + bottega: "bottega", +}; + +/** Normalize a LoopX agent_id or adapter alias onto its canonical OAR brand key. */ +export function canonicalOarBrandId(rawId: string): keyof typeof runtimeBrands | null { + const token = rawId.trim().toLowerCase(); + return RUNTIME_BRAND_ALIASES[token] ?? null; +} + +/** Resolve offline SVG brand icon + display label for any OAR runtime or alias. */ +export function resolveOarRuntimeBrand( + runtimeOrAgentId: string, + theme: OarThemeMode = "light", +): OarRuntimeBrandSummary | null { + const canonical = canonicalOarBrandId(runtimeOrAgentId); + if (!canonical) return null; + const brand = runtimeBrands[canonical] as RuntimeBrand; + return { + id: canonical, + name: brand.name, + icon: runtimeBrandIcon(brand, theme), + }; +} + +/** Return all 16 OAR built-in runtime brands resolved for the active theme. */ +export function listOarRuntimeBrands(theme: OarThemeMode = "light"): readonly OarRuntimeBrandSummary[] { + return (Object.keys(runtimeBrands) as (keyof typeof runtimeBrands)[]).map((id) => { + const brand = runtimeBrands[id] as RuntimeBrand; + return { + id, + name: brand.name, + icon: runtimeBrandIcon(brand, theme), + }; + }); +} + +/** Look up OAR's declarative configuration form schema for a runtime ID or alias. */ +export function getOarRuntimeConfigForm(runtimeOrAgentId: string): RuntimeConfigForm | null { + const canonical = canonicalOarBrandId(runtimeOrAgentId); + if (!canonical) return null; + return configForms[canonical] ?? null; +} + +/** Return all declared OAR runtime configuration forms indexed by runtime ID. */ +export function listOarRuntimeConfigForms(): Readonly> { + return configForms; +} + +/** + * Pure fold from OAR `RawEvent[]` records into Dashboard-ready session view, + * conversation transcript, task state, agent status, and usage projections. + */ +export function reduceOarRecordsToView( + sessionId: string, + records: readonly RawEvent[], + runtimeId?: string, +): OarReducedSessionSnapshot { + let view = initialSessionView(sessionId); + let conversation = initialConversation(); + let tasks = initialTaskState(); + for (const record of records) { + view = reduceSessionView(view, record, sessionId); + conversation = reduceConversation(conversation, record, sessionId); + tasks = reduceTaskState(tasks, record); + } + const status = statusOf(records, sessionId).value; + const phase = status.kind === "running" ? phaseLabel(status.phase, runtimeId) : status.kind; + return { + view, + conversation, + tasks, + status, + phaseText: phase, + usage: usageOf(records, sessionId).value, + contextUsage: contextUsageOf(records, sessionId).value, + }; +} + +/** Format a failed OAR `TurnOutcome` into user-safe message + typed recovery advice. */ +export function formatOarTurnFailure( + outcome: Extract, + runtimeName = "Agent", +): { + readonly text: string; + readonly advice: FailureAdvice; +} { + const credential = "credential" in outcome ? outcome.credential : undefined; + return { + text: failureText(outcome.failure, runtimeName, credential), + advice: failureAdvice(outcome.failure), + }; +} + +export { + classifyTool, + groupToolActivity, + noticeText, + noticeTone, + observeStalls, + phaseLabel, + taskStatusLabel, + toolActionLabel, + toolGroupSummary, + type StallInfo, +}; diff --git a/apps/presentation/dashboard/src/features/personal-workspace/agent-family.ts b/apps/presentation/dashboard/src/features/personal-workspace/agent-family.ts index bd84753407..6ab6aaa1fe 100644 --- a/apps/presentation/dashboard/src/features/personal-workspace/agent-family.ts +++ b/apps/presentation/dashboard/src/features/personal-workspace/agent-family.ts @@ -20,11 +20,25 @@ export const AGENT_FAMILY_ROOTS = [ "coco", "openai", "anthropic", + "dsh", + "pi", + "opencode", + "antigravity", + "agy", + "kimi", + "qwen", + "devin", + "factory", + "grok", + "codebuddy", + "qoder", + "cursor", + "bottega", ] as const; export type AgentFamilyRoot = (typeof AGENT_FAMILY_ROOTS)[number]; -const GENERIC_ADAPTER_KINDS = new Set(["acp", "status_projection"]); +const GENERIC_ADAPTER_KINDS = new Set(["acp", "oar_runtime", "status_projection"]); /** Return the bounded family root for an id, or the normalized id itself. */ export function agentFamily(agentId: string): string { diff --git a/loopx/control_plane/oar/control_plane_mcp.ts b/loopx/control_plane/oar/control_plane_mcp.ts index 34a27e7fca..d4661ed910 100644 --- a/loopx/control_plane/oar/control_plane_mcp.ts +++ b/loopx/control_plane/oar/control_plane_mcp.ts @@ -22,6 +22,10 @@ import { randomUUID } from "node:crypto"; import type { HostTool, HostToolResult, McpServer, ServedMcpTools } from "@botiverse/oar"; import { SqliteAuthorityStore } from "../coordination/sqlite_authority_store.ts"; +import { executeCanonicalTaskLeaseAcquire } from "../coordination/task_lease_acquire.ts"; +import { executeCoordinationTodoClaim } from "../coordination/todo_claim.ts"; +import { executeCoordinationTodoTerminalLifecycle } from "../coordination/todo_terminal_lifecycle.ts"; +import { TaskLeaseAcquireError } from "../work_items/task_lease_acquire.ts"; import { assertLoopbackHttpUrl, postLoopbackJson } from "./loopback_http.ts"; export interface TurnCapabilityGrantInput { @@ -229,6 +233,49 @@ export class LoopxControlPlaneMcpBridge { return { ok: true, grant }; } + private requireActiveWriteGrant( + signal: AbortSignal, + ): + | { readonly ok: true; readonly grant: ActiveTurnGrant; readonly store: SqliteAuthorityStore } + | { readonly ok: false; readonly denied: HostToolResult } { + const check = this.requireActiveGrant(signal); + if (!check.ok) return check; + const { grant } = check; + if (!grant.allowWrite) { + return { + ok: false, + denied: jsonToolResult( + { + ok: false, + error_code: "turn_write_not_permitted", + message: "Active turn capability grant is read-only and cannot mutate canonical authority.", + }, + true, + ), + }; + } + if (!grant.sqliteAuthorityDir) { + return { + ok: false, + denied: jsonToolResult( + { + ok: false, + error_code: "authority_store_not_bound", + message: "This turn grant has no bound SQLite authority directory.", + }, + true, + ), + }; + } + return { + ok: true, + grant, + store: new SqliteAuthorityStore(grant.sqliteAuthorityDir, grant.goalId, { + existingOnly: true, + }), + }; + } + private buildTools(): HostTool[] { const builtinTools: HostTool[] = [ { @@ -349,6 +396,262 @@ export class LoopxControlPlaneMcpBridge { }); }, }, + { + name: "loopx_authority_claim_todo", + description: + "Atomically claim a LoopX Todo directly against the canonical SQLite authority store in-process (requires write turn grant).", + inputSchema: { + type: "object", + properties: { + todo_id: { type: "string" }, + operation_id: { type: "string" }, + claimed_by: { type: "string" }, + registered_agents: { type: "array", items: { type: "string" } }, + expected_role: { type: "string", enum: ["agent", "user"] }, + expected_provider_revision: { type: "string" }, + dry_run: { type: "boolean" }, + }, + required: ["todo_id", "operation_id"], + additionalProperties: false, + }, + annotations: { + title: "LoopX Authority Claim Todo", + readOnlyHint: false, + openWorldHint: false, + }, + handler: async (rawInput, { signal }) => { + const check = this.requireActiveWriteGrant(signal); + if (!check.ok) return check.denied; + const { grant, store } = check; + const args = (rawInput && typeof rawInput === "object" ? rawInput : {}) as Record; + const todoId = typeof args.todo_id === "string" ? args.todo_id.trim() : ""; + const operationId = typeof args.operation_id === "string" ? args.operation_id.trim() : ""; + if (!todoId || !operationId) { + return jsonToolResult( + { + ok: false, + error_code: "invalid_tool_arguments", + message: "todo_id and operation_id must be non-empty strings", + }, + true, + ); + } + const claimedBy = + typeof args.claimed_by === "string" && args.claimed_by.trim() + ? args.claimed_by.trim() + : grant.actorId; + const registeredAgents = Array.isArray(args.registered_agents) + ? args.registered_agents.filter((v): v is string => typeof v === "string") + : [grant.actorId]; + const expectedRole = + args.expected_role === "agent" || args.expected_role === "user" + ? args.expected_role + : null; + const expectedProviderRevision = + typeof args.expected_provider_revision === "string" + ? args.expected_provider_revision + : undefined; + const result = await executeCoordinationTodoClaim( + store, + { + goal_id: grant.goalId, + todo_id: todoId, + claimed_by: claimedBy, + actor_agent_id: grant.actorId, + expected_role: expectedRole, + registered_agents: registeredAgents, + operation_id: operationId, + ...(expectedProviderRevision !== undefined + ? { expected_provider_revision: expectedProviderRevision } + : {}), + dry_run: args.dry_run === true, + now: new Date(), + }, + async () => !grant.revoked && !grant.controller.signal.aborted && !signal.aborted, + ); + const ok = + result.status === "applied" || + result.status === "replayed" || + result.status === "dry_run"; + return jsonToolResult({ ok, result }, !ok); + }, + }, + { + name: "loopx_authority_acquire_task_lease", + description: + "Acquire or verify a canonical LoopX task write-scope lease directly against SQLite authority in-process (requires write turn grant).", + inputSchema: { + type: "object", + properties: { + todo_id: { type: "string" }, + idempotency_key: { type: "string" }, + write_scopes: { type: "array", items: { type: "string" } }, + expected_version: { type: ["integer", "null"] }, + ttl_seconds: { type: ["integer", "null"] }, + owner: { type: "string" }, + registered_agents: { type: "array", items: { type: "string" } }, + }, + required: ["todo_id", "idempotency_key", "write_scopes"], + additionalProperties: false, + }, + annotations: { + title: "LoopX Authority Acquire Task Lease", + readOnlyHint: false, + openWorldHint: false, + }, + handler: async (rawInput, { signal }) => { + const check = this.requireActiveWriteGrant(signal); + if (!check.ok) return check.denied; + const { grant, store } = check; + const args = (rawInput && typeof rawInput === "object" ? rawInput : {}) as Record; + const todoId = typeof args.todo_id === "string" ? args.todo_id.trim() : ""; + const idempotencyKey = + typeof args.idempotency_key === "string" ? args.idempotency_key.trim() : ""; + const writeScopes = Array.isArray(args.write_scopes) + ? args.write_scopes.filter((v): v is string => typeof v === "string") + : []; + if (!todoId || !idempotencyKey || writeScopes.length === 0) { + return jsonToolResult( + { + ok: false, + error_code: "invalid_tool_arguments", + message: "todo_id, idempotency_key, and non-empty write_scopes are required", + }, + true, + ); + } + const owner = + typeof args.owner === "string" && args.owner.trim() ? args.owner.trim() : grant.actorId; + const registeredAgents = Array.isArray(args.registered_agents) + ? args.registered_agents.filter((v): v is string => typeof v === "string") + : [owner]; + const expectedVersion = + typeof args.expected_version === "number" ? args.expected_version : null; + const ttlSeconds = typeof args.ttl_seconds === "number" ? args.ttl_seconds : 300; + const result = await executeCanonicalTaskLeaseAcquire( + store, + { + goal_id: grant.goalId, + todo_id: todoId, + owner, + idempotency_key: idempotencyKey, + expected_version: expectedVersion, + ttl_seconds: ttlSeconds, + write_scopes: writeScopes, + registered_agents: registeredAgents, + now: new Date(), + }, + async () => { + if (grant.revoked || grant.controller.signal.aborted || signal.aborted) { + throw new TaskLeaseAcquireError( + "turn_capability_grant_revoked", + "Turn capability grant was revoked before task lease commit.", + ); + } + }, + ); + const ok = result.status === "applied" || result.status === "replayed"; + return jsonToolResult({ ok, result }, !ok); + }, + }, + { + name: "loopx_authority_settle_todo_terminal", + description: + "Settle a LoopX Todo terminal lifecycle transition (complete or supersede) directly against SQLite authority in-process (requires write turn grant).", + inputSchema: { + type: "object", + properties: { + todo_id: { type: "string" }, + command: { type: "string", enum: ["complete", "supersede"] }, + operation_id: { type: "string" }, + expected_role: { type: "string", enum: ["agent", "user"] }, + registered_agents: { type: "array", items: { type: "string" } }, + note: { type: ["string", "null"] }, + evidence: { type: ["string", "null"] }, + reason: { type: ["string", "null"] }, + lease_idempotency_key: { type: ["string", "null"] }, + lease_expected_version: { type: ["integer", "null"] }, + clear_claim: { type: "boolean" }, + dry_run: { type: "boolean" }, + }, + required: ["todo_id", "command", "operation_id"], + additionalProperties: false, + }, + annotations: { + title: "LoopX Authority Settle Todo Terminal", + readOnlyHint: false, + openWorldHint: false, + }, + handler: async (rawInput, { signal }) => { + const check = this.requireActiveWriteGrant(signal); + if (!check.ok) return check.denied; + const { grant, store } = check; + const args = (rawInput && typeof rawInput === "object" ? rawInput : {}) as Record; + const todoId = typeof args.todo_id === "string" ? args.todo_id.trim() : ""; + const operationId = typeof args.operation_id === "string" ? args.operation_id.trim() : ""; + const command = + args.command === "complete" || args.command === "supersede" ? args.command : null; + if (!todoId || !operationId || !command) { + return jsonToolResult( + { + ok: false, + error_code: "invalid_tool_arguments", + message: "todo_id, operation_id, and command ('complete'|'supersede') are required", + }, + true, + ); + } + const expectedRole = + args.expected_role === "agent" || args.expected_role === "user" + ? args.expected_role + : "agent"; + const registeredAgents = Array.isArray(args.registered_agents) + ? args.registered_agents.filter((v): v is string => typeof v === "string") + : [grant.actorId]; + const result = await executeCoordinationTodoTerminalLifecycle( + store, + { + goal_id: grant.goalId, + todo_id: todoId, + command, + operation_identity: { kind: "explicit", operation_id: operationId }, + requested_completion_turn_key: null, + expected_role: expectedRole, + actor_agent_id: grant.actorId, + registered_agents: registeredAgents, + lifecycle_grants: [], + authority_reason: null, + decision_outcome: null, + lease_idempotency_key: + typeof args.lease_idempotency_key === "string" && args.lease_idempotency_key.trim() + ? args.lease_idempotency_key.trim() + : null, + lease_expected_version: + typeof args.lease_expected_version === "number" ? args.lease_expected_version : null, + allow_user_gate_auto_acquire: false, + requested_no_followup: false, + requested_completion_identity_source: null, + linked_successor_todo_ids: [], + successor_intents: [], + note: typeof args.note === "string" ? args.note : null, + evidence: typeof args.evidence === "string" ? args.evidence : null, + reason: typeof args.reason === "string" ? args.reason : null, + clear_claim: args.clear_claim !== false, + validation_declaration: null, + validation_receipt: null, + completion_policy_request: null, + dry_run: args.dry_run === true, + now: new Date(), + }, + async () => !grant.revoked && !grant.controller.signal.aborted && !signal.aborted, + ); + const ok = + result.status === "applied" || + result.status === "replayed" || + result.status === "dry_run"; + return jsonToolResult({ ok, result }, !ok); + }, + }, ]; const wrappedExtras: HostTool[] = this.extraTools.map((tool) => ({ diff --git a/loopx/control_plane/oar/session_host_server.ts b/loopx/control_plane/oar/session_host_server.ts index 738c8a139c..b950ca7a12 100644 --- a/loopx/control_plane/oar/session_host_server.ts +++ b/loopx/control_plane/oar/session_host_server.ts @@ -28,6 +28,7 @@ import { type DeliverPromptParams, type StreamEventSink, } from "./session_hub.ts"; +import { OarSessionSqliteStore } from "./session_sqlite_store.ts"; export const OAR_HOST_INFO_SCHEMA = "loopx_oar_session_host_info_v0"; const STARTUP_ERROR_SCHEMA = "loopx_oar_session_host_startup_error_v0"; @@ -73,8 +74,11 @@ const infoPath = parseArg("--info"); const fingerprint = parseArg("--fingerprint"); const token = requireNonEmptyString(process.env.LOOPX_OAR_HOST_TOKEN, "OAR host token"); const idleMs = parseIdleMs(process.env.LOOPX_OAR_HOST_IDLE_MS); +const sessionsDbPath = process.env.LOOPX_OAR_SESSIONS_DB?.trim() || undefined; +const legacyChatSessionsDir = process.env.LOOPX_OAR_LEGACY_CHAT_SESSIONS_DIR?.trim() || undefined; -const hub = new OarSessionHub(); +const sessionStore = sessionsDbPath ? new OarSessionSqliteStore(sessionsDbPath) : null; +const hub = new OarSessionHub({ sessionStore, legacyChatSessionsDir }); let shutdownRequested = false; let pendingRequests = 0; let idleTimer: ReturnType | undefined; @@ -121,6 +125,36 @@ async function handleMethod( return hub.listRuntimes(); case "oar.list_sessions": return hub.listSessions(); + case "oar.list_persisted_sessions": { + const statusRaw = typeof params.status === "string" ? params.status : undefined; + if (statusRaw !== undefined && statusRaw !== "open" && statusRaw !== "closed") { + throw new EffectRuntimeRequestError( + "status must be 'open' or 'closed'", + "invalid_request", + ); + } + return hub.listPersistedSessions({ + ...(typeof params.limit === "number" ? { limit: params.limit } : {}), + ...(statusRaw ? { status: statusRaw } : {}), + }); + } + case "oar.read_persisted_session": + return hub.readPersistedSession( + requireNonEmptyString(params.session_key ?? params.sessionKey, "session_key"), + { + ...(typeof (params.after_seq ?? params.afterSeq) === "number" + ? { afterSeq: Number(params.after_seq ?? params.afterSeq) } + : {}), + ...(typeof params.limit === "number" ? { limit: params.limit } : {}), + ...(typeof (params.legacy_chat_sessions_dir ?? params.legacyChatSessionsDir) === "string" + ? { + legacyChatSessionsDir: String( + params.legacy_chat_sessions_dir ?? params.legacyChatSessionsDir, + ), + } + : {}), + }, + ); case "oar.probe_runtime": return hub.probeRuntime(requireNonEmptyString(params.runtime_id, "runtime_id"), { ...(typeof params.cwd === "string" ? { cwd: params.cwd } : {}), @@ -391,6 +425,7 @@ server.on("close", () => { }); } await hub.disposeAll(); + sessionStore?.close(); await retireRuntime({ infoPath, token, pid: process.pid, fingerprint }); })().finally(() => process.exit(0)); }); diff --git a/loopx/control_plane/oar/session_hub.ts b/loopx/control_plane/oar/session_hub.ts index 4a9b2d6381..20e35a937a 100644 --- a/loopx/control_plane/oar/session_hub.ts +++ b/loopx/control_plane/oar/session_hub.ts @@ -74,6 +74,7 @@ import { buildLoopxSessionOptions, type LoopxPermissionMode, } from "./session_policy.ts"; +import { OarSessionSqliteStore } from "./session_sqlite_store.ts"; export interface OpenOarSessionParams { readonly sessionKey?: string; @@ -935,11 +936,15 @@ export class OarSessionHub { private readonly pendingSessionKeys = new Set(); private readonly resolveRuntime: RuntimeResolver; private readonly maxBufferedRecords: number; + private readonly sessionStore: OarSessionSqliteStore | null; + private readonly legacyChatSessionsDir: string | undefined; private readonly startedAtMs = Date.now(); constructor(options: { readonly runtimeResolver?: RuntimeResolver; readonly maxBufferedRecords?: number; + readonly sessionStore?: OarSessionSqliteStore | null; + readonly legacyChatSessionsDir?: string; } = {}) { this.resolveRuntime = options.runtimeResolver ?? (async (rawId: string): Promise => { const id: OarBuiltinRuntimeId | null = resolveOarRuntimeId(rawId); @@ -952,6 +957,8 @@ export class OarSessionHub { return loadOarRuntime(id); }); this.maxBufferedRecords = Math.max(64, options.maxBufferedRecords ?? DEFAULT_MAX_BUFFERED_RECORDS); + this.sessionStore = options.sessionStore ?? null; + this.legacyChatSessionsDir = options.legacyChatSessionsDir; } get activeSessionCount(): number { @@ -981,6 +988,7 @@ export class OarSessionHub { loaded_runtimes: loadedOarRuntimeIds(), rss_bytes: mem.rss, heap_used_bytes: mem.heapUsed, + sessions_db_path: this.sessionStore?.dbPath ?? null, process_containment: { platform: process.platform, windows_job_object_supported: process.platform === "win32", @@ -1087,6 +1095,7 @@ export class OarSessionHub { let mcpBridge: LoopxControlPlaneMcpBridge | null = null; let openedSession: Session | null = null; let dshBudgetOverlay: DshMaxTokensOverlay | null = null; + let persistedSessionRow = false; try { const isScripted = params.runtimeId === "scripted" && @@ -1210,6 +1219,19 @@ export class OarSessionHub { cleanupOverlay: dshBudgetOverlay?.cleanup ?? null, }; + this.sessionStore?.upsertSession({ + sessionKey, + runtimeId: runtime.id, + nativeSessionId: session.id, + cwd: params.cwd, + permissionMode: params.permissionMode ?? "workspace_write", + model: session.model().value ?? params.model ?? null, + effort: session.effort().value ?? params.effort ?? null, + serviceTier: session.serviceTier().value ?? params.serviceTier ?? null, + openedAtMs: entry.openedAtMs, + }); + persistedSessionRow = this.sessionStore !== null; + const unsub = session.rawEvents( (record: RawEvent) => { entry.lastActivityMs = Date.now(); @@ -1221,12 +1243,18 @@ export class OarSessionHub { entry.view = reduceSessionView(entry.view, sanitized, session.id); entry.conversation = reduceConversation(entry.conversation, sanitized, session.id); entry.tasks = reduceTaskState(entry.tasks, sanitized); + try { + this.sessionStore?.appendRecord(sessionKey, session.id, sanitized); + } catch { + // Persistence failure must never interrupt live session reduction. + } }, { sessionId: session.id, afterSeq: -1 }, ); (entry as { unsubscribe: () => void }).unsubscribe = unsub; this.sessions.set(sessionKey, entry); openedSession = null; + persistedSessionRow = false; const snapshotRecords = typeof session.records === "function" ? session.records() : entry.records; @@ -1254,6 +1282,13 @@ export class OarSessionHub { if (openedSession) { await openedSession.dispose().catch(() => {}); } + if (persistedSessionRow) { + try { + this.sessionStore?.markSessionClosed(sessionKey); + } catch { + // Best-effort cleanup of half-opened session row. + } + } dshBudgetOverlay?.cleanup(); if (mcpBridge) { await mcpBridge.close().catch(() => {}); @@ -1393,6 +1428,11 @@ export class OarSessionHub { ); } } + const reservationId = this.sessionStore?.createSteeringReservation({ + sessionKey: entry.sessionKey, + inputId: normalizedInputId ?? null, + expectedTurnId: params.expectedTurnId ?? activeTurnId ?? null, + }) ?? null; try { if (params.requireSteer === true) { if (typeof entry.session.steer !== "function") { @@ -1417,6 +1457,9 @@ export class OarSessionHub { "oar_turn_mismatch", ); } + if (reservationId) { + this.sessionStore?.settleSteeringReservation(reservationId, "steered"); + } return { schema_version: "loopx_oar_steer_result_v0", session_key: entry.sessionKey, @@ -1428,6 +1471,13 @@ export class OarSessionHub { params.input, normalizedInputId !== undefined ? { inputId: normalizedInputId } : undefined, ); + if (reservationId) { + const landed = + result && typeof result === "object" && "landed" in result && result.landed === "steered" + ? "steered" + : "queued"; + this.sessionStore?.settleSteeringReservation(reservationId, landed); + } return { schema_version: "loopx_oar_steer_result_v0", session_key: entry.sessionKey, @@ -1435,6 +1485,13 @@ export class OarSessionHub { result, }; } catch (error) { + if (reservationId) { + try { + this.sessionStore?.settleSteeringReservation(reservationId, "rejected"); + } catch { + // Never mask the original steering error. + } + } throw normalizeOarError(error); } } @@ -1603,16 +1660,63 @@ export class OarSessionHub { } readRecords(params: ReadRecordsParams): Record { - const entry = this.requireEntry(params.sessionKey); - entry.lastActivityMs = Date.now(); const afterSeq = params.afterSeq ?? -1; const limit = Math.max(1, Math.min(2_000, params.limit ?? 500)); + const entry = this.sessions.get(params.sessionKey); + if (!entry) { + if (this.sessionStore) { + const persisted = this.sessionStore.getSession(params.sessionKey); + if (persisted) { + const { records, lastSeq } = this.sessionStore.readRecords(params.sessionKey, { + afterSeq, + limit, + }); + let view: SessionView | undefined; + let conversation: ConversationState | undefined; + let tasks: TaskState | undefined; + if (params.includeView || params.includeConversation || params.includeTasks) { + const allRecords = + afterSeq === -1 && records.length < limit + ? records + : this.sessionStore.readRecords(params.sessionKey, { afterSeq: -1, limit: 2_000 }).records; + view = initialSessionView(persisted.native_session_id); + conversation = initialConversation(); + tasks = initialTaskState(); + for (const rec of allRecords) { + view = reduceSessionView(view, rec, persisted.native_session_id); + conversation = reduceConversation(conversation, rec, persisted.native_session_id); + tasks = reduceTaskState(tasks, rec); + } + } + return { + schema_version: "loopx_oar_records_v0", + session_key: persisted.session_key, + native_session_id: persisted.native_session_id, + source: "sqlite", + status: persisted.status, + usage: null, + context_usage: null, + last_seq: lastSeq, + records, + ...(params.includeView ? { view, conversation } : {}), + ...(params.includeConversation ? { conversation } : {}), + ...(params.includeTasks ? { tasks } : {}), + }; + } + } + throw new EffectRuntimeRequestError( + `OAR session '${params.sessionKey}' is not open`, + "oar_session_not_found", + ); + } + entry.lastActivityMs = Date.now(); const filtered = entry.records.filter((record) => record.seq > afterSeq).slice(0, limit); const lastSeq = entry.records.length > 0 ? entry.records[entry.records.length - 1]!.seq : -1; return { schema_version: "loopx_oar_records_v0", session_key: entry.sessionKey, native_session_id: entry.session.id, + source: "live", status: entry.session.status().value, usage: entry.session.usage().value, context_usage: entry.session.contextUsage().value, @@ -1629,6 +1733,46 @@ export class OarSessionHub { }; } + listPersistedSessions( + options: { readonly limit?: number; readonly status?: "open" | "closed" } = {}, + ): Record { + const sessions = this.sessionStore ? this.sessionStore.listSessions(options) : []; + return { + schema_version: "loopx_oar_persisted_sessions_v0", + store_enabled: this.sessionStore !== null, + count: sessions.length, + sessions, + }; + } + + readPersistedSession( + sessionKey: string, + options: { + readonly afterSeq?: number; + readonly limit?: number; + readonly legacyChatSessionsDir?: string; + } = {}, + ): Record { + if (!this.sessionStore) { + throw new EffectRuntimeRequestError( + "OAR SQLite session store is not enabled on this host", + "oar_session_store_disabled", + ); + } + const result = this.sessionStore.readSessionWithLegacyFallback(sessionKey, { + legacyChatSessionsDir: options.legacyChatSessionsDir ?? this.legacyChatSessionsDir, + afterSeq: options.afterSeq, + limit: options.limit, + }); + if (!result) { + throw new EffectRuntimeRequestError( + `Persisted OAR session '${sessionKey}' not found`, + "oar_session_not_found", + ); + } + return { ...result }; + } + async closeSession(sessionKey: string): Promise> { const entry = this.sessions.get(sessionKey); if (!entry) { @@ -1649,6 +1793,11 @@ export class OarSessionHub { if (entry.mcpBridge) { await entry.mcpBridge.close(); } + try { + this.sessionStore?.markSessionClosed(sessionKey); + } catch { + // Best-effort status update during session disposal. + } } return { schema_version: "loopx_oar_session_closed_v0", diff --git a/loopx/control_plane/oar/session_sqlite_store.ts b/loopx/control_plane/oar/session_sqlite_store.ts new file mode 100644 index 0000000000..9be3890efd --- /dev/null +++ b/loopx/control_plane/oar/session_sqlite_store.ts @@ -0,0 +1,460 @@ +/** + * Independent WAL SQLite store (`sessions.sqlite`) for OAR session metadata, + * redacted `RecordEnvelope` streams, steering reservations, and dual-read + * compatibility with legacy `~/.loopx/chat/sessions/` JSONL transcripts. + * + * Strictly isolated from `authority-*.sqlite` so SQLite Authority v2 commit + * proof chains and migrations remain 100% untouched. + */ +import { randomUUID } from "node:crypto"; +import { chmodSync, existsSync, mkdirSync, readFileSync } from "node:fs"; +import path from "node:path"; +import type { DatabaseSync } from "node:sqlite"; +import type { RawEvent } from "@botiverse/oar"; + +import { sqliteAuthorityRuntime } from "../coordination/sqlite_runtime.ts"; + +export const OAR_SESSIONS_SQLITE_SCHEMA = "loopx_oar_sessions_sqlite_v1"; +const LEGACY_CHAT_SESSION_SCHEMA = "loopx_chat_session_v1"; + +export interface PersistedOarSession { + readonly session_key: string; + readonly runtime_id: string; + readonly native_session_id: string; + readonly cwd: string; + readonly permission_mode: string; + readonly model: string | null; + readonly effort: string | null; + readonly service_tier: string | null; + readonly status: "open" | "closed"; + readonly opened_at_ms: number; + readonly updated_at_ms: number; + readonly closed_at_ms: number | null; + readonly legacy_session_id: string | null; +} + +export interface PersistedSteeringReservation { + readonly reservation_id: string; + readonly session_key: string; + readonly input_id: string | null; + readonly expected_turn_id: string | null; + readonly status: "pending" | "steered" | "queued" | "rejected"; + readonly created_at_ms: number; + readonly settled_at_ms: number | null; +} + +export interface DualReadSessionResult { + readonly schema_version: typeof OAR_SESSIONS_SQLITE_SCHEMA; + readonly source: "sqlite" | "legacy_jsonl"; + readonly session_key: string; + readonly resumable_thread_id: string | null; + readonly session: Record; + readonly records: readonly RawEvent[]; + readonly legacy_messages: readonly Record[]; +} + +const SCHEMA_DDL = ` +CREATE TABLE IF NOT EXISTS oar_sessions ( + session_key TEXT PRIMARY KEY, + runtime_id TEXT NOT NULL, + native_session_id TEXT NOT NULL, + cwd TEXT NOT NULL, + permission_mode TEXT NOT NULL, + model TEXT, + effort TEXT, + service_tier TEXT, + status TEXT NOT NULL CHECK(status IN ('open', 'closed')), + opened_at_ms INTEGER NOT NULL, + updated_at_ms INTEGER NOT NULL, + closed_at_ms INTEGER, + legacy_session_id TEXT +); +CREATE INDEX IF NOT EXISTS idx_oar_sessions_updated ON oar_sessions(updated_at_ms DESC); +CREATE INDEX IF NOT EXISTS idx_oar_sessions_native ON oar_sessions(native_session_id); + +CREATE TABLE IF NOT EXISTS oar_records ( + session_key TEXT NOT NULL, + seq INTEGER NOT NULL, + native_session_id TEXT NOT NULL, + kind TEXT NOT NULL, + record_json TEXT NOT NULL, + recorded_at_ms INTEGER NOT NULL, + PRIMARY KEY (session_key, seq) +); +CREATE INDEX IF NOT EXISTS idx_oar_records_session_seq ON oar_records(session_key, seq); + +CREATE TABLE IF NOT EXISTS oar_steering_reservations ( + reservation_id TEXT PRIMARY KEY, + session_key TEXT NOT NULL, + input_id TEXT, + expected_turn_id TEXT, + status TEXT NOT NULL CHECK(status IN ('pending', 'steered', 'queued', 'rejected')), + created_at_ms INTEGER NOT NULL, + settled_at_ms INTEGER +); +CREATE INDEX IF NOT EXISTS idx_oar_steering_session ON oar_steering_reservations(session_key, created_at_ms DESC); +`; + +function safeOpaqueSessionId(sessionKey: string): boolean { + return /^[A-Za-z0-9._-]{1,160}$/u.test(sessionKey); +} + +function readLegacyJsonlFile(filePath: string): Record[] { + if (!existsSync(filePath)) return []; + try { + const raw = readFileSync(filePath, "utf8"); + const rows: Record[] = []; + for (const line of raw.split("\n")) { + const trimmed = line.trim(); + if (!trimmed) continue; + try { + const parsed = JSON.parse(trimmed) as unknown; + if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) { + rows.push(parsed as Record); + } + } catch { + // Skip partial trailing JSONL lines cleanly in read-only legacy fallback. + } + } + return rows; + } catch { + return []; + } +} + +export class OarSessionSqliteStore { + readonly dbPath: string; + private db: DatabaseSync | null = null; + + constructor(dbPath: string) { + this.dbPath = path.resolve(dbPath); + } + + private ensureOpen(): DatabaseSync { + if (this.db !== null) return this.db; + const dir = path.dirname(this.dbPath); + mkdirSync(dir, { recursive: true, mode: 0o700 }); + const { driver } = sqliteAuthorityRuntime(); + const db = new driver.DatabaseSync(this.dbPath); + db.exec("PRAGMA journal_mode = WAL;"); + db.exec("PRAGMA synchronous = NORMAL;"); + db.exec("PRAGMA busy_timeout = 5000;"); + db.exec("PRAGMA foreign_keys = ON;"); + db.exec(SCHEMA_DDL); + db.exec("PRAGMA user_version = 1;"); + if (process.platform !== "win32") { + try { + chmodSync(this.dbPath, 0o600); + } catch { + // Best-effort private permissions on POSIX. + } + } + this.db = db; + return db; + } + + close(): void { + if (this.db !== null) { + const target = this.db; + this.db = null; + target.close(); + } + } + + upsertSession(params: { + readonly sessionKey: string; + readonly runtimeId: string; + readonly nativeSessionId: string; + readonly cwd: string; + readonly permissionMode: string; + readonly model?: string | null; + readonly effort?: string | null; + readonly serviceTier?: string | null; + readonly openedAtMs?: number; + readonly legacySessionId?: string | null; + }): void { + const db = this.ensureOpen(); + const now = Date.now(); + const opened = params.openedAtMs ?? now; + db.prepare( + `INSERT INTO oar_sessions ( + session_key, runtime_id, native_session_id, cwd, permission_mode, + model, effort, service_tier, status, opened_at_ms, updated_at_ms, closed_at_ms, legacy_session_id + ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, 'open', ?, ?, NULL, ?) + ON CONFLICT(session_key) DO UPDATE SET + runtime_id = excluded.runtime_id, + native_session_id = excluded.native_session_id, + cwd = excluded.cwd, + permission_mode = excluded.permission_mode, + model = COALESCE(excluded.model, oar_sessions.model), + effort = COALESCE(excluded.effort, oar_sessions.effort), + service_tier = COALESCE(excluded.service_tier, oar_sessions.service_tier), + status = 'open', + updated_at_ms = excluded.updated_at_ms, + closed_at_ms = NULL, + legacy_session_id = COALESCE(excluded.legacy_session_id, oar_sessions.legacy_session_id)`, + ).run( + params.sessionKey, + params.runtimeId, + params.nativeSessionId, + params.cwd, + params.permissionMode, + params.model ?? null, + params.effort ?? null, + params.serviceTier ?? null, + opened, + now, + params.legacySessionId ?? null, + ); + } + + markSessionClosed(sessionKey: string, closedAtMs = Date.now()): void { + const db = this.ensureOpen(); + db.prepare( + `UPDATE oar_sessions + SET status = 'closed', updated_at_ms = ?, closed_at_ms = ? + WHERE session_key = ?`, + ).run(closedAtMs, closedAtMs, sessionKey); + } + + appendRecord(sessionKey: string, nativeSessionId: string, record: RawEvent): void { + const db = this.ensureOpen(); + const now = Date.now(); + db.prepare( + `INSERT OR REPLACE INTO oar_records ( + session_key, seq, native_session_id, kind, record_json, recorded_at_ms + ) VALUES (?, ?, ?, ?, ?, ?)`, + ).run( + sessionKey, + record.seq, + nativeSessionId, + String(record.kind ?? "unknown"), + JSON.stringify(record), + now, + ); + db.prepare(`UPDATE oar_sessions SET updated_at_ms = ? WHERE session_key = ?`).run( + now, + sessionKey, + ); + } + + createSteeringReservation(params: { + readonly sessionKey: string; + readonly inputId?: string | null; + readonly expectedTurnId?: string | null; + }): string { + const db = this.ensureOpen(); + const reservationId = `steer_${randomUUID().replaceAll("-", "")}`; + db.prepare( + `INSERT INTO oar_steering_reservations ( + reservation_id, session_key, input_id, expected_turn_id, status, created_at_ms, settled_at_ms + ) VALUES (?, ?, ?, ?, 'pending', ?, NULL)`, + ).run( + reservationId, + params.sessionKey, + params.inputId ?? null, + params.expectedTurnId ?? null, + Date.now(), + ); + return reservationId; + } + + settleSteeringReservation( + reservationId: string, + status: "steered" | "queued" | "rejected", + ): void { + const db = this.ensureOpen(); + db.prepare( + `UPDATE oar_steering_reservations + SET status = ?, settled_at_ms = ? + WHERE reservation_id = ?`, + ).run(status, Date.now(), reservationId); + } + + listSteeringReservations(sessionKey: string, limit = 100): readonly PersistedSteeringReservation[] { + const db = this.ensureOpen(); + const bounded = Math.max(1, Math.min(500, limit)); + const rows = db + .prepare( + `SELECT reservation_id, session_key, input_id, expected_turn_id, status, created_at_ms, settled_at_ms + FROM oar_steering_reservations + WHERE session_key = ? + ORDER BY created_at_ms DESC + LIMIT ?`, + ) + .all(sessionKey, bounded) as unknown as PersistedSteeringReservation[]; + return rows; + } + + getSession(sessionKey: string): PersistedOarSession | null { + const db = this.ensureOpen(); + const row = db + .prepare( + `SELECT session_key, runtime_id, native_session_id, cwd, permission_mode, + model, effort, service_tier, status, opened_at_ms, updated_at_ms, closed_at_ms, legacy_session_id + FROM oar_sessions + WHERE session_key = ?`, + ) + .get(sessionKey) as PersistedOarSession | undefined; + return row ?? null; + } + + listSessions(options: { readonly limit?: number; readonly status?: "open" | "closed" } = {}): readonly PersistedOarSession[] { + const db = this.ensureOpen(); + const bounded = Math.max(1, Math.min(500, options.limit ?? 100)); + if (options.status) { + return db + .prepare( + `SELECT session_key, runtime_id, native_session_id, cwd, permission_mode, + model, effort, service_tier, status, opened_at_ms, updated_at_ms, closed_at_ms, legacy_session_id + FROM oar_sessions + WHERE status = ? + ORDER BY updated_at_ms DESC + LIMIT ?`, + ) + .all(options.status, bounded) as unknown as PersistedOarSession[]; + } + return db + .prepare( + `SELECT session_key, runtime_id, native_session_id, cwd, permission_mode, + model, effort, service_tier, status, opened_at_ms, updated_at_ms, closed_at_ms, legacy_session_id + FROM oar_sessions + ORDER BY updated_at_ms DESC + LIMIT ?`, + ) + .all(bounded) as unknown as PersistedOarSession[]; + } + + readRecords( + sessionKey: string, + options: { readonly afterSeq?: number; readonly limit?: number } = {}, + ): { readonly records: readonly RawEvent[]; readonly lastSeq: number } { + const db = this.ensureOpen(); + const afterSeq = options.afterSeq ?? -1; + const bounded = Math.max(1, Math.min(2_000, options.limit ?? 500)); + const rows = db + .prepare( + `SELECT seq, record_json + FROM oar_records + WHERE session_key = ? AND seq > ? + ORDER BY seq ASC + LIMIT ?`, + ) + .all(sessionKey, afterSeq, bounded) as unknown as { readonly seq: number; readonly record_json: string }[]; + const lastRow = db + .prepare(`SELECT MAX(seq) AS max_seq FROM oar_records WHERE session_key = ?`) + .get(sessionKey) as { readonly max_seq?: number | null } | undefined; + const records: RawEvent[] = []; + for (const row of rows) { + records.push(JSON.parse(row.record_json) as RawEvent); + } + return { + records, + lastSeq: typeof lastRow?.max_seq === "number" ? lastRow.max_seq : -1, + }; + } + + /** + * Dual-Read helper: reads from `sessions.sqlite` first; when absent and a + * matching legacy `~/.loopx/chat/sessions//session.json` exists, + * returns a read-only projection so historical JSONL conversations remain + * readable and resumable without migration downtime. + */ + readSessionWithLegacyFallback( + sessionKey: string, + options: { readonly legacyChatSessionsDir?: string; readonly afterSeq?: number; readonly limit?: number } = {}, + ): DualReadSessionResult | null { + const sqliteSession = this.getSession(sessionKey); + if (sqliteSession) { + const { records } = this.readRecords(sessionKey, { + afterSeq: options.afterSeq, + limit: options.limit, + }); + return { + schema_version: OAR_SESSIONS_SQLITE_SCHEMA, + source: "sqlite", + session_key: sqliteSession.session_key, + resumable_thread_id: sqliteSession.native_session_id, + session: { ...sqliteSession }, + records, + legacy_messages: [], + }; + } + + const legacyRoot = options.legacyChatSessionsDir; + if (!legacyRoot || !safeOpaqueSessionId(sessionKey)) { + return null; + } + const legacyDir = path.join(legacyRoot, sessionKey); + const sessionPath = path.join(legacyDir, "session.json"); + if (!existsSync(sessionPath)) { + return null; + } + let parsed: Record; + try { + const raw = JSON.parse(readFileSync(sessionPath, "utf8")) as unknown; + if (!raw || typeof raw !== "object" || Array.isArray(raw)) return null; + parsed = raw as Record; + } catch { + return null; + } + if (parsed.schema_version !== LEGACY_CHAT_SESSION_SCHEMA) { + return null; + } + const messages = readLegacyJsonlFile(path.join(legacyDir, "messages.jsonl")); + const upstreamThreadId = + typeof parsed.upstream_thread_id === "string" && parsed.upstream_thread_id.trim() + ? parsed.upstream_thread_id.trim() + : null; + return { + schema_version: OAR_SESSIONS_SQLITE_SCHEMA, + source: "legacy_jsonl", + session_key: sessionKey, + resumable_thread_id: upstreamThreadId, + session: parsed, + records: [], + legacy_messages: messages, + }; + } + + /** + * Single-Write upgrade: import metadata from a legacy JSONL chat session into + * `sessions.sqlite` when resuming so subsequent turns write exclusively to SQLite. + */ + importLegacySessionMetadata( + sessionKey: string, + options: { + readonly legacyChatSessionsDir: string; + readonly runtimeId: string; + readonly cwd: string; + readonly permissionMode?: string; + }, + ): PersistedOarSession | null { + const legacy = this.readSessionWithLegacyFallback(sessionKey, { + legacyChatSessionsDir: options.legacyChatSessionsDir, + }); + if (!legacy || legacy.source !== "legacy_jsonl") { + return this.getSession(sessionKey); + } + const nativeSessionId = legacy.resumable_thread_id ?? sessionKey; + const model = + typeof legacy.session.agent_model_id === "string" && legacy.session.agent_model_id.trim() + ? legacy.session.agent_model_id.trim() + : null; + const effort = + typeof legacy.session.agent_reasoning_effort === "string" && legacy.session.agent_reasoning_effort.trim() + ? legacy.session.agent_reasoning_effort.trim() + : null; + this.upsertSession({ + sessionKey, + runtimeId: options.runtimeId, + nativeSessionId, + cwd: options.cwd, + permissionMode: options.permissionMode ?? "read_only", + model, + effort, + legacySessionId: sessionKey, + }); + return this.getSession(sessionKey); + } +} diff --git a/loopx/hosts/oar_client.py b/loopx/hosts/oar_client.py index 4c27be6f11..18dca5bd84 100644 --- a/loopx/hosts/oar_client.py +++ b/loopx/hosts/oar_client.py @@ -361,6 +361,8 @@ def __init__( idle_ms: int | None = None, timeout_seconds: float = DEFAULT_RPC_TIMEOUT_SECONDS, allow_scripted_runtime: bool = False, + sessions_db_path: Path | None = None, + legacy_chat_sessions_dir: Path | None = None, _platform_name: str | None = None, _windows_job_factory: Callable[[], _WindowsJobHandle] | None = None, ) -> None: @@ -368,6 +370,14 @@ def __init__( self._idle_ms = idle_ms self._timeout = timeout_seconds self._allow_scripted_runtime = allow_scripted_runtime + self._sessions_db_path = ( + sessions_db_path.resolve() if sessions_db_path is not None else None + ) + self._legacy_chat_sessions_dir = ( + legacy_chat_sessions_dir.resolve() + if legacy_chat_sessions_dir is not None + else None + ) self._containment = _OarDaemonContainment( platform_name=_platform_name, windows_job_factory=_windows_job_factory, @@ -404,6 +414,16 @@ def _ensure_daemon(self) -> OarHostEndpoint: fingerprint = _source_fingerprint() _ensure_private_runtime_dir(self._runtime_dir) suffix = "-scripted" if self._allow_scripted_runtime else "" + if self._sessions_db_path is not None: + db_hash = hashlib.sha256( + os.fsencode(os.fspath(self._sessions_db_path)) + ).hexdigest()[:10] + suffix = f"{suffix}-db-{db_hash}" + if self._legacy_chat_sessions_dir is not None: + legacy_hash = hashlib.sha256( + os.fsencode(os.fspath(self._legacy_chat_sessions_dir)) + ).hexdigest()[:8] + suffix = f"{suffix}-lg-{legacy_hash}" info_path = self._runtime_dir / f"oar-host-{fingerprint[:16]}{suffix}.json" existing = _read_locator(info_path, fingerprint) @@ -445,6 +465,10 @@ def _ensure_daemon(self) -> OarHostEndpoint: env["LOOPX_OAR_HOST_IDLE_MS"] = str(self._idle_ms) if self._allow_scripted_runtime: env["LOOPX_OAR_ALLOW_SCRIPTED_RUNTIME"] = "1" + if self._sessions_db_path is not None: + env["LOOPX_OAR_SESSIONS_DB"] = str(self._sessions_db_path) + if self._legacy_chat_sessions_dir is not None: + env["LOOPX_OAR_LEGACY_CHAT_SESSIONS_DIR"] = str(self._legacy_chat_sessions_dir) cmd = [ probe.executable, @@ -794,6 +818,34 @@ def list_runtimes(self) -> dict[str, object]: def list_sessions(self) -> dict[str, object]: return self.call("oar.list_sessions") + def list_persisted_sessions( + self, + *, + limit: int = 100, + status: str | None = None, + ) -> dict[str, object]: + params: dict[str, object] = {"limit": limit} + if status is not None: + params["status"] = status + return self._call_control("oar.list_persisted_sessions", params) + + def read_persisted_session( + self, + session_key: str, + *, + after_seq: int = -1, + limit: int = 500, + legacy_chat_sessions_dir: str | None = None, + ) -> dict[str, object]: + params: dict[str, object] = { + "session_key": session_key, + "after_seq": after_seq, + "limit": limit, + } + if legacy_chat_sessions_dir is not None: + params["legacy_chat_sessions_dir"] = legacy_chat_sessions_dir + return self._call_control("oar.read_persisted_session", params) + def probe_runtime( self, runtime_id: str, diff --git a/tests/control_plane/test_oar_phase4_storage.py b/tests/control_plane/test_oar_phase4_storage.py new file mode 100644 index 0000000000..7facaff0c0 --- /dev/null +++ b/tests/control_plane/test_oar_phase4_storage.py @@ -0,0 +1,115 @@ +"""End-to-end Python <-> Node 24 OAR Phase 4 storage tests (`sessions.sqlite` +WAL persistence, cold readback after daemon restart, and Dual-Read fallback for +legacy JSONL chat sessions). +""" +from __future__ import annotations + +import json +from pathlib import Path + +from loopx.hosts.oar_client import OarSessionClient + + +def test_oar_client_persists_records_across_daemon_restart_and_dual_reads_legacy( + tmp_path: Path, +) -> None: + runtime_dir = tmp_path / "oar-host" + sessions_db = tmp_path / "state" / "sessions.sqlite" + legacy_dir = tmp_path / "legacy-chat" + + legacy_session = legacy_dir / "legacy-chat-001" + legacy_session.mkdir(parents=True) + (legacy_session / "session.json").write_text( + json.dumps( + { + "schema_version": "loopx_chat_session_v1", + "session_id": "legacy-chat-001", + "upstream_thread_id": "thr_legacy_abc", + "agent_model_id": "gpt-5.4", + } + ), + encoding="utf-8", + ) + (legacy_session / "messages.jsonl").write_text( + json.dumps({"role": "user", "text": "legacy hello"}) + "\n", + encoding="utf-8", + ) + + client1 = OarSessionClient( + runtime_dir=runtime_dir, + idle_ms=30_000, + allow_scripted_runtime=True, + sessions_db_path=sessions_db, + legacy_chat_sessions_dir=legacy_dir, + ) + try: + health = client1.health() + assert health["sessions_db_path"] == str(sessions_db.resolve()) + pid1 = health["pid"] + + opened = client1.open_session( + { + "sessionKey": "persist-py-1", + "runtimeId": "scripted", + "cwd": str(tmp_path), + "permissionMode": "read_only", + "scriptedTurns": [{"text": "stored in sqlite"}], + } + ) + assert opened["session_key"] == "persist-py-1" + + prompted = client1.prompt( + { + "session_key": "persist-py-1", + "input": "hello persistent daemon", + } + ) + assert prompted["kind"] == "ended" + assert isinstance(prompted["outcome"], dict) + assert prompted["outcome"]["kind"] == "completed" + assert prompted["text"] == "stored in sqlite" + client1.close_session("persist-py-1") + finally: + client1.shutdown() + + assert sessions_db.is_file() + + # Start a brand-new daemon pointing at the same sessions.sqlite + legacy dir. + client2 = OarSessionClient( + runtime_dir=runtime_dir, + idle_ms=30_000, + allow_scripted_runtime=True, + sessions_db_path=sessions_db, + legacy_chat_sessions_dir=legacy_dir, + ) + try: + health2 = client2.health() + assert health2["pid"] != pid1 + + listed = client2.list_persisted_sessions(status="closed") + assert listed["store_enabled"] is True + assert listed["count"] == 1 + sessions = listed["sessions"] + assert isinstance(sessions, list) + assert sessions[0]["session_key"] == "persist-py-1" + + # Cold readback through standard `read_records` falls back to sessions.sqlite. + cold = client2.read_records("persist-py-1", include_view=True, include_tasks=True) + assert cold["source"] == "sqlite" + assert cold["status"] == "closed" + assert isinstance(cold["records"], list) and len(cold["records"]) > 0 + assert "view" in cold + + # Persisted session readback from SQLite. + persisted = client2.read_persisted_session("persist-py-1") + assert persisted["source"] == "sqlite" + assert persisted["session_key"] == "persist-py-1" + assert isinstance(persisted["records"], list) and len(persisted["records"]) > 0 + + # Dual-Read fallback for legacy JSONL conversation. + legacy = client2.read_persisted_session("legacy-chat-001") + assert legacy["source"] == "legacy_jsonl" + assert legacy["resumable_thread_id"] == "thr_legacy_abc" + assert len(legacy["legacy_messages"]) == 1 # type: ignore[arg-type] + finally: + client2.shutdown() diff --git a/tests/control_plane_ts/oar_session_sqlite_store.test.ts b/tests/control_plane_ts/oar_session_sqlite_store.test.ts new file mode 100644 index 0000000000..4d663a2795 --- /dev/null +++ b/tests/control_plane_ts/oar_session_sqlite_store.test.ts @@ -0,0 +1,353 @@ +import assert from "node:assert/strict"; +import { mkdir, mkdtemp, rm, stat, writeFile } from "node:fs/promises"; +import { tmpdir } from "node:os"; +import path from "node:path"; +import test from "node:test"; +import { scriptedRuntime } from "@botiverse/oar/testing"; + +import { SqliteAuthorityStore } from "../../loopx/control_plane/coordination/sqlite_authority_store.ts"; +import { LoopxControlPlaneMcpBridge } from "../../loopx/control_plane/oar/control_plane_mcp.ts"; +import { OarSessionHub } from "../../loopx/control_plane/oar/session_hub.ts"; +import { + OAR_SESSIONS_SQLITE_SCHEMA, + OarSessionSqliteStore, +} from "../../loopx/control_plane/oar/session_sqlite_store.ts"; +import { authorityProjectionFixture } from "./authority_projection_fixture.ts"; + +async function tempDir(t: test.TestContext, prefix = "oar-sqlite-"): Promise { + const dir = await mkdtemp(path.join(tmpdir(), prefix)); + t.after(() => rm(dir, { recursive: true, force: true })); + return dir; +} + +test("OarSessionSqliteStore persists sessions, records, steering reservations, and dual-reads legacy JSONL", async (t) => { + const dir = await tempDir(t); + const dbPath = path.join(dir, "state", "sessions.sqlite"); + const legacyDir = path.join(dir, "legacy-chat-sessions"); + const store = new OarSessionSqliteStore(dbPath); + t.after(() => store.close()); + + store.upsertSession({ + sessionKey: "sess-wal-1", + runtimeId: "codex", + nativeSessionId: "thr_01", + cwd: dir, + permissionMode: "workspace_write", + model: "gpt-5.4", + effort: "high", + }); + + if (process.platform !== "win32") { + const info = await stat(dbPath); + assert.equal(info.mode & 0o777, 0o600); + } + + store.appendRecord("sess-wal-1", "thr_01", { + seq: 0, + at: "2026-12-03T00:00:00.000Z", + kind: "frame", + body: { type: "test/event", text: "persisted hello" }, + } as never); + + const resId = store.createSteeringReservation({ + sessionKey: "sess-wal-1", + inputId: "in-1", + expectedTurnId: "turn-1", + }); + store.settleSteeringReservation(resId, "steered"); + const reservations = store.listSteeringReservations("sess-wal-1"); + assert.equal(reservations.length, 1); + assert.equal(reservations[0]?.status, "steered"); + assert.ok(typeof reservations[0]?.settled_at_ms === "number"); + + store.markSessionClosed("sess-wal-1"); + const persisted = store.getSession("sess-wal-1"); + assert.ok(persisted); + assert.equal(persisted.status, "closed"); + assert.equal(persisted.model, "gpt-5.4"); + + const readBack = store.readRecords("sess-wal-1"); + assert.equal(readBack.lastSeq, 0); + assert.equal(readBack.records.length, 1); + + // Dual-Read fallback for legacy `~/.loopx/chat/sessions//session.json` + `messages.jsonl`. + const legacySessionId = "chat-legacy-42"; + const legacySessionFolder = path.join(legacyDir, legacySessionId); + await mkdir(legacySessionFolder, { recursive: true }); + await writeFile( + path.join(legacySessionFolder, "session.json"), + JSON.stringify({ + schema_version: "loopx_chat_session_v1", + session_id: legacySessionId, + upstream_thread_id: "thread_legacy_99", + agent_model_id: "gpt-5.4", + agent_reasoning_effort: "medium", + }), + "utf8", + ); + await writeFile( + path.join(legacySessionFolder, "messages.jsonl"), + [ + JSON.stringify({ role: "user", text: "old question" }), + JSON.stringify({ role: "assistant", text: "old answer" }), + "{corrupted-trailing-line", + ].join("\n"), + "utf8", + ); + + const dualRead = store.readSessionWithLegacyFallback(legacySessionId, { + legacyChatSessionsDir: legacyDir, + }); + assert.ok(dualRead); + assert.equal(dualRead.schema_version, OAR_SESSIONS_SQLITE_SCHEMA); + assert.equal(dualRead.source, "legacy_jsonl"); + assert.equal(dualRead.resumable_thread_id, "thread_legacy_99"); + assert.equal(dualRead.legacy_messages.length, 2); + + // Single-Write upgrade imports legacy metadata into SQLite. + const upgraded = store.importLegacySessionMetadata(legacySessionId, { + legacyChatSessionsDir: legacyDir, + runtimeId: "codex", + cwd: dir, + permissionMode: "read_only", + }); + assert.ok(upgraded); + assert.equal(upgraded.native_session_id, "thread_legacy_99"); + assert.equal(upgraded.legacy_session_id, legacySessionId); + assert.equal(upgraded.model, "gpt-5.4"); + assert.equal(upgraded.effort, "medium"); + + const afterUpgrade = store.readSessionWithLegacyFallback(legacySessionId, { + legacyChatSessionsDir: legacyDir, + }); + assert.ok(afterUpgrade); + assert.equal(afterUpgrade.source, "sqlite"); + + // Path traversal session key is strictly rejected on legacy fallback. + assert.equal( + store.readSessionWithLegacyFallback("../escape", { legacyChatSessionsDir: legacyDir }), + null, + ); +}); + +test("OarSessionHub persists records and steering reservations to sessions.sqlite and supports cold readback", async (t) => { + const dir = await tempDir(t); + const dbPath = path.join(dir, "sessions.sqlite"); + const store1 = new OarSessionSqliteStore(dbPath); + const fakeRuntime = scriptedRuntime({ + id: "scripted", + turn: async (turn) => { + turn.say(`ack:${turn.input}`); + }, + }); + const hub1 = new OarSessionHub({ + runtimeResolver: async () => fakeRuntime, + sessionStore: store1, + }); + + try { + const health = hub1.health(); + assert.equal(health.sessions_db_path, path.resolve(dbPath)); + + await hub1.openSession({ + sessionKey: "persist-1", + runtimeId: "scripted", + cwd: dir, + permissionMode: "read_only", + }); + const promptRes = await hub1.sendPrompt({ + sessionKey: "persist-1", + input: "hello sqlite", + }); + assert.equal(promptRes.kind, "ended"); + assert.equal((promptRes.outcome as Record).kind, "completed"); + + // Steering on idle scripted session queues or rejects cleanly and records reservation. + await hub1.steerOrQueue({ sessionKey: "persist-1", input: "queued followup" }).catch(() => {}); + const reservations = store1.listSteeringReservations("persist-1"); + assert.equal(reservations.length, 1); + assert.notEqual(reservations[0]?.status, "pending"); + + await hub1.closeSession("persist-1"); + } finally { + await hub1.disposeAll(); + store1.close(); + } + + // Reopen a fresh hub over the same SQLite DB to verify cold readback after restart. + const store2 = new OarSessionSqliteStore(dbPath); + const hub2 = new OarSessionHub({ sessionStore: store2 }); + t.after(() => store2.close()); + + const listed = hub2.listPersistedSessions({ status: "closed" }); + assert.equal(listed.store_enabled, true); + assert.equal(listed.count, 1); + + const coldRecords = hub2.readRecords({ + sessionKey: "persist-1", + includeView: true, + includeConversation: true, + includeTasks: true, + }); + assert.equal(coldRecords.source, "sqlite"); + assert.equal(coldRecords.status, "closed"); + assert.ok(Array.isArray(coldRecords.records) && coldRecords.records.length > 0); + assert.ok(coldRecords.view && typeof coldRecords.view === "object"); + + const persisted = hub2.readPersistedSession("persist-1"); + assert.equal(persisted.source, "sqlite"); + assert.equal(persisted.session_key, "persist-1"); +}); + +test("LoopxControlPlaneMcpBridge enforces write grants and commits claim, task lease, and terminal settlement in-process", async (t) => { + const dir = await tempDir(t, "oar-mcp-write-"); + const goalId = "goal-inproc-mcp"; + const authorityStore = new SqliteAuthorityStore(dir, goalId); + const initialProjection = authorityProjectionFixture( + goalId, + [ + { + todo_id: "todo_alpha", + text: "Verify in-process MCP write tools", + status: "open", + done: false, + role: "agent", + archive_state: "active", + }, + ], + [], + "native", + { handoff_mode: "hard_lease" }, + ); + const seeded = await authorityStore.commitAuthority({ + expected_provider_revision: null, + operation_id: "seed-inproc-mcp", + next_projection: initialProjection, + events: [], + receipts: [], + }); + assert.equal(seeded.status, "applied"); + + const bridge = new LoopxControlPlaneMcpBridge(); + const served = await bridge.start(); + t.after(() => bridge.close()); + + const baseHeaders: Record = { + "content-type": "application/json", + accept: "application/json, text/event-stream", + ...(served.server.headers ?? {}), + }; + const initResp = await fetch(served.server.url, { + method: "POST", + headers: baseHeaders, + body: JSON.stringify({ + jsonrpc: "2.0", + id: 1, + method: "initialize", + params: { + protocolVersion: "2025-03-26", + capabilities: {}, + clientInfo: { name: "test-write-mcp", version: "1" }, + }, + }), + }); + assert.equal(initResp.status, 200); + const mcpSessionId = initResp.headers.get("mcp-session-id"); + const headers = mcpSessionId ? { ...baseHeaders, "mcp-session-id": mcpSessionId } : baseHeaders; + + const callTool = async (id: number, name: string, args: Record) => { + const resp = await fetch(served.server.url, { + method: "POST", + headers, + body: JSON.stringify({ + jsonrpc: "2.0", + id, + method: "tools/call", + params: { name, arguments: args }, + }), + }); + const text = await resp.text(); + const dataLine = text.split("\n").find((line) => line.startsWith("data:")); + const rpc = JSON.parse(dataLine ? dataLine.slice(5).trim() : text) as { + result: { isError?: boolean; content: { text: string }[] }; + }; + return { + isError: rpc.result.isError === true, + payload: JSON.parse(rpc.result.content[0]!.text) as Record, + }; + }; + + // 1) Read-only turn grant MUST reject authority mutations fail-closed. + bridge.issueTurnGrant({ + goalId, + turnId: "turn-ro", + actorId: "worker-1", + allowWrite: false, + sqliteAuthorityDir: dir, + }); + const roDenied = await callTool(2, "loopx_authority_claim_todo", { + todo_id: "todo_alpha", + operation_id: "op-claim-ro", + }); + assert.equal(roDenied.isError, true); + assert.equal(roDenied.payload.error_code, "turn_write_not_permitted"); + + // 2) Active write turn grant claims Todo, acquires write-scope lease, and settles terminal completion in-process. + bridge.issueTurnGrant({ + goalId, + turnId: "turn-rw", + actorId: "worker-1", + allowWrite: true, + sqliteAuthorityDir: dir, + }); + + const leaseRes = await callTool(3, "loopx_authority_acquire_task_lease", { + todo_id: "todo_alpha", + idempotency_key: "lease-key-1", + write_scopes: ["loopx/control_plane/oar/**"], + ttl_seconds: 300, + }); + assert.equal(leaseRes.isError, false, JSON.stringify(leaseRes.payload)); + assert.equal(leaseRes.payload.ok, true); + assert.equal((leaseRes.payload.result as Record).status, "applied"); + + const claimRes = await callTool(4, "loopx_authority_claim_todo", { + todo_id: "todo_alpha", + operation_id: "op-claim-1", + }); + assert.equal(claimRes.isError, false, JSON.stringify(claimRes.payload)); + assert.equal(claimRes.payload.ok, true); + assert.equal((claimRes.payload.result as Record).status, "applied"); + + const settleRes = await callTool(5, "loopx_authority_settle_todo_terminal", { + todo_id: "todo_alpha", + command: "complete", + operation_id: "op-complete-1", + lease_idempotency_key: "lease-key-1", + lease_expected_version: 1, + note: "Completed via in-process MCP tool", + evidence: "tests passed", + }); + assert.equal(settleRes.isError, false, JSON.stringify(settleRes.payload)); + assert.equal(settleRes.payload.ok, true); + assert.equal((settleRes.payload.result as Record).status, "applied"); + + // Verify SQLite authority head actually persisted the terminal transition. + const verifyStore = new SqliteAuthorityStore(dir, goalId, { existingOnly: true }); + const snapshot = await verifyStore.readAuthoritySnapshot!(); + assert.equal(snapshot.authority.status, "loaded"); + const todos = (snapshot.authority.head as { todos: { todo_id: string; status: string }[] }).todos; + const todoAlpha = todos.find((item) => item.todo_id === "todo_alpha"); + assert.ok(todoAlpha); + assert.equal(todoAlpha.status, "done"); + + // 3) Revoking the write grant immediately blocks subsequent write tool calls. + assert.equal(bridge.revokeActiveGrant("turn_completed"), true); + const afterRevoke = await callTool(6, "loopx_authority_acquire_task_lease", { + todo_id: "todo_alpha", + idempotency_key: "lease-key-2", + write_scopes: ["README.md"], + }); + assert.equal(afterRevoke.isError, true); + assert.equal(afterRevoke.payload.error_code, "turn_capability_grant_revoked"); +}); From 9541aa5077dce8f7bdefdd1e84d24553cbcfd80c Mon Sep 17 00:00:00 2001 From: song Date: Fri, 4 Dec 2026 12:53:27 +0800 Subject: [PATCH 3/7] fix(oar): abort active sessions before draining shutdown requests Signed-off-by: Codex --- .../control_plane/oar/session_host_server.ts | 4 ++ .../control_plane/test_oar_session_client.py | 60 +++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/loopx/control_plane/oar/session_host_server.ts b/loopx/control_plane/oar/session_host_server.ts index 738c8a139c..e65d2affe3 100644 --- a/loopx/control_plane/oar/session_host_server.ts +++ b/loopx/control_plane/oar/session_host_server.ts @@ -385,11 +385,15 @@ server.on("close", () => { clearTimeout(idleTimer); idleTimer = undefined; void (async () => { + // Abort active prompts before waiting for their RPC handlers to drain. + // Destroying a transport alone does not cancel native model/tool execution. + await hub.disposeAll(); if (pendingRequests > 0) { await new Promise((resolve) => { resolveDrain = resolve; }); } + // An already-dispatched open may have completed during the drain. await hub.disposeAll(); await retireRuntime({ infoPath, token, pid: process.pid, fingerprint }); })().finally(() => process.exit(0)); diff --git a/tests/control_plane/test_oar_session_client.py b/tests/control_plane/test_oar_session_client.py index 1de61185d4..cb9ce29d16 100644 --- a/tests/control_plane/test_oar_session_client.py +++ b/tests/control_plane/test_oar_session_client.py @@ -6,8 +6,10 @@ import json import os +import signal import socket import threading +import time from concurrent.futures import ThreadPoolExecutor from pathlib import Path from typing import Any @@ -374,3 +376,61 @@ def test_oar_source_fingerprint_tracks_shared_control_plane_and_lockfile( lock_file.write_text('{"lockfileVersion":3,"packages":{}}\n', encoding="utf-8") fp3 = oar_client._source_fingerprint() assert fp3 != fp2 + + +@pytest.mark.skipif(os.name == "nt", reason="POSIX shutdown signals") +@pytest.mark.parametrize("shutdown_signal", [signal.SIGTERM, signal.SIGINT]) +def test_oar_shutdown_signal_aborts_active_prompt_before_draining_requests( + tmp_path: Path, shutdown_signal: signal.Signals, +) -> None: + client = OarSessionClient(runtime_dir=tmp_path / "oar-signal", allow_scripted_runtime=True) + opened = client.open_session({ + "runtime_id": "scripted", "cwd": str(tmp_path), + "scripted_turns": [{"delayMs": 30_000, "text": "must be interrupted"}], + }) + session_key = str(opened["session_key"]) + endpoint = client._endpoint + assert endpoint is not None + exited = False + errors: list[Exception] = [] + + def prompt() -> None: + try: + client.prompt_stream({"session_key": session_key, "input": "long task"}, timeout=35) + except Exception as exc: + errors.append(exc) + + worker = threading.Thread(target=prompt) + worker.start() + try: + deadline = time.monotonic() + 3 + while True: + status = client.read_records(session_key)["status"] + if isinstance(status, dict) and status.get("kind") == "running": + break + assert time.monotonic() < deadline, "prompt never became active" + time.sleep(0.01) + + os.kill(endpoint.pid, shutdown_signal) + deadline = time.monotonic() + 3 + while time.monotonic() < deadline: + waited, status = os.waitpid(endpoint.pid, os.WNOHANG) + if waited == endpoint.pid: + exited = True + assert os.waitstatus_to_exitcode(status) == 0 + break + time.sleep(0.01) + assert exited, "shutdown waited for the running prompt instead of aborting it" + assert not endpoint.info_path.exists(), "shutdown did not retire the daemon locator" + worker.join(timeout=1) + assert not worker.is_alive() + assert errors, "closing the daemon must interrupt its outstanding prompt transport" + finally: + if not exited: + try: + os.kill(endpoint.pid, signal.SIGKILL) + os.waitpid(endpoint.pid, 0) + except ProcessLookupError: + pass + worker.join(timeout=3) + client.close_transport() From 4122e59436455d9c4e83658bcb3e70c05bb4e321 Mon Sep 17 00:00:00 2001 From: song Date: Fri, 4 Dec 2026 12:53:30 +0800 Subject: [PATCH 4/7] fix(oar): integrate governed Turn sessions and preserve registered Chat endpoints Signed-off-by: Codex --- loopx/chat/session_open.py | 10 +- loopx/chat_runtime.py | 8 +- loopx/cli_commands/turn.py | 14 ++ loopx/cli_commands/turn_run_once.py | 16 +- .../scheduler/execution_context.py | 1 + .../turn_driver/codex_sessions.py | 2 +- loopx/control_plane/turn_driver/driver.py | 2 +- .../turn_driver/oar_turn_host.py | 113 +++++++----- .../control_plane/test_oar_phase4_runtimes.py | 161 +++++++++++++++++- 9 files changed, 268 insertions(+), 59 deletions(-) diff --git a/loopx/chat/session_open.py b/loopx/chat/session_open.py index 0ab675316f..0b841ee393 100644 --- a/loopx/chat/session_open.py +++ b/loopx/chat/session_open.py @@ -479,6 +479,11 @@ def _start_adapter( return self._start_acp_adapter( command=kiro_cli_chat_command(self.kiro_cli_bin), work_dir=work_dir, resume_thread_id=resume_thread_id, execution_mode=execution_mode, agent_config=agent_config) + endpoint = self.endpoint_registry.get(agent_id) + if endpoint is not None: + return self._start_acp_adapter( + command=endpoint.command, work_dir=work_dir, agent_work_dir=endpoint.mapped_work_dir(work_dir), + resume_thread_id=resume_thread_id, execution_mode=execution_mode, agent_config=agent_config) from .endpoint_catalog import OAR_CHAT_RUNTIME_BY_AGENT_ID oar_spec = OAR_CHAT_RUNTIME_BY_AGENT_ID.get(agent_id) if oar_spec is not None: @@ -494,11 +499,6 @@ def _start_adapter( model=agent_config.get("model") if agent_config else None, reasoning_effort=agent_config.get("reasoning_effort") if agent_config else None, ) - endpoint = self.endpoint_registry.get(agent_id) - if endpoint is not None: - return self._start_acp_adapter( - command=endpoint.command, work_dir=work_dir, agent_work_dir=endpoint.mapped_work_dir(work_dir), - resume_thread_id=resume_thread_id, execution_mode=execution_mode, agent_config=agent_config) raise ValueError(f"unknown Agent endpoint: {agent_id}") def open_session( diff --git a/loopx/chat_runtime.py b/loopx/chat_runtime.py index 99f871c93b..a086090d37 100644 --- a/loopx/chat_runtime.py +++ b/loopx/chat_runtime.py @@ -336,7 +336,13 @@ def capabilities(self) -> list[dict[str, Any]]: kiro_cli_bin=self.kiro_cli_bin, runtime_root=self.store.root.parent, ) - return [*builtins, *(endpoint.public_summary() for endpoint in self.endpoint_registry.list())] + registered = self.endpoint_registry.list() + registered_ids = {endpoint.agent_id for endpoint in registered} + # OAR discovery must not replace an existing owner-configured endpoint + # just because a same-named executable appears on PATH. + builtins = [row for row in builtins + if row.get("source") != "builtin_oar" or row["agent_id"] not in registered_ids] + return [*builtins, *(endpoint.public_summary() for endpoint in registered)] def inspect_agent_model_options(self, agent_id: str, *, work_dir: Path, goal_id: str | None = None, agent_model_id: str | None = None) -> dict[str, Any]: diff --git a/loopx/cli_commands/turn.py b/loopx/cli_commands/turn.py index 3e11d58d13..d7e1fc05d0 100644 --- a/loopx/cli_commands/turn.py +++ b/loopx/cli_commands/turn.py @@ -115,6 +115,10 @@ def project_preparation_effects(value: dict[str, Any]) -> None: effects["state_written"] = preparation_state_written try: args.execution_mode = turn_cli_execution_mode(args.host, args.execution_mode) + if args.host == "oar": + from ..control_plane.turn_driver.oar_turn_host import normalize_oar_turn_runtime_id + + args.oar_runtime = normalize_oar_turn_runtime_id(getattr(args, "oar_runtime", None)) if (native_host_runner is not None or native_session_binding_resolver is not None) and ( args.host != "codex-app-server" or native_host_runner is None or native_session_binding_resolver is None ): @@ -477,6 +481,16 @@ def _resolve_plan_for_iteration_context(iter_ctx: str) -> dict[str, Any]: resolved_binding = session_binding if native_session_binding_resolver is not None: resolved_binding = native_session_binding_resolver(decision) + if (args.host == "oar" and not resume_requested + and not getattr(args, "resume_turn_key", None) and iter_ctx != "fresh" + and decision.get("selected_todo") + and decision.get("effective_action") != EffectiveAction.GOVERNED_CAPABILITY_INTENT.value): + from ..control_plane.turn_driver.oar_turn_host import oar_turn_session_binding + + resolved_binding = oar_turn_session_binding( + runtime_root, runtime_id=args.oar_runtime, work_contract=decision, + goal_admission=strict_goal_admission, + ) if ( ((args.turn_command == "run-once" and (args.host == "codex-cli" or dsh_operation_module)) or (builtin_dsh_session and (decision.get("selected_todo") or session_scope == "agent"))) diff --git a/loopx/cli_commands/turn_run_once.py b/loopx/cli_commands/turn_run_once.py index a4aa406a80..9c783db77e 100644 --- a/loopx/cli_commands/turn_run_once.py +++ b/loopx/cli_commands/turn_run_once.py @@ -978,7 +978,10 @@ def resolve_dsh_session(envelope: Mapping[str, Any]) -> dict[str, str] | None: session_binding_resolver = resolve_dsh_session elif args.host == "oar": - from ..control_plane.turn_driver.oar_turn_host import build_oar_turn_host_runner + from ..control_plane.turn_driver.oar_turn_host import ( + build_oar_turn_host_runner, + oar_turn_session_file, + ) host_runner = build_oar_turn_host_runner( args, @@ -990,6 +993,17 @@ def resolve_dsh_session(envelope: Mapping[str, Any]) -> dict[str, str] | None: current_launch_decision=current_launch_decision, ) + def resolve_oar_session(envelope: Mapping[str, Any]) -> dict[str, str] | None: + return codex_cli_session_binding( + runtime_root, goal_admission=goal_admission, host="oar", + session_file=oar_turn_session_file(args.oar_runtime), + include_native_session_digest=True, + **({"work_contract": payload["work_contract"]} if "work_contract" in payload + else {"turn_envelope": envelope}), + ) + + session_binding_resolver = resolve_oar_session + request_locator = payload.get("delegation_operation_locator") settlement_admission = None defer_progress_settlement: Callable[[], bool] | None = None diff --git a/loopx/control_plane/scheduler/execution_context.py b/loopx/control_plane/scheduler/execution_context.py index 2b04213fd2..0c70576f46 100644 --- a/loopx/control_plane/scheduler/execution_context.py +++ b/loopx/control_plane/scheduler/execution_context.py @@ -512,6 +512,7 @@ def scheduler_execution_context_for_turn( # The built-in dsh host runs one bounded in-process attempt under the # generic-cli scheduling surface, same as the pi visible alias. "dsh": HostSurface.GENERIC_CLI.value, + "oar": HostSurface.GENERIC_CLI.value, }.get(host, host) normalized_mode = { "interactive-visible": ExecutionMode.INTERACTIVE.value, diff --git a/loopx/control_plane/turn_driver/codex_sessions.py b/loopx/control_plane/turn_driver/codex_sessions.py index 6c097b881c..2cd12b4741 100644 --- a/loopx/control_plane/turn_driver/codex_sessions.py +++ b/loopx/control_plane/turn_driver/codex_sessions.py @@ -40,7 +40,7 @@ def _host_session_schema(host: str) -> str: if host == "codex-cli": return CODEX_CLI_SESSION_SCHEMA_VERSION - if host == "dsh": + if host in {"dsh", "oar"}: return MANAGED_CLI_SESSION_SCHEMA_VERSION raise ValueError("unsupported managed session host") diff --git a/loopx/control_plane/turn_driver/driver.py b/loopx/control_plane/turn_driver/driver.py index c8ef441126..f789f88212 100644 --- a/loopx/control_plane/turn_driver/driver.py +++ b/loopx/control_plane/turn_driver/driver.py @@ -44,7 +44,7 @@ LOOPX_CHILD_HOST_OPERATION_SCHEMA_VERSION = "loopx_child_host_operation_v0" _ABSENT_WORK_CONTRACT = object() -SUPPORTED_HOSTS = {"codex-cli", "codex-app-server", "claude-code", "dsh", "generic-cli"} +SUPPORTED_HOSTS = {"codex-cli", "codex-app-server", "claude-code", "dsh", "oar", "generic-cli"} SUPPORTED_EXECUTION_MODES = {"interactive-visible", "isolated-headless"} SUPPORTED_ITERATION_CONTEXT_POLICIES = {"fresh", "resume"} diff --git a/loopx/control_plane/turn_driver/oar_turn_host.py b/loopx/control_plane/turn_driver/oar_turn_host.py index dbaca3c040..dbeabbc8c0 100644 --- a/loopx/control_plane/turn_driver/oar_turn_host.py +++ b/loopx/control_plane/turn_driver/oar_turn_host.py @@ -18,7 +18,9 @@ import threading from typing import Any +from ...hosts.capabilities import NativeSessionFile from ...hosts.oar_client import OarHostError, OarSessionClient, default_oar_client +from ..quota.turn_envelope import turn_host_lineage from ..goals.first_party_host_admission import ( FirstPartyHostGoalAdmission, FirstPartyHostRuntimeRejected, @@ -26,9 +28,15 @@ from .host_candidate import ( assert_turn_host_request_version, build_result as build_host_result, + extract_turn_authority, parse_model_json, render_prompt, ) +from .codex_sessions import ( + _select_codex_cli_session_snapshot, + _store_codex_cli_session, + codex_cli_session_binding, +) from .host_failure import BuiltInHostError OAR_TURN_RUNTIME_CHOICES: tuple[str, ...] = ( @@ -79,28 +87,21 @@ def normalize_oar_turn_runtime_id(raw: str, *, allow_scripted: bool = False) -> return resolved -def _session_store_path(runtime_root: Path, *, goal_id: str, agent_id: str, todo_id: str, runtime_id: str) -> Path: - key = hashlib.sha256(f"{goal_id}\0{agent_id}\0{todo_id}\0{runtime_id}".encode("utf-8")).hexdigest()[:32] - return runtime_root / "oar_turn_sessions" / f"{key}.json" +def oar_turn_session_file(runtime_id: str) -> NativeSessionFile: + resolved = normalize_oar_turn_runtime_id(runtime_id, allow_scripted=True) + return NativeSessionFile(f".oar-{resolved}.json", profile_host="oar") -def _load_saved_session_id(path: Path) -> str | None: - try: - payload = json.loads(path.read_text(encoding="utf-8")) - except (OSError, json.JSONDecodeError): - return None - raw = payload.get("native_session_id") if isinstance(payload, dict) else None - return raw.strip() if isinstance(raw, str) and raw.strip() else None - - -def _save_session_id(path: Path, *, native_session_id: str, runtime_id: str) -> None: - path.parent.mkdir(parents=True, exist_ok=True) - tmp = path.with_suffix(".tmp") - tmp.write_text( - json.dumps({"runtime_id": runtime_id, "native_session_id": native_session_id}) + "\n", - encoding="utf-8", +def oar_turn_session_binding( + runtime_root: Path, *, runtime_id: str, work_contract: Mapping[str, Any], + goal_admission: FirstPartyHostGoalAdmission | None = None, +) -> dict[str, str] | None: + """Read OAR conversations through the existing identity and Goal lifetime owner.""" + return codex_cli_session_binding( + runtime_root, work_contract=work_contract, host="oar", + goal_admission=goal_admission, session_file=oar_turn_session_file(runtime_id), + include_native_session_digest=True, ) - tmp.replace(path) def run_oar_turn_host( @@ -127,23 +128,35 @@ def run_oar_turn_host( if permission_mode not in {"read_only", "workspace_write"}: raise ValueError(f"Unsupported OAR turn permission_mode: {permission_mode}") + # Validate the original authority before launching a native process. The + # shared owner handles both complete v1 requests and historical envelopes. + authority = extract_turn_authority(request) + prompt_text = render_prompt(authority) + lineage = turn_host_lineage(request) + if not all(lineage.get(key) for key in ("goal_id", "agent_id", "todo_id")): + raise ValueError("OAR turn request has incomplete session lineage") client = oar_client or default_oar_client() - turn_envelope = request.get("turn_envelope") - envelope_map = turn_envelope if isinstance(turn_envelope, Mapping) else {} - goal_id = str(envelope_map.get("goal_id") or "") - agent_id = str(envelope_map.get("agent_id") or "") - action = envelope_map.get("action") - selected_todo = action.get("selected_todo") if isinstance(action, Mapping) else None - todo_id = str(selected_todo.get("todo_id") or "") if isinstance(selected_todo, Mapping) else "" - session_action = str((request.get("session") or {}).get("action") or "start") - store_path = _session_store_path( - runtime_root, - goal_id=goal_id, - agent_id=agent_id, - todo_id=todo_id, - runtime_id=resolved_runtime, + session_action = str((request.get("session") or {}).get("action") or "start_new") + if session_action not in {"start_new", "resume"}: + raise ValueError("OAR turn requires an admitted start_new or resume session") + session_file = oar_turn_session_file(resolved_runtime) + original, binding = _select_codex_cli_session_snapshot( + runtime_root, lineage=lineage, host="oar", session_file=session_file, + goal_admission=goal_admission, fresh=session_action == "start_new", ) - resume_id = _load_saved_session_id(store_path) if session_action == "resume" else None + profile_digest = hashlib.sha256(json.dumps({ + "runtime_id": resolved_runtime, "cwd": str(project.resolve()), + "executable": executable_path, "model": model, "effort": reasoning_effort, + "permission_mode": permission_mode, + }, sort_keys=True).encode()).hexdigest() + if session_action == "resume" and ( + binding is None or binding.get("session_profile_digest") != profile_digest + ): + raise BuiltInHostError( + "OAR session binding is missing or its profile changed; select a fresh iteration", + failure_kind="session_missing" if binding is None else "contract_rejected", + ) + resume_id = str(binding["session_id"]) if binding is not None else None if goal_admission is not None: goal_admission.require_running(operation=f"oar_{resolved_runtime}_turn_open") @@ -182,10 +195,25 @@ def run_oar_turn_host( ) from exc session_key = str(opened["session_key"]) - native_session_id = str(opened.get("native_session_id") or session_key) - _save_session_id(store_path, native_session_id=native_session_id, runtime_id=resolved_runtime) - - prompt_text = render_prompt(request) + native_session_id = str(opened.get("native_session_id") or resume_id or "") + + def store_session(native_id: str) -> None: + nonlocal original + if not native_id: + return + + def commit() -> None: + nonlocal original + original = _store_codex_cli_session( + runtime_root, lineage=lineage, host="oar", session_id=native_id, + goal_ref=request.get("goal_ref"), session_profile_digest=profile_digest, + session_file=session_file, expected_document=original, + ) + + if goal_admission is None: + commit() + else: + goal_admission.accept_result(commit) stop_watch = threading.Event() admission_error: list[BaseException] = [] @@ -213,6 +241,7 @@ def _watch_admission() -> None: watcher.start() try: + store_session(native_session_id) prompt_result = client.prompt_stream( { "sessionKey": session_key, @@ -276,7 +305,7 @@ def _watch_admission() -> None: final_native_id = str(prompt_result.get("native_session_id") or native_session_id) if final_native_id: - _save_session_id(store_path, native_session_id=final_native_id, runtime_id=resolved_runtime) + store_session(final_native_id) raw_text = str(prompt_result.get("text") or "") parsed = parse_model_json(raw_text) @@ -290,10 +319,6 @@ def _watch_admission() -> None: ), host_name=f"OAR ({resolved_runtime})", ) - result["session"] = { - "session_id": final_native_id, - "runtime_id": resolved_runtime, - } return result @@ -315,7 +340,7 @@ def build_oar_turn_host_runner( model = getattr(args, "oar_model", None) reasoning_effort = getattr(args, "oar_reasoning_effort", None) executable_path = getattr(args, "oar_executable", None) - timeout_seconds = float(getattr(args, "host_timeout_seconds", None) or 1800.0) + timeout_seconds = float(getattr(args, "timeout_seconds", None) or 1800.0) admission = goal_admission if admission is None and getattr(args, "goal_id", None): admission = FirstPartyHostGoalAdmission.for_plan( diff --git a/tests/control_plane/test_oar_phase4_runtimes.py b/tests/control_plane/test_oar_phase4_runtimes.py index 57ca87afab..a56fb69ce8 100644 --- a/tests/control_plane/test_oar_phase4_runtimes.py +++ b/tests/control_plane/test_oar_phase4_runtimes.py @@ -43,6 +43,10 @@ collect_oar_runtime_readiness, ) from tests.test_loopx_turn_codex_cli import _request +from tests.test_dsh_goal_mode import _signed_request +from tests.control_plane.test_turn_host_decision_capture import ( + complete_host_request as complete_host_request, +) def _scripted_client(tmp_path: Path) -> OarSessionClient: @@ -122,6 +126,144 @@ def test_turn_cli_registers_oar_host_and_preserves_claude_code_mode_gate() -> No normalize_oar_turn_runtime_id("unknown-runtime-xyz") +def test_oar_host_reaches_the_real_turn_planner(complete_host_request) -> None: + from loopx.control_plane.turn_driver.driver import build_loopx_turn_plan + + _, contract = complete_host_request + plan = build_loopx_turn_plan( + contract, host="oar", execution_mode="isolated-headless", + turn_instance_id="oar-planning-fixture", + ) + assert plan["host"]["kind"] == "oar" + assert plan["host"]["scheduler_owner"] == "outer_controller" + assert plan["route"]["kind"] != "contract_error" + + +def test_oar_turn_result_satisfies_the_core_result_contract(tmp_path: Path) -> None: + from loopx.control_plane.turn_driver.executor import validate_loopx_turn_host_result + request = _signed_request(todo_id="todo_oar_result") + client = _scripted_client(tmp_path) + try: + result = run_oar_turn_host( + request, runtime_id="scripted", runtime_root=tmp_path / "runtime", + project=tmp_path, oar_client=client, + oar_scripted_turns=[{"text": json.dumps({"result_kind": "wait", "summary": "Waiting."})}], + ) + plan = {"transaction": {"turn_key": request["turn_key"]}, + "turn_envelope": request["turn_envelope"]} + checked = validate_loopx_turn_host_result(plan, result) + assert checked["ok"], checked["errors"] + finally: + client.shutdown() + client.close_transport() + + +def test_oar_turn_rejects_unsigned_authority_before_starting(tmp_path: Path) -> None: + class UnusedClient: + def open_session(self, *_args, **_kwargs): + pytest.fail("unsigned Turn authority must never open a native session") + + with pytest.raises(ValueError, match="signature"): + run_oar_turn_host( + _request(), runtime_id="scripted", runtime_root=tmp_path, + project=tmp_path, oar_client=UnusedClient(), + ) + + +def test_oar_runner_preserves_the_cli_deadline(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: + from loopx.control_plane.turn_driver import oar_turn_host + + calls = [] + monkeypatch.setattr(oar_turn_host, "run_oar_turn_host", lambda request, **kwargs: calls.append(kwargs) or {}) + runner = oar_turn_host.build_oar_turn_host_runner( + argparse.Namespace(oar_runtime="kimi", timeout_seconds=3.0), + runtime_root=tmp_path, registry_path=tmp_path / "registry.json", project=tmp_path, + ) + runner({}) + assert calls[0]["timeout_seconds"] == 3.0 + + +def test_oar_complete_turn_resumes_through_the_public_plan( + complete_host_request, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, +) -> None: + from loopx.control_plane.turn_driver.executor import ( + build_loopx_turn_host_request, + validate_loopx_turn_host_result, + ) + from tests.control_plane.test_turn_host_decision_capture import _fixture_module + + _, source = complete_host_request + fixture = _fixture_module() + runtime_root = Path(source["runtime_root"]) + client = _scripted_client(tmp_path) + open_params = [] + real_open = client.open_session + + def scripted_open(params, **kwargs): + open_params.append(dict(params)) + return real_open({**params, "runtimeId": "scripted", "scriptedTurns": [ + {"text": json.dumps({"result_kind": "wait", "summary": "Awaiting the next input."})}, + ]}, **kwargs) + + monkeypatch.setattr(client, "open_session", scripted_open) + argv = ["--registry", source["registry"], "--runtime-root", str(runtime_root), + "--format", "json", "turn", "plan", "--goal-id", source["goal_id"], + "--agent-id", fixture.AGENT_ID, "--host", "oar", "--oar-runtime", "codex", + "--include-transaction-detail"] + try: + for index, expected_action in enumerate(("start_new", "resume")): + code, plan = fixture._run_cli([*argv, "--turn-instance-id", f"oar-fixture-{index}"]) + assert code == 0, plan + assert plan["session"]["action"] == expected_action + request = build_loopx_turn_host_request(plan) + assert request["schema_version"] == "loopx_turn_host_request_v1" + assert "turn_envelope" not in request + result = run_oar_turn_host( + request, runtime_id="codex", runtime_root=runtime_root, + project=tmp_path, oar_client=client, + ) + checked = validate_loopx_turn_host_result(plan, result) + assert checked["ok"], checked["errors"] + assert "resume" not in open_params[0] + assert open_params[1]["resume"] + sessions = list(runtime_root.glob(f"goals/{source['goal_id']}/turn-sessions/*.oar-codex.json")) + assert len(sessions) == 1 + stored = json.loads(sessions[0].read_text()) + assert stored["goal_id"] == source["goal_id"] + assert stored["agent_id"] == fixture.AGENT_ID + assert stored["session_id"] == open_params[1]["resume"] + finally: + client.shutdown() + client.close_transport() + + +def test_registered_chat_endpoint_keeps_its_command_when_oar_cli_appears( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch, +) -> None: + import sys + from loopx.chat.endpoints import AgentEndpointRegistry + from loopx.chat_runtime import ChatRuntimeController + from loopx.chat_store import ChatSessionStore + + store = ChatSessionStore(tmp_path / "chat") + registry = AgentEndpointRegistry(store.root) + command = [sys.executable, "-u", "custom-acp-fixture.py"] + registry.upsert({"agent_id": "kimi", "display_name": "Configured Kimi", "command": command}) + controller = ChatRuntimeController(store=store, endpoint_registry=registry, codex_bin="missing-codex") + monkeypatch.setattr("loopx.chat.endpoint_catalog.shutil.which", lambda name: sys.executable) + selected = [row for row in controller.capabilities() if row["agent_id"] == "kimi"] + assert len(selected) == 1 + assert selected[0]["adapter_kind"] == "acp" + calls = [] + sentinel = object() + monkeypatch.setattr(controller, "_start_acp_adapter", lambda **kwargs: calls.append(kwargs) or sentinel) + monkeypatch.setattr(OarChatAdapter, "start", lambda **kwargs: pytest.fail("registered command was replaced")) + assert controller._start_adapter( + agent_id="kimi", work_dir=tmp_path, goal_id=None, objective="Use the configured endpoint", + ) is sentinel + assert calls[0]["command"] == tuple(command) + + def test_run_oar_turn_host_executes_resumes_and_enforces_goal_admission(tmp_path: Path) -> None: project = tmp_path / "project" project.mkdir() @@ -142,7 +284,7 @@ def test_run_oar_turn_host_executes_resumes_and_enforces_goal_admission(tmp_path try: # 1) Normal start persists native session id and returns validated result. - req1 = _request() + req1 = _signed_request(todo_id="todo_oar_resume") res1 = run_oar_turn_host( req1, runtime_id="scripted", @@ -152,11 +294,12 @@ def test_run_oar_turn_host_executes_resumes_and_enforces_goal_admission(tmp_path oar_scripted_turns=[{"text": valid_answer}], ) assert res1["result_kind"] == "validated_progress" - first_session_id = str(res1["session"]["session_id"]) + session_path = next(runtime_root.glob("goals/*/turn-sessions/*.oar-scripted.json")) + first_session_id = json.loads(session_path.read_text())["session_id"] assert first_session_id # 2) Resume reuses persisted native session id. - req2 = _request() + req2 = _signed_request(todo_id="todo_oar_resume") req2["session"]["action"] = "resume" res2 = run_oar_turn_host( req2, @@ -167,7 +310,7 @@ def test_run_oar_turn_host_executes_resumes_and_enforces_goal_admission(tmp_path oar_scripted_turns=[{"text": valid_answer}], ) assert res2["result_kind"] == "validated_progress" - assert res2["session"]["session_id"] == first_session_id + assert json.loads(session_path.read_text())["session_id"] == first_session_id # 3) Goal pause mid-turn triggers live abort and raises FirstPartyHostRuntimeRejected. class _RevokingAdmission: @@ -184,9 +327,15 @@ def launch_lifetime(self, *, operation: str = ""): return nullcontext() + def require_current(self) -> None: + pass + + def accept_result(self, commit): + return commit() + with pytest.raises(FirstPartyHostRuntimeRejected): run_oar_turn_host( - _request(), + _signed_request(todo_id="todo_oar_paused"), runtime_id="scripted", runtime_root=runtime_root, project=project, @@ -198,7 +347,7 @@ def launch_lifetime(self, *, operation: str = ""): # 4) Failed runtime exit maps to BuiltInHostError. with pytest.raises(BuiltInHostError): run_oar_turn_host( - _request(), + _signed_request(todo_id="todo_oar_failed"), runtime_id="scripted", runtime_root=runtime_root, project=project, From e02a6acd2e4415ec6287533af9f4b4de9161c4c3 Mon Sep 17 00:00:00 2001 From: song Date: Fri, 4 Dec 2026 12:59:44 +0800 Subject: [PATCH 5/7] fix(oar): require completed turns and verify generic Chat health Reject handled or malformed terminal payloads before publishing generic Chat answers or governed Turn results. Check the live OAR session inventory before reusing a cached generic Chat adapter, including released and exited status. Cover real removed-session behavior and require explicit ended/completed outcomes. Signed-off-by: Codex --- loopx/chat/oar_chat_adapter.py | 31 ++++++- .../turn_driver/oar_turn_host.py | 5 ++ .../control_plane/test_oar_phase4_runtimes.py | 81 +++++++++++++++++++ 3 files changed, 116 insertions(+), 1 deletion(-) diff --git a/loopx/chat/oar_chat_adapter.py b/loopx/chat/oar_chat_adapter.py index 9c216a9a48..ee869a330a 100644 --- a/loopx/chat/oar_chat_adapter.py +++ b/loopx/chat/oar_chat_adapter.py @@ -259,6 +259,12 @@ def on_stream_event(event: dict[str, object]) -> None: str(outcome.get("reason") or f"{self.display_name} reported a terminal turn failure."), error_code=failure_kind, ) + if run_kind != "ended" or outcome_kind != "completed": + raise _oar_chat_error( + self.display_name, + f"{self.display_name} turn did not complete.", + error_code="protocol_error", + ) result_text = str(prompt_result.get("text") or "") streamed_response = "".join(parts) @@ -312,4 +318,27 @@ def close_session(self) -> None: def healthcheck(self) -> bool: with self.lock: - return not self._unhealthy and self._oar_session_key is not None + session_key = self._oar_session_key + if self._unhealthy or session_key is None: + return False + client = self.oar_client or default_oar_client() + try: + listing = client.call("oar.list_sessions", timeout=5.0) + except (OarHostError, OSError): + return False + sessions = listing.get("sessions") + if not isinstance(sessions, list): + return False + for entry in sessions: + if not isinstance(entry, dict) or entry.get("session_key") != session_key: + continue + status = entry.get("status") + live = ( + isinstance(status, dict) + and status.get("kind") in {"idle", "running"} + and status.get("released") is not True + and entry.get("exited") is None + ) + with self.lock: + return live and not self._unhealthy and self._oar_session_key == session_key + return False diff --git a/loopx/control_plane/turn_driver/oar_turn_host.py b/loopx/control_plane/turn_driver/oar_turn_host.py index dbeabbc8c0..dcbde784f5 100644 --- a/loopx/control_plane/turn_driver/oar_turn_host.py +++ b/loopx/control_plane/turn_driver/oar_turn_host.py @@ -302,6 +302,11 @@ def _watch_admission() -> None: str(outcome.get("reason") or f"OAR runtime '{resolved_runtime}' turn failed"), failure_kind=failure_kind, ) + if run_kind != "ended" or outcome_kind != "completed": + raise BuiltInHostError( + f"OAR runtime '{resolved_runtime}' turn did not complete", + failure_kind="contract_rejected", + ) final_native_id = str(prompt_result.get("native_session_id") or native_session_id) if final_native_id: diff --git a/tests/control_plane/test_oar_phase4_runtimes.py b/tests/control_plane/test_oar_phase4_runtimes.py index a56fb69ce8..a4452dd6d4 100644 --- a/tests/control_plane/test_oar_phase4_runtimes.py +++ b/tests/control_plane/test_oar_phase4_runtimes.py @@ -436,6 +436,87 @@ def _run_second() -> None: client.close_transport() +@pytest.mark.parametrize("terminal", [ + {"kind": "handled", "outcome": {"kind": "completed"}}, + {"kind": "ended"}, + {"kind": "ended", "outcome": {"kind": "unknown"}}, + {"kind": "unknown", "outcome": {"kind": "completed"}}, +]) +@pytest.mark.parametrize("surface", ["chat", "turn"]) +def test_oar_surfaces_require_explicit_completion(tmp_path: Path, terminal, surface) -> None: + class TerminalClient: + closed = [] + + def open_session(self, _params, **_kwargs): + return {"session_key": "terminal-fixture", "native_session_id": "fixture-native"} + + def prompt_stream(self, _params, **_kwargs): + return {**terminal, "text": json.dumps({"result_kind": "wait", "summary": "Partial result."})} + + def close_session(self, key): + self.closed.append(key) + + client = TerminalClient() + if surface == "turn": + with pytest.raises(BuiltInHostError, match="did not complete") as caught: + run_oar_turn_host( + _signed_request(todo_id="todo_completion_fixture"), runtime_id="scripted", runtime_root=tmp_path / "runtime", + project=tmp_path, oar_client=client, + ) + assert caught.value.failure_kind == "contract_rejected" + else: + adapter = OarChatAdapter.start( + runtime_id="scripted", display_name="Fixture", work_dir=tmp_path, oar_client=client, + ) + events = [] + try: + with pytest.raises(CodexChatAgentError, match="did not complete") as caught: + adapter.start_turn("Status", lambda kind, _payload: events.append(kind)) + assert caught.value.error_code == "protocol_error" + assert "answer.final" not in events + assert adapter.resumed is False + finally: + adapter.close_session() + assert client.closed == ["terminal-fixture"] + + +def test_oar_chat_healthcheck_detects_a_removed_native_session(tmp_path: Path) -> None: + client = _scripted_client(tmp_path) + adapter = OarChatAdapter.start( + runtime_id="scripted", display_name="Fixture", work_dir=tmp_path, oar_client=client, + ) + try: + assert adapter.healthcheck() is True + client.close_session(adapter._oar_session_key) + assert adapter.healthcheck() is False + finally: + adapter.close_session() + client.shutdown() + client.close_transport() + + +@pytest.mark.parametrize(("status", "exited", "expected"), [ + ({"kind": "idle"}, None, True), + ({"kind": "running"}, None, True), + ({"kind": "idle", "released": True}, None, False), + ({"kind": "idle"}, {"code": 1}, False), + ({"kind": "unrecognized"}, None, False), + (None, None, False), +]) +def test_oar_chat_healthcheck_requires_live_native_status(tmp_path: Path, status, exited, expected) -> None: + class InventoryClient: + def call(self, method, *, timeout): + assert method == "oar.list_sessions" and timeout == 5.0 + return {"sessions": [{"session_key": "inventory-fixture", "status": status, "exited": exited}]} + + adapter = OarChatAdapter( + runtime_id="scripted", display_name="Fixture", work_dir=tmp_path, + session_id="fixture-native", oar_client=InventoryClient(), + ) + adapter._oar_session_key = "inventory-fixture" + assert adapter.healthcheck() is expected + + def test_oar_daemon_windows_job_object_containment_lifecycle() -> None: events: list[tuple[str, object]] = [] From 9de437a3dff2a87f885f900303527cd417f5edd7 Mon Sep 17 00:00:00 2001 From: song Date: Sat, 5 Dec 2026 07:04:39 -0500 Subject: [PATCH 6/7] fix(oar): defer oar_turn_host import from turn CLI registration and update supported host parity test Signed-off-by: song --- loopx/cli_commands/turn_registration.py | 6 ++++-- .../turn_driver/execution_profile.py | 21 +++++++++++++++++++ .../turn_driver/oar_turn_host.py | 20 +----------------- tests/test_host_parity_smoke.py | 2 +- 4 files changed, 27 insertions(+), 22 deletions(-) diff --git a/loopx/cli_commands/turn_registration.py b/loopx/cli_commands/turn_registration.py index cdbec78183..24efe9ec37 100644 --- a/loopx/cli_commands/turn_registration.py +++ b/loopx/cli_commands/turn_registration.py @@ -14,8 +14,10 @@ MANAGED_TURN_HOST, resolve_default_turn_host, ) -from ..control_plane.turn_driver.execution_profile import REASONING_EFFORTS -from ..control_plane.turn_driver.oar_turn_host import OAR_TURN_RUNTIME_CHOICES +from ..control_plane.turn_driver.execution_profile import ( + OAR_TURN_RUNTIME_CHOICES, + REASONING_EFFORTS, +) from .turn_dsh_options import register_dsh_turn_options # Explicit host choices stay per-command: planning may name any host the Turn diff --git a/loopx/control_plane/turn_driver/execution_profile.py b/loopx/control_plane/turn_driver/execution_profile.py index ec746b34dd..9b69e2cd90 100644 --- a/loopx/control_plane/turn_driver/execution_profile.py +++ b/loopx/control_plane/turn_driver/execution_profile.py @@ -24,6 +24,27 @@ MANAGED_EXECUTION_PROFILE_SCHEMA_VERSION = "managed_execution_profile_v0" +# Lightweight runtime ID list shared by CLI registration and OAR Turn host so +# importing ``loopx.cli_commands.turn`` never eagerly loads OAR host modules. +OAR_TURN_RUNTIME_CHOICES: tuple[str, ...] = ( + "codex", + "claude", + "dsh", + "pi", + "pi-durable", + "opencode", + "antigravity", + "kimi", + "qwen", + "devin", + "factory", + "grok", + "codebuddy", + "qoder", + "bottega", + "cursor", +) + # Shipped product defaults for the managed executor. These are a product # decision recorded once; the environment can override a field, but nothing is # discovered and no credential participates in the choice. diff --git a/loopx/control_plane/turn_driver/oar_turn_host.py b/loopx/control_plane/turn_driver/oar_turn_host.py index 0449bcb41c..71bd58976d 100644 --- a/loopx/control_plane/turn_driver/oar_turn_host.py +++ b/loopx/control_plane/turn_driver/oar_turn_host.py @@ -38,27 +38,9 @@ _store_codex_cli_session, codex_cli_session_binding, ) +from .execution_profile import OAR_TURN_RUNTIME_CHOICES as OAR_TURN_RUNTIME_CHOICES from .host_failure import BuiltInHostError, bind_recovery_native_session -OAR_TURN_RUNTIME_CHOICES: tuple[str, ...] = ( - "codex", - "claude", - "dsh", - "pi", - "pi-durable", - "opencode", - "antigravity", - "kimi", - "qwen", - "devin", - "factory", - "grok", - "codebuddy", - "qoder", - "bottega", - "cursor", -) - _OAR_RUNTIME_ALIASES: dict[str, str] = { "codex-cli": "codex", "claude-code": "claude", diff --git a/tests/test_host_parity_smoke.py b/tests/test_host_parity_smoke.py index d1aa3a3a61..73d5b52210 100644 --- a/tests/test_host_parity_smoke.py +++ b/tests/test_host_parity_smoke.py @@ -162,7 +162,7 @@ def test_generic_cli_types_share_profile(self): class TestTurnHostIdentities: def test_supported_hosts(self): - assert SUPPORTED_HOSTS == {"codex-cli", "codex-app-server", "claude-code", "dsh", "generic-cli"} + assert SUPPORTED_HOSTS == {"codex-cli", "codex-app-server", "claude-code", "dsh", "oar", "generic-cli"} assert set(SUPPORTED_TURN_HOST_IDENTITIES) == { "codex-cli", "claude-code", From b5b2a1c7842370ebd7ac3977b2fc77bab085f049 Mon Sep 17 00:00:00 2001 From: song Date: Sat, 5 Dec 2026 07:14:20 -0500 Subject: [PATCH 7/7] fix(oar): narrow model_settings mypy types, pin standardwebhooks 1.3.0 in Dashboard, and isolate PATH in runtime-readiness-live Signed-off-by: song --- apps/presentation/dashboard/package-lock.json | 89 +++---------------- apps/presentation/dashboard/package.json | 3 +- .../runtime-readiness-backend.py | 14 +++ .../native_chat/model_settings.py | 17 +++- 4 files changed, 40 insertions(+), 83 deletions(-) diff --git a/apps/presentation/dashboard/package-lock.json b/apps/presentation/dashboard/package-lock.json index e61acba3e9..fcde84b80c 100644 --- a/apps/presentation/dashboard/package-lock.json +++ b/apps/presentation/dashboard/package-lock.json @@ -69,6 +69,17 @@ } } }, + "node_modules/@anthropic-ai/sdk/node_modules/standardwebhooks": { + "version": "1.3.0", + "resolved": "http://mirrors.cloud.tencent.com/npm/standardwebhooks/-/standardwebhooks-1.3.0.tgz", + "integrity": "sha512-5W9skHjqAm2dlA9wWvglTP+oX47JX4lFXVk1aJV7+TG1snvTR4QXaVgPscEzvOw9GRreeavMwbqEeL+MGhZHCg==", + "license": "MIT", + "optional": true, + "dependencies": { + "@stablelib/base64": "^1.0.0", + "fast-sha256": "^1.3.0" + } + }, "node_modules/@aws-sdk/client-bedrock-runtime": { "version": "3.1127.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.1127.0.tgz", @@ -1367,72 +1378,6 @@ "license": "MIT", "optional": true }, - "node_modules/@stablelib/binary": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/binary/-/binary-1.0.1.tgz", - "integrity": "sha512-ClJWvmL6UBM/wjkvv/7m5VP3GMr9t0osr4yVgLZsLCOz4hGN9gIAFEqnJ0TsSMAN+n840nf2cHZnA5/KFqHC7Q==", - "license": "MIT", - "optional": true, - "dependencies": { - "@stablelib/int": "^1.0.1" - } - }, - "node_modules/@stablelib/ed25519": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@stablelib/ed25519/-/ed25519-1.0.3.tgz", - "integrity": "sha512-puIMWaX9QlRsbhxfDc5i+mNPMY+0TmQEskunY1rZEBPi1acBCVQAhnsk/1Hk50DGPtVsZtAWQg4NHGlVaO9Hqg==", - "license": "MIT", - "optional": true, - "dependencies": { - "@stablelib/random": "^1.0.2", - "@stablelib/sha512": "^1.0.1", - "@stablelib/wipe": "^1.0.1" - } - }, - "node_modules/@stablelib/hash": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/hash/-/hash-1.0.1.tgz", - "integrity": "sha512-eTPJc/stDkdtOcrNMZ6mcMK1e6yBbqRBaNW55XA1jU8w/7QdnCF0CmMmOD1m7VSkBR44PWrMHU2l6r8YEQHMgg==", - "license": "MIT", - "optional": true - }, - "node_modules/@stablelib/int": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/int/-/int-1.0.1.tgz", - "integrity": "sha512-byr69X/sDtDiIjIV6m4roLVWnNNlRGzsvxw+agj8CIEazqWGOQp2dTYgQhtyVXV9wpO6WyXRQUzLV/JRNumT2w==", - "license": "MIT", - "optional": true - }, - "node_modules/@stablelib/random": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@stablelib/random/-/random-1.0.2.tgz", - "integrity": "sha512-rIsE83Xpb7clHPVRlBj8qNe5L8ISQOzjghYQm/dZ7VaM2KHYwMW5adjQjrzTZCchFnNCNhkwtnOBa9HTMJCI8w==", - "license": "MIT", - "optional": true, - "dependencies": { - "@stablelib/binary": "^1.0.1", - "@stablelib/wipe": "^1.0.1" - } - }, - "node_modules/@stablelib/sha512": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/sha512/-/sha512-1.0.1.tgz", - "integrity": "sha512-13gl/iawHV9zvDKciLo1fQ8Bgn2Pvf7OV6amaRVKiq3pjQ3UmEpXxWiAfV8tYjUpeZroBxtyrwtdooQT/i3hzw==", - "license": "MIT", - "optional": true, - "dependencies": { - "@stablelib/binary": "^1.0.1", - "@stablelib/hash": "^1.0.1", - "@stablelib/wipe": "^1.0.1" - } - }, - "node_modules/@stablelib/wipe": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/wipe/-/wipe-1.0.1.tgz", - "integrity": "sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==", - "license": "MIT", - "optional": true - }, "node_modules/@standard-schema/spec": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", @@ -4754,18 +4699,6 @@ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "license": "BSD-3-Clause" }, - "node_modules/standardwebhooks": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.4.1.tgz", - "integrity": "sha512-K1p/g4/3BBh3lQE/u9F3Oa5Do2+pN35JUaxJf2UL8I13tZpV22SZ+JPbgelyD/pikkjrRj9cNBB2rbKwpg0GFA==", - "license": "MIT", - "optional": true, - "dependencies": { - "@stablelib/base64": "^1.0.1", - "@stablelib/ed25519": "^1.0.3", - "fast-sha256": "^1.3.0" - } - }, "node_modules/statuses": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", diff --git a/apps/presentation/dashboard/package.json b/apps/presentation/dashboard/package.json index 02da28c28d..d943d752c9 100644 --- a/apps/presentation/dashboard/package.json +++ b/apps/presentation/dashboard/package.json @@ -137,6 +137,7 @@ }, "cross-spawn": "^7.1.2", "nanoid": "3.3.18", - "postcss": "8.5.26" + "postcss": "8.5.26", + "standardwebhooks": "1.3.0" } } diff --git a/examples/personal-workspace-browser/runtime-readiness-backend.py b/examples/personal-workspace-browser/runtime-readiness-backend.py index f9e3e8db69..71880fa674 100644 --- a/examples/personal-workspace-browser/runtime-readiness-backend.py +++ b/examples/personal-workspace-browser/runtime-readiness-backend.py @@ -6,6 +6,7 @@ import json import os import runpy +import shutil import signal import socket import sys @@ -16,6 +17,19 @@ home = root / "home" home.mkdir(parents=True, exist_ok=True) os.environ["HOME"] = str(home) +if os.name != "nt": + # Isolate ambient PATH entries (such as npm's node_modules/.bin/pi or + # host-installed agent CLIs) while keeping the host's Node/shell tools + # needed by the LoopX TypeScript control-plane runtime. + runtime_bins = root / "runtime-bin" + runtime_bins.mkdir(parents=True, exist_ok=True) + for tool in ("node", "env", "sh", "git"): + resolved = shutil.which(tool) + if resolved: + target = runtime_bins / tool + if not target.exists(): + target.symlink_to(resolved) + os.environ["PATH"] = str(runtime_bins) tempfile.tempdir = str(root) for variable in ("TMPDIR", "TEMP", "TMP"): os.environ[variable] = str(root) diff --git a/loopx/capabilities/native_chat/model_settings.py b/loopx/capabilities/native_chat/model_settings.py index ce81ce1341..1260bd6f65 100644 --- a/loopx/capabilities/native_chat/model_settings.py +++ b/loopx/capabilities/native_chat/model_settings.py @@ -240,14 +240,23 @@ def observed_model_settings(adapter: ChatRuntimeAdapter, requested_effort: str | from ...chat_agent import CodexChatAgentError from ...chat.oar_chat_adapter import OarChatAdapter - observed_adapter = isinstance(adapter, (ACPStdioAdapter, CodexAppServerAdapter, AntigravityAdapter)) - settings = adapter.model_settings if observed_adapter or isinstance(adapter, OarChatAdapter) else {} + settings = ( + adapter.model_settings + if isinstance(adapter, (ACPStdioAdapter, CodexAppServerAdapter, AntigravityAdapter, OarChatAdapter)) + else {} + ) confirmed_model = requested_model if isinstance(adapter, AntigravityAdapter) and requested_model: from .antigravity_adapter import resolve_antigravity_model_placeholder confirmed_model, _ = resolve_antigravity_model_placeholder(requested_model, requested_effort) - verify_model = observed_adapter or (isinstance(adapter, OarChatAdapter) and adapter.runtime_id == "grok") - if confirmed_model and verify_model and adapter.current_model_id != confirmed_model: + if ( + confirmed_model + and ( + isinstance(adapter, (ACPStdioAdapter, CodexAppServerAdapter, AntigravityAdapter)) + or (isinstance(adapter, OarChatAdapter) and adapter.runtime_id == "grok") + ) + and adapter.current_model_id != confirmed_model + ): raise CodexChatAgentError("The Agent did not confirm the requested model; no message was sent.", error_code="unsupported_configuration", gate=None) if requested_effort and settings.get("agent_reasoning_effort") != requested_effort: