momentic 2.27.0 → 2.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +68 -68
- package/npm-shrinkwrap.json +101 -143
- package/package.json +1 -1
- package/static/assets/{index-qa6QP09j.js → index-OpiEiCq6.js} +1 -1
- package/static/index.html +1 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "momentic",
|
|
3
|
-
"version": "2.27.
|
|
3
|
+
"version": "2.27.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "momentic",
|
|
9
|
-
"version": "2.27.
|
|
9
|
+
"version": "2.27.1",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@actions/exec": "^1.1.1",
|
|
12
12
|
"@actions/io": "^1.1.3",
|
|
@@ -297,6 +297,18 @@
|
|
|
297
297
|
"@hapi/hoek": "^9.0.0"
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
|
+
"node_modules/@hono/node-server": {
|
|
301
|
+
"version": "1.19.7",
|
|
302
|
+
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.7.tgz",
|
|
303
|
+
"integrity": "sha512-vUcD0uauS7EU2caukW8z5lJKtoGMokxNbJtBiwHgpqxEXokaHCBkQUmCHhjFB1VUTWdqj25QoMkMKzgjq+uhrw==",
|
|
304
|
+
"license": "MIT",
|
|
305
|
+
"engines": {
|
|
306
|
+
"node": ">=18.14.1"
|
|
307
|
+
},
|
|
308
|
+
"peerDependencies": {
|
|
309
|
+
"hono": "^4"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
300
312
|
"node_modules/@inquirer/ansi": {
|
|
301
313
|
"version": "1.0.2",
|
|
302
314
|
"resolved": "https://registry.npmjs.org/@inquirer/ansi/-/ansi-1.0.2.tgz",
|
|
@@ -1137,11 +1149,12 @@
|
|
|
1137
1149
|
"license": "MIT"
|
|
1138
1150
|
},
|
|
1139
1151
|
"node_modules/@modelcontextprotocol/sdk": {
|
|
1140
|
-
"version": "1.
|
|
1141
|
-
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.
|
|
1142
|
-
"integrity": "sha512-
|
|
1152
|
+
"version": "1.25.0",
|
|
1153
|
+
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.25.0.tgz",
|
|
1154
|
+
"integrity": "sha512-z0Zhn/LmQ3yz91dEfd5QgS7DpSjA4pk+3z2++zKgn5L6iDFM9QapsVoAQSbKLvlrFsZk9+ru6yHHWNq2lCYJKQ==",
|
|
1143
1155
|
"license": "MIT",
|
|
1144
1156
|
"dependencies": {
|
|
1157
|
+
"@hono/node-server": "^1.19.7",
|
|
1145
1158
|
"ajv": "^8.17.1",
|
|
1146
1159
|
"ajv-formats": "^3.0.1",
|
|
1147
1160
|
"content-type": "^1.0.5",
|
|
@@ -1152,6 +1165,7 @@
|
|
|
1152
1165
|
"express": "^5.0.1",
|
|
1153
1166
|
"express-rate-limit": "^7.5.0",
|
|
1154
1167
|
"jose": "^6.1.1",
|
|
1168
|
+
"json-schema-typed": "^8.0.2",
|
|
1155
1169
|
"pkce-challenge": "^5.0.0",
|
|
1156
1170
|
"raw-body": "^3.0.0",
|
|
1157
1171
|
"zod": "^3.25 || ^4.0",
|
|
@@ -1361,31 +1375,35 @@
|
|
|
1361
1375
|
}
|
|
1362
1376
|
},
|
|
1363
1377
|
"node_modules/@modelcontextprotocol/sdk/node_modules/send": {
|
|
1364
|
-
"version": "1.2.
|
|
1365
|
-
"resolved": "https://registry.npmjs.org/send/-/send-1.2.
|
|
1366
|
-
"integrity": "sha512-
|
|
1378
|
+
"version": "1.2.1",
|
|
1379
|
+
"resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",
|
|
1380
|
+
"integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",
|
|
1367
1381
|
"license": "MIT",
|
|
1368
1382
|
"dependencies": {
|
|
1369
|
-
"debug": "^4.3
|
|
1383
|
+
"debug": "^4.4.3",
|
|
1370
1384
|
"encodeurl": "^2.0.0",
|
|
1371
1385
|
"escape-html": "^1.0.3",
|
|
1372
1386
|
"etag": "^1.8.1",
|
|
1373
1387
|
"fresh": "^2.0.0",
|
|
1374
|
-
"http-errors": "^2.0.
|
|
1375
|
-
"mime-types": "^3.0.
|
|
1388
|
+
"http-errors": "^2.0.1",
|
|
1389
|
+
"mime-types": "^3.0.2",
|
|
1376
1390
|
"ms": "^2.1.3",
|
|
1377
1391
|
"on-finished": "^2.4.1",
|
|
1378
1392
|
"range-parser": "^1.2.1",
|
|
1379
|
-
"statuses": "^2.0.
|
|
1393
|
+
"statuses": "^2.0.2"
|
|
1380
1394
|
},
|
|
1381
1395
|
"engines": {
|
|
1382
1396
|
"node": ">= 18"
|
|
1397
|
+
},
|
|
1398
|
+
"funding": {
|
|
1399
|
+
"type": "opencollective",
|
|
1400
|
+
"url": "https://opencollective.com/express"
|
|
1383
1401
|
}
|
|
1384
1402
|
},
|
|
1385
1403
|
"node_modules/@modelcontextprotocol/sdk/node_modules/serve-static": {
|
|
1386
|
-
"version": "2.2.
|
|
1387
|
-
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.
|
|
1388
|
-
"integrity": "sha512-
|
|
1404
|
+
"version": "2.2.1",
|
|
1405
|
+
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz",
|
|
1406
|
+
"integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",
|
|
1389
1407
|
"license": "MIT",
|
|
1390
1408
|
"dependencies": {
|
|
1391
1409
|
"encodeurl": "^2.0.0",
|
|
@@ -1395,6 +1413,10 @@
|
|
|
1395
1413
|
},
|
|
1396
1414
|
"engines": {
|
|
1397
1415
|
"node": ">= 18"
|
|
1416
|
+
},
|
|
1417
|
+
"funding": {
|
|
1418
|
+
"type": "opencollective",
|
|
1419
|
+
"url": "https://opencollective.com/express"
|
|
1398
1420
|
}
|
|
1399
1421
|
},
|
|
1400
1422
|
"node_modules/@modelcontextprotocol/sdk/node_modules/type-is": {
|
|
@@ -2336,9 +2358,9 @@
|
|
|
2336
2358
|
"license": "MIT"
|
|
2337
2359
|
},
|
|
2338
2360
|
"node_modules/@standard-schema/spec": {
|
|
2339
|
-
"version": "1.
|
|
2340
|
-
"resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.
|
|
2341
|
-
"integrity": "sha512-
|
|
2361
|
+
"version": "1.1.0",
|
|
2362
|
+
"resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",
|
|
2363
|
+
"integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",
|
|
2342
2364
|
"license": "MIT"
|
|
2343
2365
|
},
|
|
2344
2366
|
"node_modules/@tokenizer/token": {
|
|
@@ -3697,13 +3719,43 @@
|
|
|
3697
3719
|
}
|
|
3698
3720
|
},
|
|
3699
3721
|
"node_modules/fetch-cookie": {
|
|
3700
|
-
"version": "3.
|
|
3701
|
-
"resolved": "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-3.
|
|
3702
|
-
"integrity": "sha512-
|
|
3722
|
+
"version": "3.2.0",
|
|
3723
|
+
"resolved": "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-3.2.0.tgz",
|
|
3724
|
+
"integrity": "sha512-n61pQIxP25C6DRhcJxn7BDzgHP/+S56Urowb5WFxtcRMpU6drqXD90xjyAsVQYsNSNNVbaCcYY1DuHsdkZLuiA==",
|
|
3703
3725
|
"license": "Unlicense",
|
|
3704
3726
|
"dependencies": {
|
|
3705
3727
|
"set-cookie-parser": "^2.4.8",
|
|
3706
|
-
"tough-cookie": "^
|
|
3728
|
+
"tough-cookie": "^6.0.0"
|
|
3729
|
+
}
|
|
3730
|
+
},
|
|
3731
|
+
"node_modules/fetch-cookie/node_modules/tldts": {
|
|
3732
|
+
"version": "7.0.19",
|
|
3733
|
+
"resolved": "https://registry.npmjs.org/tldts/-/tldts-7.0.19.tgz",
|
|
3734
|
+
"integrity": "sha512-8PWx8tvC4jDB39BQw1m4x8y5MH1BcQ5xHeL2n7UVFulMPH/3Q0uiamahFJ3lXA0zO2SUyRXuVVbWSDmstlt9YA==",
|
|
3735
|
+
"license": "MIT",
|
|
3736
|
+
"dependencies": {
|
|
3737
|
+
"tldts-core": "^7.0.19"
|
|
3738
|
+
},
|
|
3739
|
+
"bin": {
|
|
3740
|
+
"tldts": "bin/cli.js"
|
|
3741
|
+
}
|
|
3742
|
+
},
|
|
3743
|
+
"node_modules/fetch-cookie/node_modules/tldts-core": {
|
|
3744
|
+
"version": "7.0.19",
|
|
3745
|
+
"resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.0.19.tgz",
|
|
3746
|
+
"integrity": "sha512-lJX2dEWx0SGH4O6p+7FPwYmJ/bu1JbcGJ8RLaG9b7liIgZ85itUVEPbMtWRVrde/0fnDPEPHW10ZsKW3kVsE9A==",
|
|
3747
|
+
"license": "MIT"
|
|
3748
|
+
},
|
|
3749
|
+
"node_modules/fetch-cookie/node_modules/tough-cookie": {
|
|
3750
|
+
"version": "6.0.0",
|
|
3751
|
+
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.0.tgz",
|
|
3752
|
+
"integrity": "sha512-kXuRi1mtaKMrsLUxz3sQYvVl37B0Ns6MzfrtV5DvJceE9bPyspOqk9xxv7XbZWcfLWbFmm997vl83qUWVJA64w==",
|
|
3753
|
+
"license": "BSD-3-Clause",
|
|
3754
|
+
"dependencies": {
|
|
3755
|
+
"tldts": "^7.0.5"
|
|
3756
|
+
},
|
|
3757
|
+
"engines": {
|
|
3758
|
+
"node": ">=16"
|
|
3707
3759
|
}
|
|
3708
3760
|
},
|
|
3709
3761
|
"node_modules/fetch-retry": {
|
|
@@ -4060,6 +4112,16 @@
|
|
|
4060
4112
|
"integrity": "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==",
|
|
4061
4113
|
"license": "MIT"
|
|
4062
4114
|
},
|
|
4115
|
+
"node_modules/hono": {
|
|
4116
|
+
"version": "4.11.1",
|
|
4117
|
+
"resolved": "https://registry.npmjs.org/hono/-/hono-4.11.1.tgz",
|
|
4118
|
+
"integrity": "sha512-KsFcH0xxHes0J4zaQgWbYwmz3UPOOskdqZmItstUG93+Wk1ePBLkLGwbP9zlmh1BFUiL8Qp+Xfu9P7feJWpGNg==",
|
|
4119
|
+
"license": "MIT",
|
|
4120
|
+
"peer": true,
|
|
4121
|
+
"engines": {
|
|
4122
|
+
"node": ">=16.9.0"
|
|
4123
|
+
}
|
|
4124
|
+
},
|
|
4063
4125
|
"node_modules/http-errors": {
|
|
4064
4126
|
"version": "2.0.1",
|
|
4065
4127
|
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
|
|
@@ -4485,6 +4547,12 @@
|
|
|
4485
4547
|
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
|
|
4486
4548
|
"license": "MIT"
|
|
4487
4549
|
},
|
|
4550
|
+
"node_modules/json-schema-typed": {
|
|
4551
|
+
"version": "8.0.2",
|
|
4552
|
+
"resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz",
|
|
4553
|
+
"integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==",
|
|
4554
|
+
"license": "BSD-2-Clause"
|
|
4555
|
+
},
|
|
4488
4556
|
"node_modules/jsonwebtoken": {
|
|
4489
4557
|
"version": "9.0.3",
|
|
4490
4558
|
"resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz",
|
|
@@ -5788,9 +5856,9 @@
|
|
|
5788
5856
|
}
|
|
5789
5857
|
},
|
|
5790
5858
|
"node_modules/send": {
|
|
5791
|
-
"version": "0.19.
|
|
5792
|
-
"resolved": "https://registry.npmjs.org/send/-/send-0.19.
|
|
5793
|
-
"integrity": "sha512-
|
|
5859
|
+
"version": "0.19.2",
|
|
5860
|
+
"resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz",
|
|
5861
|
+
"integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==",
|
|
5794
5862
|
"license": "MIT",
|
|
5795
5863
|
"dependencies": {
|
|
5796
5864
|
"debug": "2.6.9",
|
|
@@ -5799,13 +5867,13 @@
|
|
|
5799
5867
|
"encodeurl": "~2.0.0",
|
|
5800
5868
|
"escape-html": "~1.0.3",
|
|
5801
5869
|
"etag": "~1.8.1",
|
|
5802
|
-
"fresh": "0.5.2",
|
|
5803
|
-
"http-errors": "2.0.
|
|
5870
|
+
"fresh": "~0.5.2",
|
|
5871
|
+
"http-errors": "~2.0.1",
|
|
5804
5872
|
"mime": "1.6.0",
|
|
5805
5873
|
"ms": "2.1.3",
|
|
5806
|
-
"on-finished": "2.4.1",
|
|
5874
|
+
"on-finished": "~2.4.1",
|
|
5807
5875
|
"range-parser": "~1.2.1",
|
|
5808
|
-
"statuses": "2.0.
|
|
5876
|
+
"statuses": "~2.0.2"
|
|
5809
5877
|
},
|
|
5810
5878
|
"engines": {
|
|
5811
5879
|
"node": ">= 0.8.0"
|
|
@@ -5826,22 +5894,6 @@
|
|
|
5826
5894
|
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
|
|
5827
5895
|
"license": "MIT"
|
|
5828
5896
|
},
|
|
5829
|
-
"node_modules/send/node_modules/http-errors": {
|
|
5830
|
-
"version": "2.0.0",
|
|
5831
|
-
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
|
5832
|
-
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
|
5833
|
-
"license": "MIT",
|
|
5834
|
-
"dependencies": {
|
|
5835
|
-
"depd": "2.0.0",
|
|
5836
|
-
"inherits": "2.0.4",
|
|
5837
|
-
"setprototypeof": "1.2.0",
|
|
5838
|
-
"statuses": "2.0.1",
|
|
5839
|
-
"toidentifier": "1.0.1"
|
|
5840
|
-
},
|
|
5841
|
-
"engines": {
|
|
5842
|
-
"node": ">= 0.8"
|
|
5843
|
-
}
|
|
5844
|
-
},
|
|
5845
5897
|
"node_modules/send/node_modules/mime": {
|
|
5846
5898
|
"version": "1.6.0",
|
|
5847
5899
|
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
|
@@ -5854,115 +5906,21 @@
|
|
|
5854
5906
|
"node": ">=4"
|
|
5855
5907
|
}
|
|
5856
5908
|
},
|
|
5857
|
-
"node_modules/send/node_modules/statuses": {
|
|
5858
|
-
"version": "2.0.1",
|
|
5859
|
-
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
|
5860
|
-
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
|
5861
|
-
"license": "MIT",
|
|
5862
|
-
"engines": {
|
|
5863
|
-
"node": ">= 0.8"
|
|
5864
|
-
}
|
|
5865
|
-
},
|
|
5866
5909
|
"node_modules/serve-static": {
|
|
5867
|
-
"version": "1.16.
|
|
5868
|
-
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.
|
|
5869
|
-
"integrity": "sha512-
|
|
5910
|
+
"version": "1.16.3",
|
|
5911
|
+
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz",
|
|
5912
|
+
"integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==",
|
|
5870
5913
|
"license": "MIT",
|
|
5871
5914
|
"dependencies": {
|
|
5872
5915
|
"encodeurl": "~2.0.0",
|
|
5873
5916
|
"escape-html": "~1.0.3",
|
|
5874
5917
|
"parseurl": "~1.3.3",
|
|
5875
|
-
"send": "0.19.
|
|
5918
|
+
"send": "~0.19.1"
|
|
5876
5919
|
},
|
|
5877
5920
|
"engines": {
|
|
5878
5921
|
"node": ">= 0.8.0"
|
|
5879
5922
|
}
|
|
5880
5923
|
},
|
|
5881
|
-
"node_modules/serve-static/node_modules/debug": {
|
|
5882
|
-
"version": "2.6.9",
|
|
5883
|
-
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
|
5884
|
-
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
|
5885
|
-
"license": "MIT",
|
|
5886
|
-
"dependencies": {
|
|
5887
|
-
"ms": "2.0.0"
|
|
5888
|
-
}
|
|
5889
|
-
},
|
|
5890
|
-
"node_modules/serve-static/node_modules/debug/node_modules/ms": {
|
|
5891
|
-
"version": "2.0.0",
|
|
5892
|
-
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
|
5893
|
-
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
|
|
5894
|
-
"license": "MIT"
|
|
5895
|
-
},
|
|
5896
|
-
"node_modules/serve-static/node_modules/http-errors": {
|
|
5897
|
-
"version": "2.0.0",
|
|
5898
|
-
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
|
5899
|
-
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
|
5900
|
-
"license": "MIT",
|
|
5901
|
-
"dependencies": {
|
|
5902
|
-
"depd": "2.0.0",
|
|
5903
|
-
"inherits": "2.0.4",
|
|
5904
|
-
"setprototypeof": "1.2.0",
|
|
5905
|
-
"statuses": "2.0.1",
|
|
5906
|
-
"toidentifier": "1.0.1"
|
|
5907
|
-
},
|
|
5908
|
-
"engines": {
|
|
5909
|
-
"node": ">= 0.8"
|
|
5910
|
-
}
|
|
5911
|
-
},
|
|
5912
|
-
"node_modules/serve-static/node_modules/mime": {
|
|
5913
|
-
"version": "1.6.0",
|
|
5914
|
-
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
|
5915
|
-
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
|
|
5916
|
-
"license": "MIT",
|
|
5917
|
-
"bin": {
|
|
5918
|
-
"mime": "cli.js"
|
|
5919
|
-
},
|
|
5920
|
-
"engines": {
|
|
5921
|
-
"node": ">=4"
|
|
5922
|
-
}
|
|
5923
|
-
},
|
|
5924
|
-
"node_modules/serve-static/node_modules/send": {
|
|
5925
|
-
"version": "0.19.0",
|
|
5926
|
-
"resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
|
|
5927
|
-
"integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
|
|
5928
|
-
"license": "MIT",
|
|
5929
|
-
"dependencies": {
|
|
5930
|
-
"debug": "2.6.9",
|
|
5931
|
-
"depd": "2.0.0",
|
|
5932
|
-
"destroy": "1.2.0",
|
|
5933
|
-
"encodeurl": "~1.0.2",
|
|
5934
|
-
"escape-html": "~1.0.3",
|
|
5935
|
-
"etag": "~1.8.1",
|
|
5936
|
-
"fresh": "0.5.2",
|
|
5937
|
-
"http-errors": "2.0.0",
|
|
5938
|
-
"mime": "1.6.0",
|
|
5939
|
-
"ms": "2.1.3",
|
|
5940
|
-
"on-finished": "2.4.1",
|
|
5941
|
-
"range-parser": "~1.2.1",
|
|
5942
|
-
"statuses": "2.0.1"
|
|
5943
|
-
},
|
|
5944
|
-
"engines": {
|
|
5945
|
-
"node": ">= 0.8.0"
|
|
5946
|
-
}
|
|
5947
|
-
},
|
|
5948
|
-
"node_modules/serve-static/node_modules/send/node_modules/encodeurl": {
|
|
5949
|
-
"version": "1.0.2",
|
|
5950
|
-
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
|
5951
|
-
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
|
|
5952
|
-
"license": "MIT",
|
|
5953
|
-
"engines": {
|
|
5954
|
-
"node": ">= 0.8"
|
|
5955
|
-
}
|
|
5956
|
-
},
|
|
5957
|
-
"node_modules/serve-static/node_modules/statuses": {
|
|
5958
|
-
"version": "2.0.1",
|
|
5959
|
-
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
|
5960
|
-
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
|
5961
|
-
"license": "MIT",
|
|
5962
|
-
"engines": {
|
|
5963
|
-
"node": ">= 0.8"
|
|
5964
|
-
}
|
|
5965
|
-
},
|
|
5966
5924
|
"node_modules/set-cookie-parser": {
|
|
5967
5925
|
"version": "2.7.2",
|
|
5968
5926
|
"resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz",
|
package/package.json
CHANGED
|
@@ -957,7 +957,7 @@ You can add a description to the \`${Vg}\` by passing a \`${JVe}\` component as
|
|
|
957
957
|
|
|
958
958
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Vg}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
959
959
|
|
|
960
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return k.useEffect(()=>{var a;document.getElementById((a=e.current)==null?void 0:a.getAttribute("aria-describedby"))||console.warn(u)},[u,e]),null},WXt=KVe,qXt=VVe,JXt=HVe,eHe=GVe,uHe=UVe,tHe=QVe,aHe=XVe,nHe=qVe,rHe=ZVe;const Oq=WXt,ZXt=qXt,QXt=JXt,iHe=k.forwardRef(({className:e,...u},t)=>m.jsx(eHe,{className:De("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...u,ref:t}));iHe.displayName=eHe.displayName;const w8=k.forwardRef(({className:e,...u},t)=>m.jsxs(QXt,{children:[m.jsx(iHe,{}),m.jsx(uHe,{ref:t,className:De("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",e),...u})]}));w8.displayName=uHe.displayName;const T8=({className:e,...u})=>m.jsx("div",{className:De("flex flex-col space-y-2 text-center sm:text-left",e),...u});T8.displayName="AlertDialogHeader";const O8=({className:e,...u})=>m.jsx("div",{className:De("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...u});O8.displayName="AlertDialogFooter";const z8=k.forwardRef(({className:e,...u},t)=>m.jsx(nHe,{ref:t,className:De("text-lg font-semibold",e),...u}));z8.displayName=nHe.displayName;const _8=k.forwardRef(({className:e,...u},t)=>m.jsx(rHe,{ref:t,className:De("text-muted-foreground text-sm",e),...u}));_8.displayName=rHe.displayName;const M8=k.forwardRef(({className:e,...u},t)=>m.jsx(tHe,{ref:t,className:De(jx(),e),...u}));M8.displayName=tHe.displayName;const rte=k.forwardRef(({className:e,...u},t)=>m.jsx(aHe,{ref:t,className:De(jx({variant:"outline"}),"mt-2 sm:mt-0",e),...u}));rte.displayName=aHe.displayName;const kme=e=>{const u=ti(),[t,a]=k.useState(!1),n=e.pathSegments.slice(0,-1),[,r]=Hs(async()=>{const i={pathSegments:e.pathSegments,recursive:!0};try{await u("/api/folders",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),a(!1)}catch(o){Fa.error("Failed to delete folder.",{description:`${o}`})}q5(n)},[e.pathSegments,n]);return m.jsxs(Oq,{open:t,onOpenChange:a,children:[m.jsx(ZXt,{asChild:!0,children:m.jsx("div",{children:m.jsx(nte,{className:"text-destructive",onSelect:i=>{i.preventDefault()},children:"Delete"})})}),m.jsxs(w8,{children:[m.jsxs(T8,{children:[m.jsx(z8,{children:"Are you absolutely sure?"}),m.jsx(_8,{children:"This action cannot be undone. This will permanently delete this folder and all of its contents recursively."})]}),m.jsxs(O8,{children:[m.jsx(rte,{children:"Cancel"}),m.jsx(M8,{className:jx({variant:"destructive"}),onClick:r,children:"Delete"})]})]})]})},YXt=V({name:F().min(1)}),bme=e=>{const u=ti(),[t,a]=k.useState(!1),n=jd({mode:"onChange",resolver:Ld(YXt),defaultValues:{name:e.pathSegments.at(-1)}}),r=e.pathSegments.slice(0,-1),[i,o]=Hs(async c=>{const d={pathSegments:e.pathSegments,newPathSegments:[...r,c.name]};try{await u("/api/folders",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)}),a(!1)}catch(E){Fa.error("Failed to reanme folder.",{description:`${E}`})}q5(r)},[e.pathSegments,r]),{isDirty:s,isValid:l}=n.formState;return k.useEffect(()=>{n.reset()},[n,t]),m.jsxs(dl,{open:t,onOpenChange:a,children:[m.jsx(El,{asChild:!0,children:m.jsx("div",{children:m.jsx(nte,{onSelect:c=>{c.preventDefault()},children:"Rename"})})}),m.jsxs(is,{children:[m.jsxs(os,{children:[m.jsx(ss,{children:"Rename folder"}),m.jsx(hl,{children:"Rename a folder"})]}),m.jsx($d,{...n,children:m.jsxs("form",{onSubmit:n.handleSubmit(o),className:"space-y-4",children:[m.jsx(Tt,{control:n.control,name:"name",render:({field:c})=>m.jsxs(yt,{children:[m.jsx(Br,{children:"Name"}),m.jsx(Ft,{children:m.jsx(Pt,{placeholder:"Folder name",...c})}),m.jsx(At,{})]})}),m.jsx(rc,{children:m.jsx(bu,{type:"submit",disabled:i.loading||!s||!l,children:"Rename folder"})})]})})]})]})},oHe=e=>{const u=pE(),{data:t}=nee(e.pathSegments),a=t==null?void 0:t.contents.filter(o=>o.isDirectory).toSorted((o,s)=>o.name.localeCompare(s.name)),n="/browse/"+e.pathSegments.join("/"),r=u.pathname===n,i=u.pathname.startsWith(n);return a!=null&&a.length?m.jsxs(gme,{children:[m.jsx(YX,{children:m.jsxs(jk,{className:"group/collapsible [&[data-state=open]>button>svg:first-child]:rotate-90",defaultOpen:i,children:[m.jsx(rC,{asChild:!0,isActive:r,children:m.jsx(xme,{asChild:!0,children:m.jsxs(s1,{to:n,children:[e.icon,m.jsx("span",{children:e.title})]})})}),m.jsx(Lk,{asChild:!0,children:m.jsx(q_e,{children:m.jsx(_4,{className:"transition-transform"})})}),m.jsx($k,{children:m.jsx(J_e,{className:"mr-0 translate-x-0 pr-0",children:a==null?void 0:a.map(o=>m.jsx(oHe,{title:o.name,pathSegments:o.pathSegments,icon:m.jsx(MX,{})},o.name))})})]})}),m.jsxs(vme,{children:[m.jsx(bme,{pathSegments:e.pathSegments}),m.jsx(kme,{pathSegments:e.pathSegments})]})]}):m.jsxs(gme,{children:[m.jsx(xme,{asChild:!0,children:m.jsx(rC,{asChild:!0,isActive:r,children:m.jsxs(s1,{to:n,children:[e.icon,m.jsx("span",{children:e.title})]})})}),m.jsxs(vme,{children:[m.jsx(bme,{pathSegments:e.pathSegments}),m.jsx(kme,{pathSegments:e.pathSegments})]})]})},XXt=()=>{const{data:e}=nee(["."]),u=e==null?void 0:e.contents.filter(t=>t.isDirectory).toSorted((t,a)=>t.name.localeCompare(a.name));return m.jsxs(U_e,{children:[m.jsx(W_e,{asChild:!0,children:m.jsx(s1,{to:"/browse",children:"Repository"})}),m.jsx(NO,{children:u==null?void 0:u.map(t=>m.jsx(oHe,{title:t.name,pathSegments:t.pathSegments,icon:m.jsx(MX,{})},t.name))})]})};function eea(){const e=ti(),u=Nd(),[t,a]=nFe("root"),[,n]=Hs(async r=>{try{await e("/api/projects/set",{method:"POST",body:JSON.stringify({configFilePath:r}),headers:{"Content-Type":"application/json"}}),u(0)}catch(i){Fa.error("Failed to switch projects.",{description:`${i}`})}},[]);return m.jsx(NO,{children:m.jsx(YX,{children:m.jsxs(YKe,{children:[m.jsx(XKe,{asChild:!0,children:m.jsxs(rC,{className:"w-fit px-1.5",children:[m.jsx("span",{className:"truncate font-semibold",children:a.name}),m.jsx(hp,{className:"opacity-50"})]})}),m.jsx(Que,{align:"start",side:"bottom",children:m.jsxs(sYt,{children:[m.jsx(eVe,{children:"Switch project"}),m.jsx(uVe,{className:"p-0",children:m.jsxs(Q5,{children:[m.jsx(Y5,{autoFocus:!0,className:"h-9",placeholder:"Search project..."}),m.jsx(Gh,{children:"No project found."}),m.jsx(Hh,{children:t.map((r,i)=>m.jsxs(t1,{onSelect:()=>{n(r.configFilePath)},children:[r.name,m.jsx(Yl,{className:De("ml-auto h-4 w-4",r.name===a.name?"opacity-100":"opacity-0")})]},i))})]})})]})})]})})})}const uea=()=>m.jsxs(V_e,{className:"border-r-0",collapsible:"none",children:[m.jsxs(H_e,{children:[m.jsx(eea,{}),m.jsx(lXt,{})]}),m.jsx(G_e,{children:m.jsx(XXt,{})})]});function tea(){const e=Nd();return gU("/",u=>{var n;if(u.ctrlKey||u.metaKey||u.altKey)return;const t=u.target;!t||!(t instanceof HTMLElement)||t.isContentEditable||["INPUT","TEXTAREA","SELECT"].includes(t.tagName)||((n=t.getAttribute)==null?void 0:n.call(t,"role"))==="textbox"||(u.preventDefault(),e("/search"))}),m.jsx("div",{className:"grid h-screen max-h-screen min-h-screen w-full overflow-hidden",children:m.jsxs(TVe,{direction:"horizontal",children:[m.jsx(B8,{defaultSize:10,className:"min-w-64",children:m.jsx(uea,{})}),m.jsx(OVe,{withHandle:!0}),m.jsx(B8,{children:m.jsx(hhu,{})})]})})}function aea(e){const{err:u}=e;let t,a;return u instanceof Error?(t=u.name,a=u.message):(t="Error",a="An unknown error occurred"),m.jsxs("div",{className:"flex h-screen w-full flex-col items-center justify-center gap-2 text-center",children:[m.jsx("h2",{className:"text-xl font-semibold",children:t}),m.jsx("div",{className:"text-destructive max-w-lg",children:a})]})}var nea=e=>Array.from(e).map(t=>t.getModelContext()).sort((t,a)=>(a.priority??0)-(t.priority??0)).reduce((t,a)=>{var n;if(a.system&&(t.system?t.system+=`
|
|
960
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return k.useEffect(()=>{var a;document.getElementById((a=e.current)==null?void 0:a.getAttribute("aria-describedby"))||console.warn(u)},[u,e]),null},WXt=KVe,qXt=VVe,JXt=HVe,eHe=GVe,uHe=UVe,tHe=QVe,aHe=XVe,nHe=qVe,rHe=ZVe;const Oq=WXt,ZXt=qXt,QXt=JXt,iHe=k.forwardRef(({className:e,...u},t)=>m.jsx(eHe,{className:De("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...u,ref:t}));iHe.displayName=eHe.displayName;const w8=k.forwardRef(({className:e,...u},t)=>m.jsxs(QXt,{children:[m.jsx(iHe,{}),m.jsx(uHe,{ref:t,className:De("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",e),...u})]}));w8.displayName=uHe.displayName;const T8=({className:e,...u})=>m.jsx("div",{className:De("flex flex-col space-y-2 text-center sm:text-left",e),...u});T8.displayName="AlertDialogHeader";const O8=({className:e,...u})=>m.jsx("div",{className:De("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...u});O8.displayName="AlertDialogFooter";const z8=k.forwardRef(({className:e,...u},t)=>m.jsx(nHe,{ref:t,className:De("text-lg font-semibold",e),...u}));z8.displayName=nHe.displayName;const _8=k.forwardRef(({className:e,...u},t)=>m.jsx(rHe,{ref:t,className:De("text-muted-foreground text-sm",e),...u}));_8.displayName=rHe.displayName;const M8=k.forwardRef(({className:e,...u},t)=>m.jsx(tHe,{ref:t,className:De(jx(),e),...u}));M8.displayName=tHe.displayName;const rte=k.forwardRef(({className:e,...u},t)=>m.jsx(aHe,{ref:t,className:De(jx({variant:"outline"}),"mt-2 sm:mt-0",e),...u}));rte.displayName=aHe.displayName;const kme=e=>{const u=ti(),[t,a]=k.useState(!1),n=e.pathSegments.slice(0,-1),[,r]=Hs(async()=>{const i={pathSegments:e.pathSegments,recursive:!0};try{await u("/api/folders",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),a(!1)}catch(o){Fa.error("Failed to delete folder.",{description:`${o}`})}q5(n)},[e.pathSegments,n]);return m.jsxs(Oq,{open:t,onOpenChange:a,children:[m.jsx(ZXt,{asChild:!0,children:m.jsx("div",{children:m.jsx(nte,{className:"text-destructive",onSelect:i=>{i.preventDefault()},children:"Delete"})})}),m.jsxs(w8,{children:[m.jsxs(T8,{children:[m.jsx(z8,{children:"Are you absolutely sure?"}),m.jsx(_8,{children:"This action cannot be undone. This will permanently delete this folder and all of its contents recursively."})]}),m.jsxs(O8,{children:[m.jsx(rte,{children:"Cancel"}),m.jsx(M8,{className:jx({variant:"destructive"}),onClick:r,children:"Delete"})]})]})]})},YXt=V({name:F().min(1)}),bme=e=>{const u=ti(),[t,a]=k.useState(!1),n=jd({mode:"onChange",resolver:Ld(YXt),defaultValues:{name:e.pathSegments.at(-1)}}),r=e.pathSegments.slice(0,-1),[i,o]=Hs(async c=>{const d={pathSegments:e.pathSegments,newPathSegments:[...r,c.name]};try{await u("/api/folders",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)}),a(!1)}catch(E){Fa.error("Failed to reanme folder.",{description:`${E}`})}q5(r)},[e.pathSegments,r]),{isDirty:s,isValid:l}=n.formState;return k.useEffect(()=>{n.reset()},[n,t]),m.jsxs(dl,{open:t,onOpenChange:a,children:[m.jsx(El,{asChild:!0,children:m.jsx("div",{children:m.jsx(nte,{onSelect:c=>{c.preventDefault()},children:"Rename"})})}),m.jsxs(is,{children:[m.jsxs(os,{children:[m.jsx(ss,{children:"Rename folder"}),m.jsx(hl,{children:"Rename a folder"})]}),m.jsx($d,{...n,children:m.jsxs("form",{onSubmit:n.handleSubmit(o),className:"space-y-4",children:[m.jsx(Tt,{control:n.control,name:"name",render:({field:c})=>m.jsxs(yt,{children:[m.jsx(Br,{children:"Name"}),m.jsx(Ft,{children:m.jsx(Pt,{placeholder:"Folder name",...c})}),m.jsx(At,{})]})}),m.jsx(rc,{children:m.jsx(bu,{type:"submit",disabled:i.loading||!s||!l,children:"Rename folder"})})]})})]})]})},oHe=e=>{const u=pE(),{data:t}=nee(e.pathSegments),a=t==null?void 0:t.contents.filter(o=>o.isDirectory).toSorted((o,s)=>o.name.localeCompare(s.name)),n="/browse/"+e.pathSegments.join("/"),r=u.pathname===n,i=u.pathname.startsWith(n);return a!=null&&a.length?m.jsxs(gme,{children:[m.jsx(YX,{children:m.jsxs(jk,{className:"group/collapsible [&[data-state=open]>button>svg:first-child]:rotate-90",defaultOpen:i,children:[m.jsx(rC,{asChild:!0,isActive:r,children:m.jsx(xme,{asChild:!0,children:m.jsxs(s1,{to:n,children:[e.icon,m.jsx("span",{children:e.title})]})})}),m.jsx(Lk,{asChild:!0,children:m.jsx(q_e,{children:m.jsx(_4,{className:"transition-transform"})})}),m.jsx($k,{children:m.jsx(J_e,{className:"mr-0 translate-x-0 pr-0",children:a==null?void 0:a.map(o=>m.jsx(oHe,{title:o.name,pathSegments:o.pathSegments,icon:m.jsx(MX,{})},o.name))})})]})}),m.jsxs(vme,{children:[m.jsx(bme,{pathSegments:e.pathSegments}),m.jsx(kme,{pathSegments:e.pathSegments})]})]}):m.jsxs(gme,{children:[m.jsx(xme,{asChild:!0,children:m.jsx(rC,{asChild:!0,isActive:r,children:m.jsxs(s1,{to:n,children:[e.icon,m.jsx("span",{children:e.title})]})})}),m.jsxs(vme,{children:[m.jsx(bme,{pathSegments:e.pathSegments}),m.jsx(kme,{pathSegments:e.pathSegments})]})]})},XXt=()=>{const{data:e}=nee(["."]),u=e==null?void 0:e.contents.filter(t=>t.isDirectory).toSorted((t,a)=>t.name.localeCompare(a.name));return m.jsxs(U_e,{children:[m.jsx(W_e,{asChild:!0,children:m.jsx(s1,{to:"/browse",className:"hover:text-foreground",children:"Repository"})}),m.jsx(NO,{children:u==null?void 0:u.map(t=>m.jsx(oHe,{title:t.name,pathSegments:t.pathSegments,icon:m.jsx(MX,{})},t.name))})]})};function eea(){const e=ti(),u=Nd(),[t,a]=nFe("root"),[,n]=Hs(async r=>{try{await e("/api/projects/set",{method:"POST",body:JSON.stringify({configFilePath:r}),headers:{"Content-Type":"application/json"}}),u(0)}catch(i){Fa.error("Failed to switch projects.",{description:`${i}`})}},[]);return m.jsx(NO,{children:m.jsx(YX,{children:m.jsxs(YKe,{children:[m.jsx(XKe,{asChild:!0,children:m.jsxs(rC,{className:"w-fit px-1.5",children:[m.jsx("span",{className:"truncate font-semibold",children:a.name}),m.jsx(hp,{className:"opacity-50"})]})}),m.jsx(Que,{align:"start",side:"bottom",children:m.jsxs(sYt,{children:[m.jsx(eVe,{children:"Switch project"}),m.jsx(uVe,{className:"p-0",children:m.jsxs(Q5,{children:[m.jsx(Y5,{autoFocus:!0,className:"h-9",placeholder:"Search project..."}),m.jsx(Gh,{children:"No project found."}),m.jsx(Hh,{children:t.map((r,i)=>m.jsxs(t1,{onSelect:()=>{n(r.configFilePath)},children:[r.name,m.jsx(Yl,{className:De("ml-auto h-4 w-4",r.name===a.name?"opacity-100":"opacity-0")})]},i))})]})})]})})]})})})}const uea=()=>m.jsxs(V_e,{className:"border-r-0",collapsible:"none",children:[m.jsxs(H_e,{children:[m.jsx(eea,{}),m.jsx(lXt,{})]}),m.jsx(G_e,{children:m.jsx(XXt,{})})]});function tea(){const e=Nd();return gU("/",u=>{var n;if(u.ctrlKey||u.metaKey||u.altKey)return;const t=u.target;!t||!(t instanceof HTMLElement)||t.isContentEditable||["INPUT","TEXTAREA","SELECT"].includes(t.tagName)||((n=t.getAttribute)==null?void 0:n.call(t,"role"))==="textbox"||(u.preventDefault(),e("/search"))}),m.jsx("div",{className:"grid h-screen max-h-screen min-h-screen w-full overflow-hidden",children:m.jsxs(TVe,{direction:"horizontal",children:[m.jsx(B8,{defaultSize:10,className:"min-w-64",children:m.jsx(uea,{})}),m.jsx(OVe,{withHandle:!0}),m.jsx(B8,{children:m.jsx(hhu,{})})]})})}function aea(e){const{err:u}=e;let t,a;return u instanceof Error?(t=u.name,a=u.message):(t="Error",a="An unknown error occurred"),m.jsxs("div",{className:"flex h-screen w-full flex-col items-center justify-center gap-2 text-center",children:[m.jsx("h2",{className:"text-xl font-semibold",children:t}),m.jsx("div",{className:"text-destructive max-w-lg",children:a})]})}var nea=e=>Array.from(e).map(t=>t.getModelContext()).sort((t,a)=>(a.priority??0)-(t.priority??0)).reduce((t,a)=>{var n;if(a.system&&(t.system?t.system+=`
|
|
961
961
|
|
|
962
962
|
${a.system}`:t.system=a.system),a.tools)for(const[r,i]of Object.entries(a.tools)){const o=(n=t.tools)==null?void 0:n[r];if(o&&o!==i)throw new Error(`You tried to define a tool with the name ${r}, but it already exists.`);t.tools||(t.tools={}),t.tools[r]=i}return a.config&&(t.config={...t.config,...a.config}),a.callSettings&&(t.callSettings={...t.callSettings,...a.callSettings}),t},{}),sHe=class{constructor(){Pe(this,"_providers",new Set);Pe(this,"_subscribers",new Set)}getModelContext(){return nea(this._providers)}registerModelContextProvider(e){var t;this._providers.add(e);const u=(t=e.subscribe)==null?void 0:t.call(e,()=>{this.notifySubscribers()});return this.notifySubscribers(),()=>{this._providers.delete(e),u==null||u(),this.notifySubscribers()}}notifySubscribers(){for(const e of this._subscribers)e()}subscribe(e){return this._subscribers.add(e),()=>this._subscribers.delete(e)}},ite=class{constructor(){Pe(this,"_contextProvider",new sHe)}registerModelContextProvider(e){return this._contextProvider.registerModelContextProvider(e)}},Nz=class{constructor(){Pe(this,"_subscribers",new Set)}subscribe(e){return this._subscribers.add(e),()=>this._subscribers.delete(e)}waitForUpdate(){return new Promise(e=>{const u=this.subscribe(()=>{u(),e()})})}_notifySubscribers(){const e=[];for(const u of this._subscribers)try{u()}catch(t){e.push(t)}if(e.length>0)throw e.length===1?e[0]:new AggregateError(e)}},rea=e=>e.status.type==="complete",lHe=class extends Nz{constructor(){super(...arguments);Pe(this,"isEditing",!0);Pe(this,"_attachments",[]);Pe(this,"_text","");Pe(this,"_role","user");Pe(this,"_runConfig",{});Pe(this,"_eventSubscribers",new Map)}getAttachmentAccept(){var u;return((u=this.getAttachmentAdapter())==null?void 0:u.accept)??"*"}get attachments(){return this._attachments}setAttachments(u){this._attachments=u,this._notifySubscribers()}get isEmpty(){return!this.text.trim()&&!this.attachments.length}get text(){return this._text}get role(){return this._role}get runConfig(){return this._runConfig}setText(u){this._text!==u&&(this._text=u,this._notifySubscribers())}setRole(u){this._role!==u&&(this._role=u,this._notifySubscribers())}setRunConfig(u){this._runConfig!==u&&(this._runConfig=u,this._notifySubscribers())}_emptyTextAndAttachments(){this._attachments=[],this._text="",this._notifySubscribers()}async _onClearAttachments(){const u=this.getAttachmentAdapter();u&&await Promise.all(this._attachments.map(t=>u.remove(t)))}async reset(){if(this._attachments.length===0&&this._text===""&&this._role==="user"&&Object.keys(this._runConfig).length===0)return;this._role="user",this._runConfig={};const u=this._onClearAttachments();this._emptyTextAndAttachments(),await u}async clearAttachments(){const u=this._onClearAttachments();this.setAttachments([]),await u}async send(){const u=this.getAttachmentAdapter(),t=u&&this.attachments.length>0?await Promise.all(this.attachments.map(async n=>rea(n)?n:await u.send(n))):[],a={createdAt:new Date,role:this.role,content:this.text?[{type:"text",text:this.text}]:[],attachments:t,runConfig:this.runConfig,metadata:{custom:{}}};this._emptyTextAndAttachments(),this.handleSend(a),this._notifyEventSubscribers("send")}cancel(){this.handleCancel()}async addAttachment(u){const t=this.getAttachmentAdapter();if(!t)throw new Error("Attachments are not supported");const a=r=>{const i=this._attachments.findIndex(o=>o.id===r.id);i!==-1?this._attachments=[...this._attachments.slice(0,i),r,...this._attachments.slice(i+1)]:(this._attachments=[...this._attachments,r],this._notifyEventSubscribers("attachment_add")),this._notifySubscribers()},n=t.add({file:u});if(Symbol.asyncIterator in n)for await(const r of n)a(r);else a(await n);this._notifyEventSubscribers("attachment_add"),this._notifySubscribers()}async removeAttachment(u){const t=this.getAttachmentAdapter();if(!t)throw new Error("Attachments are not supported");const a=this._attachments.findIndex(r=>r.id===u);if(a===-1)throw new Error("Attachment not found");const n=this._attachments[a];await t.remove(n),this._attachments=[...this._attachments.slice(0,a),...this._attachments.slice(a+1)],this._notifySubscribers()}_notifyEventSubscribers(u){const t=this._eventSubscribers.get(u);if(t)for(const a of t)a()}unstable_on(u,t){const a=this._eventSubscribers.get(u);return a?a.add(t):this._eventSubscribers.set(u,new Set([t])),()=>{const n=this._eventSubscribers.get(u);n&&n.delete(t)}}},cHe=class extends lHe{constructor(u){super();Pe(this,"_canCancel",!1);this.runtime=u,this.connect()}get canCancel(){return this._canCancel}get attachments(){return super.attachments}getAttachmentAdapter(){var u;return(u=this.runtime.adapters)==null?void 0:u.attachments}connect(){return this.runtime.subscribe(()=>{this.canCancel!==this.runtime.capabilities.cancel&&(this._canCancel=this.runtime.capabilities.cancel,this._notifySubscribers())})}async handleSend(u){var t;this.runtime.append({...u,parentId:((t=this.runtime.messages.at(-1))==null?void 0:t.id)??null,sourceId:null})}async handleCancel(){this.runtime.cancelRun()}};let dHe=(e,u=21)=>(t=u)=>{let a="",n=t|0;for(;n--;)a+=e[Math.random()*e.length|0];return a};var gy=dHe("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",7),iea="__optimistic__",oea=()=>`${iea}${gy()}`,EHe=Object.freeze({type:"running"}),hHe=Object.freeze({type:"complete",reason:"unknown"}),sea=Object.freeze({type:"requires-action",reason:"tool-calls"}),mHe=e=>e===EHe||e===hHe,xy=(e,u,t)=>e&&u?EHe:t?sea:hHe,o6={exports:{}};const lea=typeof Buffer<"u",Cme=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,yme=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function pHe(e,u,t){t==null&&u!==null&&typeof u=="object"&&(t=u,u=void 0),lea&&Buffer.isBuffer(e)&&(e=e.toString()),e&&e.charCodeAt(0)===65279&&(e=e.slice(1));const a=JSON.parse(e,u);if(a===null||typeof a!="object")return a;const n=t&&t.protoAction||"error",r=t&&t.constructorAction||"error";if(n==="ignore"&&r==="ignore")return a;if(n!=="ignore"&&r!=="ignore"){if(Cme.test(e)===!1&&yme.test(e)===!1)return a}else if(n!=="ignore"&&r==="ignore"){if(Cme.test(e)===!1)return a}else if(yme.test(e)===!1)return a;return fHe(a,{protoAction:n,constructorAction:r,safe:t&&t.safe})}function fHe(e,{protoAction:u="error",constructorAction:t="error",safe:a}={}){let n=[e];for(;n.length;){const r=n;n=[];for(const i of r){if(u!=="ignore"&&Object.prototype.hasOwnProperty.call(i,"__proto__")){if(a===!0)return null;if(u==="error")throw new SyntaxError("Object contains forbidden prototype property");delete i.__proto__}if(t!=="ignore"&&Object.prototype.hasOwnProperty.call(i,"constructor")&&Object.prototype.hasOwnProperty.call(i.constructor,"prototype")){if(a===!0)return null;if(t==="error")throw new SyntaxError("Object contains forbidden prototype property");delete i.constructor}for(const o in i){const s=i[o];s&&typeof s=="object"&&n.push(s)}}}return e}function ote(e,u,t){const{stackTraceLimit:a}=Error;Error.stackTraceLimit=0;try{return pHe(e,u,t)}finally{Error.stackTraceLimit=a}}function cea(e,u){const{stackTraceLimit:t}=Error;Error.stackTraceLimit=0;try{return pHe(e,u,{safe:!0})}catch{return}finally{Error.stackTraceLimit=t}}o6.exports=ote;o6.exports.default=ote;o6.exports.parse=ote;o6.exports.safeParse=cea;o6.exports.scan=fHe;var dea=o6.exports;const Fme=ei(dea);function Eea(e){const u=["ROOT"];let t=-1,a=null;const n=[];let r;function i(){r!==void 0&&(n.push(JSON.parse('"'+r+'"')),r=void 0)}function o(d,E,h){switch(d){case'"':{t=E,u.pop(),u.push(h),u.push("INSIDE_STRING"),i();break}case"f":case"t":case"n":{t=E,a=E,u.pop(),u.push(h),u.push("INSIDE_LITERAL");break}case"-":{u.pop(),u.push(h),u.push("INSIDE_NUMBER"),i();break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{t=E,u.pop(),u.push(h),u.push("INSIDE_NUMBER"),i();break}case"{":{t=E,u.pop(),u.push(h),u.push("INSIDE_OBJECT_START"),i();break}case"[":{t=E,u.pop(),u.push(h),u.push("INSIDE_ARRAY_START"),i();break}}}function s(d,E){switch(d){case",":{u.pop(),u.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{t=E,u.pop(),r=n.pop();break}}}function l(d,E){switch(d){case",":{u.pop(),u.push("INSIDE_ARRAY_AFTER_COMMA"),r=(Number(r)+1).toString();break}case"]":{t=E,u.pop(),r=n.pop();break}}}for(let d=0;d<e.length;d++){const E=e[d];switch(u[u.length-1]){case"ROOT":o(E,d,"FINISH");break;case"INSIDE_OBJECT_START":{switch(E){case'"':{u.pop(),u.push("INSIDE_OBJECT_KEY"),r="";break}case"}":{t=d,u.pop(),r=n.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(E){case'"':{u.pop(),u.push("INSIDE_OBJECT_KEY"),r="";break}}break}case"INSIDE_OBJECT_KEY":{switch(E){case'"':{u.pop(),u.push("INSIDE_OBJECT_AFTER_KEY");break}case"\\":{u.push("INSIDE_STRING_ESCAPE"),r+=E;break}default:{r+=E;break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(E){case":":{u.pop(),u.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{o(E,d,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(E,d);break}case"INSIDE_STRING":{switch(E){case'"':{u.pop(),t=d,r=n.pop();break}case"\\":{u.push("INSIDE_STRING_ESCAPE");break}default:t=d}break}case"INSIDE_ARRAY_START":{switch(E){case"]":{t=d,u.pop(),r=n.pop();break}default:{t=d,r="0",o(E,d,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(E){case",":{u.pop(),u.push("INSIDE_ARRAY_AFTER_COMMA"),r=(Number(r)+1).toString();break}case"]":{t=d,u.pop(),r=n.pop();break}default:{t=d;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{o(E,d,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{u.pop(),u[u.length-1]==="INSIDE_STRING"?t=d:u[u.length-1]==="INSIDE_OBJECT_KEY"&&(r+=E);break}case"INSIDE_NUMBER":{switch(E){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{t=d;break}case"e":case"E":case"-":case".":break;case",":{u.pop(),r=n.pop(),u[u.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&l(E,d),u[u.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(E,d);break}case"}":{u.pop(),r=n.pop(),u[u.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(E,d);break}case"]":{u.pop(),r=n.pop(),u[u.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&l(E,d);break}default:{u.pop(),r=n.pop();break}}break}case"INSIDE_LITERAL":{const p=e.substring(a,d+1);!"false".startsWith(p)&&!"true".startsWith(p)&&!"null".startsWith(p)?(u.pop(),u[u.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(E,d):u[u.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&l(E,d)):t=d;break}}}let c=e.slice(0,t+1);for(let d=u.length-1;d>=0;d--)switch(u[d]){case"INSIDE_STRING":{c+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{c+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{c+="]";break}case"INSIDE_LITERAL":{const h=e.substring(a,e.length);"true".startsWith(h)?c+="true".slice(h.length):"false".startsWith(h)?c+="false".slice(h.length):"null".startsWith(h)&&(c+="null".slice(h.length))}}return[c,n]}var hP=Symbol("aui.parse-partial-json-object.meta"),DHe=e=>{if(e.length===0)return{[hP]:{state:"partial",partialPath:[]}};try{const u=Fme.parse(e);if(typeof u!="object"||u===null)throw new Error("argsText is expected to be an object");return u[hP]={state:"complete",partialPath:[]},u}catch{try{const[u,t]=Eea(e),a=Fme.parse(u);if(typeof a!="object"||a===null)throw new Error("argsText is expected to be an object");return a[hP]={state:"partial",partialPath:t},a}catch{return}}},jf=(e,u,t)=>{const{role:a,id:n,createdAt:r,attachments:i,status:o,metadata:s}=e,l={id:n??u,createdAt:r??new Date},c=typeof e.content=="string"?[{type:"text",text:e.content}]:e.content,d=({image:E,...h})=>E.match(/^data:image\/(png|jpeg|jpg|gif|webp);base64,(.*)$/)?{...h,image:E}:(console.warn("Invalid image data format detected"),null);if(a!=="user"&&(i!=null&&i.length))throw new Error("attachments are only supported for user messages");if(a!=="assistant"&&o)throw new Error("status is only supported for assistant messages");if(a!=="assistant"&&(s!=null&&s.steps))throw new Error("metadata.steps is only supported for assistant messages");switch(a){case"assistant":return{...l,role:a,content:c.map(E=>{const h=E.type;switch(h){case"text":case"reasoning":return E.text.trim().length===0?null:E;case"file":case"source":return E;case"image":return d(E);case"tool-call":{const{parentId:p,...f}=E,g={...f,toolCallId:E.toolCallId??"tool-"+gy(),...p!==void 0&&{parentId:p}};return E.args?{...g,args:E.args,argsText:JSON.stringify(E.args)}:{...g,args:E.args??DHe(E.argsText??"")??{},argsText:E.argsText??""}}default:{const p=h;throw new Error(`Unsupported assistant message part type: ${p}`)}}}).filter(E=>!!E),status:o??t,metadata:{unstable_state:(s==null?void 0:s.unstable_state)??null,unstable_annotations:(s==null?void 0:s.unstable_annotations)??[],unstable_data:(s==null?void 0:s.unstable_data)??[],custom:(s==null?void 0:s.custom)??{},steps:(s==null?void 0:s.steps)??[]}};case"user":return{...l,role:a,content:c.map(E=>{const h=E.type;switch(h){case"text":case"image":case"audio":case"file":return E;default:{const p=h;throw new Error(`Unsupported user message part type: ${p}`)}}}),attachments:i??[],metadata:{custom:(s==null?void 0:s.custom)??{}}};case"system":if(c.length!==1||c[0].type!=="text")throw new Error("System messages must have exactly one text message part.");return{...l,role:a,content:c,metadata:{custom:(s==null?void 0:s.custom)??{}}};default:{const E=a;throw new Error(`Unknown message role: ${E}`)}}},gHe={fromArray:e=>{const u=e.map(t=>jf(t,gy(),xy(!1,!1,!1)));return{messages:u.map((t,a)=>({parentId:a>0?u[a-1].id:null,message:t}))}}},B9=e=>e.next?B9(e.next):"current"in e?e:null,hea=class{constructor(e){Pe(this,"_value",null);this.func=e}get value(){return this._value===null&&(this._value=this.func()),this._value}dirty(){this._value=null}},xHe=class{constructor(){Pe(this,"messages",new Map);Pe(this,"head",null);Pe(this,"root",{children:[],next:null});Pe(this,"_messages",new hea(()=>{var t;const u=new Array(((t=this.head)==null?void 0:t.level)??0);for(let a=this.head;a;a=a.prev)u[a.level]=a.current;return u}))}performOp(u,t,a){const n=t.prev??this.root,r=u??this.root;if(!(a==="relink"&&n===r)){if(a!=="link"&&(n.children=n.children.filter(i=>i!==t.current.id),n.next===t)){const i=n.children.at(-1),o=i?this.messages.get(i):null;if(o===void 0)throw new Error("MessageRepository(performOp/cut): Fallback sibling message not found. This is likely an internal bug in assistant-ui.");n.next=o}if(a!=="cut"){for(let i=u;i;i=i.prev)if(i.current.id===t.current.id)throw new Error("MessageRepository(performOp/link): A message with the same id already exists in the parent tree. This error occurs if the same message id is found multiple times. This is likely an internal bug in assistant-ui.");r.children=[...r.children,t.current.id],(B9(t)===this.head||r.next===null)&&(r.next=t),t.prev=u}}}get headId(){var u;return((u=this.head)==null?void 0:u.current.id)??null}getMessages(){return this._messages.value}addOrUpdateMessage(u,t){const a=this.messages.get(t.id),n=u?this.messages.get(u):null;if(n===void 0)throw new Error("MessageRepository(addOrUpdateMessage): Parent message not found. This is likely an internal bug in assistant-ui.");if(a){a.current=t,this.performOp(n,a,"relink"),this._messages.dirty();return}const r={prev:n,current:t,next:null,children:[],level:n?n.level+1:0};this.messages.set(t.id,r),this.performOp(n,r,"link"),this.head===n&&(this.head=r),this._messages.dirty()}getMessage(u){var a;const t=this.messages.get(u);if(!t)throw new Error("MessageRepository(updateMessage): Message not found. This is likely an internal bug in assistant-ui.");return{parentId:((a=t.prev)==null?void 0:a.current.id)??null,message:t.current}}appendOptimisticMessage(u,t){let a;do a=oea();while(this.messages.has(a));return this.addOrUpdateMessage(u,jf(t,a,{type:"running"})),a}deleteMessage(u,t){const a=this.messages.get(u);if(!a)throw new Error("MessageRepository(deleteMessage): Message not found. This is likely an internal bug in assistant-ui.");const n=t===void 0?a.prev:t===null?null:this.messages.get(t);if(n===void 0)throw new Error("MessageRepository(deleteMessage): Replacement not found. This is likely an internal bug in assistant-ui.");for(const r of a.children){const i=this.messages.get(r);if(!i)throw new Error("MessageRepository(deleteMessage): Child message not found. This is likely an internal bug in assistant-ui.");this.performOp(n,i,"relink")}this.performOp(null,a,"cut"),this.messages.delete(u),this.head===a&&(this.head=B9(n??this.root)),this._messages.dirty()}getBranches(u){const t=this.messages.get(u);if(!t)throw new Error("MessageRepository(getBranches): Message not found. This is likely an internal bug in assistant-ui.");const{children:a}=t.prev??this.root;return a}switchToBranch(u){const t=this.messages.get(u);if(!t)throw new Error("MessageRepository(switchToBranch): Branch not found. This is likely an internal bug in assistant-ui.");const a=t.prev??this.root;a.next=t,this.head=B9(t),this._messages.dirty()}resetHead(u){if(u===null){this.head=null,this._messages.dirty();return}const t=this.messages.get(u);if(!t)throw new Error("MessageRepository(resetHead): Branch not found. This is likely an internal bug in assistant-ui.");this.head=t;for(let a=t;a;a=a.prev)a.prev&&(a.prev.next=a);this._messages.dirty()}clear(){this.messages.clear(),this.head=null,this.root={children:[],next:null},this._messages.dirty()}export(){var t,a;const u=[];for(const[,n]of this.messages)u.push({message:n.current,parentId:((t=n.prev)==null?void 0:t.current.id)??null});return{headId:((a=this.head)==null?void 0:a.current.id)??null,messages:u}}import({headId:u,messages:t}){var a;for(const{message:n,parentId:r}of t)this.addOrUpdateMessage(r,n);this.resetHead(u??((a=t.at(-1))==null?void 0:a.message.id)??null)}},Rz=class{constructor(){Pe(this,"_subscriptions",new Set);Pe(this,"_connection")}get isConnected(){return!!this._connection}notifySubscribers(){for(const e of this._subscriptions)e()}_updateConnection(){var e;if(this._subscriptions.size>0){if(this._connection)return;this._connection=this._connect()}else(e=this._connection)==null||e.call(this),this._connection=void 0}subscribe(e){return this._subscriptions.add(e),this._updateConnection(),()=>{this._subscriptions.delete(e),this._updateConnection()}}},m1=Symbol("skip-update"),ste=class extends Rz{constructor(u){super();Pe(this,"_previousStateDirty",!0);Pe(this,"_previousState");Pe(this,"getState",()=>{if(!this.isConnected||this._previousStateDirty){const u=this.binding.getState();u!==m1&&(this._previousState=u),this._previousStateDirty=!1}if(this._previousState===void 0)throw new Error("Entry not available in the store");return this._previousState});this.binding=u}get path(){return this.binding.path}_connect(){const u=()=>{this._previousStateDirty=!0,this.notifySubscribers()};return this.binding.subscribe(u)}},u7=class{constructor(e,u){this._core=e,this._threadListBinding=u}get path(){return this._core.path}__internal_bindMethods(){this.switchTo=this.switchTo.bind(this),this.rename=this.rename.bind(this),this.archive=this.archive.bind(this),this.unarchive=this.unarchive.bind(this),this.delete=this.delete.bind(this),this.initialize=this.initialize.bind(this),this.generateTitle=this.generateTitle.bind(this),this.subscribe=this.subscribe.bind(this),this.unstable_on=this.unstable_on.bind(this),this.getState=this.getState.bind(this),this.detach=this.detach.bind(this)}getState(){return this._core.getState()}switchTo(){const e=this._core.getState();return this._threadListBinding.switchToThread(e.id)}rename(e){const u=this._core.getState();return this._threadListBinding.rename(u.id,e)}archive(){const e=this._core.getState();return this._threadListBinding.archive(e.id)}unarchive(){const e=this._core.getState();return this._threadListBinding.unarchive(e.id)}delete(){const e=this._core.getState();return this._threadListBinding.delete(e.id)}initialize(){const e=this._core.getState();return this._threadListBinding.initialize(e.id)}generateTitle(){const e=this._core.getState();return this._threadListBinding.generateTitle(e.id)}unstable_on(e,u){let t=this._core.getState().isMain;return this.subscribe(()=>{const a=this._core.getState().isMain;t!==a&&(t=a,!(e==="switched-to"&&!a)&&(e==="switched-away"&&a||u()))})}subscribe(e){return this._core.subscribe(e)}detach(){const e=this._core.getState();this._threadListBinding.detach(e.id)}};function mea(e,u){if(e===void 0&&u===void 0)return!0;if(e===void 0||u===void 0)return!1;for(const t of Object.keys(e)){const a=e[t],n=u[t];if(!Object.is(a,n))return!1}return!0}var Jc=class extends Rz{constructor(u){super();Pe(this,"_previousState");Pe(this,"getState",()=>(this.isConnected||this._syncState(),this._previousState));this.binding=u;const t=u.getState();if(t===m1)throw new Error("Entry not available in the store");this._previousState=t}get path(){return this.binding.path}_syncState(){const u=this.binding.getState();return u===m1||mea(u,this._previousState)?!1:(this._previousState=u,!0)}_connect(){const u=()=>{this._syncState()&&this.notifySubscribers()};return this.binding.subscribe(u)}},Us=Symbol("innerMessage"),mP=Symbol("innerMessages"),pea=e=>e[Us],fea=[],xp=e=>{const u="messages"in e?e.messages:e,t=u[mP]||u[Us];return t?Array.isArray(t)?t:(u[mP]=[t],u[mP]):fea},IC=e=>e.content.filter(t=>t.type==="text").map(t=>t.text).join(`
|
|
963
963
|
|
package/static/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
|
|
8
8
|
<title>Momentic local app</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-OpiEiCq6.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/assets/index-zEiWsL7o.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|