@rivet-dev/agentos 0.0.0-fix-main-wasm-ownership.8ca391b → 0.0.0-fix-core-spawn-keep-stdin-open.242e11c
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/assets/inspector-tabs-app/assets/__vite-browser-external-2447137e-BIHI7g3E.js +1 -0
- package/assets/inspector-tabs-app/assets/agentos-hero-logo-E3fapwXM.svg +74 -0
- package/assets/inspector-tabs-app/assets/filesystem-DQPPvVO9.js +1 -0
- package/assets/inspector-tabs-app/assets/hooks-CdZ_23e1.js +1 -0
- package/assets/inspector-tabs-app/assets/index-CvS46tYl.js +110 -0
- package/assets/inspector-tabs-app/assets/index-DG_s1YoH.css +1 -0
- package/assets/inspector-tabs-app/assets/scroll-area-D0TYc2jF.js +1 -0
- package/assets/inspector-tabs-app/assets/sed-BwsOyU9v.svg +1 -0
- package/assets/inspector-tabs-app/assets/system-C1DTBU1d.js +2 -0
- package/assets/inspector-tabs-app/assets/terminal-DhW76lRS.js +13 -0
- package/assets/inspector-tabs-app/assets/transcript-OolSpSiF.js +1 -0
- package/assets/inspector-tabs-app/assets/useSuspenseQuery-j2bgzu1R.js +1 -0
- package/assets/inspector-tabs-app/assets/vm-boot-gate-DG5U7SkD.js +1 -0
- package/assets/inspector-tabs-app/assets/vm-status-badges-CKabwPpS.js +5 -0
- package/assets/inspector-tabs-app/index.html +2 -2
- package/dist/chunk-V6TY7KAL.js +8 -0
- package/dist/chunk-V6TY7KAL.js.map +1 -0
- package/dist/index.d.ts +328 -22
- package/dist/index.js +1233 -138
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +67 -0
- package/dist/node.js +275 -0
- package/dist/node.js.map +1 -0
- package/package.json +20 -10
- package/assets/inspector-tabs-app/assets/badge-NKTqivIc.js +0 -1
- package/assets/inspector-tabs-app/assets/filesystem-CyIvO-1j.js +0 -1
- package/assets/inspector-tabs-app/assets/index-DcBRn-yP.js +0 -125
- package/assets/inspector-tabs-app/assets/index-Dt5XhJ9h.css +0 -1
- package/assets/inspector-tabs-app/assets/mounts-DWpTN-N6.js +0 -1
- package/assets/inspector-tabs-app/assets/processes-CUocx7Ya.js +0 -1
- package/assets/inspector-tabs-app/assets/scroll-area-C07uoUZ4.js +0 -1
- package/assets/inspector-tabs-app/assets/software-ftDfKuwh.js +0 -1
- package/assets/inspector-tabs-app/assets/transcript-7Ao7EjSb.js +0 -1
- package/assets/inspector-tabs-app/assets/useSuspenseQuery-DBzwnHO3.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={};export{e as default};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg width="100%" height="100%" viewBox="0 0 305 102" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;">
|
|
4
|
+
<g transform="matrix(1,0,0,1,-412,-12)">
|
|
5
|
+
<g id="agentos-logo" transform="matrix(0.654703,0,0,0.543011,-41.2516,-710.788)">
|
|
6
|
+
<rect x="693" y="1332" width="464" height="186" style="fill:none;"/>
|
|
7
|
+
<clipPath id="_clip1">
|
|
8
|
+
<rect x="693" y="1332" width="464" height="186"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
<g clip-path="url(#_clip1)">
|
|
11
|
+
<g id="frame-layer" transform="matrix(0.682299,0,0,0.822642,1038.89,1333.32)">
|
|
12
|
+
<path d="M164.529,52.792L164.529,120.844C164.529,145.347 144.635,165.241 120.132,165.241L52.08,165.241C27.577,165.241 7.683,145.347 7.683,120.844L7.683,52.792C7.683,28.289 27.577,8.395 52.08,8.395L120.132,8.395C144.635,8.395 164.529,28.289 164.529,52.792Z" style="fill:none;stroke:black;stroke-width:15.18px;"/>
|
|
13
|
+
</g>
|
|
14
|
+
<g id="text-layer" transform="matrix(2.17521,0,0,2.62263,-891.914,764.236)">
|
|
15
|
+
<g transform="matrix(50.1389,0,0,50.1389,727.418,261.867)">
|
|
16
|
+
<path d="M0.191,0.017C0.16,0.017 0.134,0.01 0.112,-0.003C0.09,-0.016 0.073,-0.036 0.062,-0.061C0.05,-0.086 0.044,-0.116 0.044,-0.151C0.044,-0.18 0.048,-0.212 0.056,-0.245C0.064,-0.278 0.076,-0.311 0.093,-0.344C0.109,-0.376 0.13,-0.405 0.155,-0.432C0.18,-0.459 0.21,-0.48 0.245,-0.496C0.28,-0.511 0.319,-0.519 0.364,-0.519C0.394,-0.519 0.422,-0.513 0.449,-0.502C0.476,-0.49 0.5,-0.475 0.521,-0.458L0.509,-0.389C0.482,-0.408 0.458,-0.422 0.437,-0.429C0.416,-0.436 0.394,-0.44 0.371,-0.44C0.336,-0.44 0.305,-0.434 0.279,-0.421C0.252,-0.408 0.23,-0.392 0.211,-0.371C0.192,-0.349 0.177,-0.327 0.166,-0.302C0.155,-0.277 0.147,-0.252 0.142,-0.227C0.137,-0.202 0.134,-0.18 0.134,-0.16C0.134,-0.139 0.137,-0.121 0.144,-0.107C0.15,-0.092 0.159,-0.081 0.172,-0.074C0.185,-0.067 0.2,-0.063 0.219,-0.063C0.242,-0.063 0.265,-0.07 0.288,-0.083C0.31,-0.096 0.332,-0.114 0.353,-0.139C0.374,-0.164 0.394,-0.193 0.412,-0.226L0.429,-0.179C0.404,-0.124 0.377,-0.083 0.348,-0.055C0.319,-0.026 0.29,-0.007 0.263,0.003C0.235,0.012 0.211,0.017 0.191,0.017ZM0.486,0.017C0.463,0.017 0.443,0.013 0.426,0.005C0.409,-0.003 0.397,-0.015 0.388,-0.03C0.379,-0.045 0.374,-0.062 0.373,-0.083C0.372,-0.104 0.376,-0.127 0.384,-0.153L0.492,-0.483C0.497,-0.496 0.502,-0.505 0.509,-0.509C0.515,-0.513 0.524,-0.515 0.537,-0.515C0.558,-0.515 0.571,-0.512 0.577,-0.506C0.582,-0.499 0.583,-0.489 0.578,-0.476L0.469,-0.141C0.458,-0.11 0.457,-0.088 0.465,-0.076C0.472,-0.064 0.488,-0.058 0.511,-0.058C0.52,-0.058 0.527,-0.054 0.531,-0.047C0.534,-0.039 0.535,-0.03 0.534,-0.021C0.532,-0.011 0.527,-0.002 0.519,0.006C0.511,0.013 0.5,0.017 0.486,0.017Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.01px;stroke-linejoin:round;stroke-miterlimit:2;"/>
|
|
17
|
+
</g>
|
|
18
|
+
<g transform="matrix(50.1389,0,0,50.1389,758.654,261.867)">
|
|
19
|
+
<path d="M-0.137,0.017C-0.146,0.017 -0.153,0.013 -0.157,0.006C-0.161,-0.002 -0.162,-0.011 -0.16,-0.021C-0.158,-0.03 -0.153,-0.039 -0.145,-0.047C-0.137,-0.054 -0.126,-0.058 -0.112,-0.058C-0.095,-0.058 -0.077,-0.061 -0.06,-0.067C-0.043,-0.072 -0.026,-0.081 -0.01,-0.092C0.006,-0.103 0.02,-0.117 0.033,-0.134C0.046,-0.15 0.056,-0.169 0.063,-0.19C0.066,-0.2 0.072,-0.205 0.08,-0.206C0.088,-0.206 0.095,-0.203 0.102,-0.197C0.108,-0.19 0.11,-0.182 0.108,-0.173C0.101,-0.144 0.09,-0.118 0.074,-0.095C0.058,-0.072 0.039,-0.052 0.017,-0.035C-0.006,-0.018 -0.03,-0.006 -0.057,0.004C-0.083,0.013 -0.11,0.017 -0.137,0.017Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.01px;stroke-linejoin:round;stroke-miterlimit:2;"/>
|
|
20
|
+
</g>
|
|
21
|
+
<g transform="matrix(50.1389,0,0,50.1389,758.654,261.867)">
|
|
22
|
+
</g>
|
|
23
|
+
<g transform="matrix(50.1389,0,0,50.1389,758.654,261.867)">
|
|
24
|
+
</g>
|
|
25
|
+
<g transform="matrix(50.1389,0,0,50.1389,758.654,261.867)">
|
|
26
|
+
<path d="M0.11,0.5C0.069,0.5 0.036,0.489 0.012,0.466C-0.012,0.443 -0.024,0.414 -0.024,0.378C-0.024,0.348 -0.018,0.32 -0.005,0.295C0.008,0.269 0.027,0.244 0.051,0.221C0.074,0.198 0.102,0.175 0.134,0.154C0.166,0.133 0.201,0.112 0.24,0.092C0.251,0.087 0.261,0.081 0.272,0.076C0.283,0.07 0.325,0.047 0.335,0.042L0.371,-0.069C0.351,-0.046 0.331,-0.028 0.311,-0.016C0.291,-0.003 0.272,0.005 0.254,0.01C0.236,0.015 0.22,0.017 0.205,0.017C0.174,0.017 0.148,0.01 0.127,-0.003C0.105,-0.016 0.088,-0.036 0.077,-0.061C0.065,-0.086 0.059,-0.116 0.059,-0.151C0.059,-0.18 0.063,-0.212 0.071,-0.245C0.079,-0.278 0.091,-0.311 0.108,-0.344C0.124,-0.376 0.145,-0.405 0.17,-0.432C0.195,-0.459 0.225,-0.48 0.26,-0.496C0.295,-0.511 0.334,-0.519 0.379,-0.519C0.394,-0.519 0.409,-0.517 0.424,-0.514C0.439,-0.511 0.453,-0.506 0.466,-0.501C0.479,-0.495 0.492,-0.488 0.504,-0.48L0.505,-0.484C0.51,-0.497 0.515,-0.506 0.52,-0.51C0.525,-0.513 0.535,-0.515 0.55,-0.515C0.571,-0.515 0.584,-0.512 0.59,-0.506C0.595,-0.499 0.596,-0.489 0.591,-0.476L0.36,0.233C0.345,0.282 0.328,0.323 0.311,0.357C0.294,0.391 0.275,0.419 0.255,0.44C0.235,0.46 0.213,0.476 0.189,0.486C0.165,0.495 0.139,0.5 0.11,0.5ZM0.123,0.423C0.143,0.423 0.162,0.416 0.18,0.403C0.197,0.39 0.214,0.369 0.23,0.341C0.245,0.313 0.26,0.276 0.275,0.231L0.304,0.139C0.298,0.142 0.292,0.146 0.287,0.149C0.282,0.152 0.276,0.154 0.271,0.157C0.266,0.16 0.26,0.163 0.255,0.166C0.226,0.182 0.2,0.198 0.177,0.215C0.154,0.231 0.134,0.247 0.117,0.263C0.099,0.279 0.087,0.296 0.078,0.313C0.069,0.33 0.065,0.347 0.065,0.366C0.065,0.379 0.067,0.389 0.072,0.398C0.077,0.407 0.084,0.413 0.093,0.417C0.101,0.421 0.112,0.423 0.123,0.423ZM0.234,-0.063C0.256,-0.063 0.278,-0.069 0.299,-0.081C0.32,-0.093 0.341,-0.11 0.361,-0.132C0.381,-0.154 0.4,-0.18 0.418,-0.211L0.484,-0.415C0.467,-0.424 0.45,-0.431 0.434,-0.435C0.418,-0.438 0.402,-0.44 0.385,-0.44C0.35,-0.44 0.319,-0.434 0.293,-0.421C0.266,-0.408 0.244,-0.392 0.226,-0.371C0.207,-0.349 0.192,-0.327 0.181,-0.302C0.17,-0.277 0.162,-0.252 0.157,-0.227C0.152,-0.202 0.149,-0.18 0.149,-0.16C0.149,-0.139 0.152,-0.121 0.159,-0.107C0.165,-0.092 0.174,-0.081 0.187,-0.074C0.2,-0.067 0.215,-0.063 0.234,-0.063Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.01px;stroke-linejoin:round;stroke-miterlimit:2;"/>
|
|
27
|
+
</g>
|
|
28
|
+
<g transform="matrix(50.1389,0,0,50.1389,790.493,261.867)">
|
|
29
|
+
<path d="M-0.248,0.106C-0.254,0.108 -0.259,0.106 -0.263,0.1C-0.266,0.094 -0.269,0.086 -0.27,0.077C-0.271,0.067 -0.271,0.058 -0.269,0.05C-0.267,0.041 -0.263,0.035 -0.257,0.032C-0.221,0.015 -0.187,-0.003 -0.154,-0.02C-0.121,-0.037 -0.089,-0.053 -0.06,-0.069C-0.031,-0.084 -0.003,-0.099 0.022,-0.113C0.047,-0.126 0.07,-0.138 0.09,-0.149C0.095,-0.152 0.101,-0.15 0.106,-0.145C0.111,-0.14 0.116,-0.133 0.12,-0.125C0.123,-0.116 0.125,-0.108 0.126,-0.1C0.127,-0.092 0.124,-0.087 0.119,-0.084C0.096,-0.071 0.072,-0.058 0.045,-0.044C0.018,-0.029 -0.01,-0.014 -0.041,0.002C-0.071,0.018 -0.103,0.035 -0.138,0.052C-0.173,0.069 -0.209,0.087 -0.248,0.106Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.01px;stroke-linejoin:round;stroke-miterlimit:2;"/>
|
|
30
|
+
</g>
|
|
31
|
+
<g transform="matrix(50.1389,0,0,50.1389,790.493,261.867)">
|
|
32
|
+
</g>
|
|
33
|
+
<g transform="matrix(50.1389,0,0,50.1389,790.493,261.867)">
|
|
34
|
+
</g>
|
|
35
|
+
<g transform="matrix(50.1389,0,0,50.1389,790.493,261.867)">
|
|
36
|
+
<path d="M0.291,0.019C0.244,0.019 0.204,0.011 0.171,-0.006C0.137,-0.023 0.111,-0.048 0.093,-0.083C0.075,-0.117 0.066,-0.16 0.066,-0.211C0.066,-0.241 0.072,-0.274 0.085,-0.309C0.097,-0.344 0.115,-0.378 0.14,-0.41C0.164,-0.442 0.194,-0.468 0.23,-0.489C0.266,-0.509 0.307,-0.519 0.354,-0.519C0.375,-0.519 0.394,-0.515 0.411,-0.507C0.428,-0.499 0.442,-0.488 0.453,-0.473C0.464,-0.458 0.469,-0.439 0.469,-0.416C0.469,-0.387 0.462,-0.358 0.447,-0.331C0.432,-0.304 0.41,-0.277 0.383,-0.251C0.355,-0.225 0.322,-0.199 0.284,-0.174C0.245,-0.149 0.203,-0.123 0.156,-0.098L0.13,-0.165C0.172,-0.188 0.209,-0.21 0.24,-0.231C0.271,-0.252 0.297,-0.273 0.318,-0.293C0.339,-0.312 0.354,-0.331 0.365,-0.349C0.375,-0.366 0.38,-0.383 0.38,-0.399C0.38,-0.412 0.377,-0.422 0.37,-0.429C0.363,-0.436 0.353,-0.439 0.34,-0.439C0.31,-0.439 0.284,-0.431 0.261,-0.415C0.238,-0.398 0.218,-0.378 0.203,-0.353C0.187,-0.328 0.175,-0.303 0.168,-0.278C0.16,-0.253 0.156,-0.231 0.156,-0.213C0.156,-0.182 0.16,-0.157 0.169,-0.137C0.178,-0.117 0.189,-0.101 0.204,-0.09C0.218,-0.079 0.234,-0.071 0.251,-0.066C0.268,-0.061 0.284,-0.059 0.301,-0.059C0.31,-0.059 0.317,-0.055 0.321,-0.047C0.324,-0.039 0.326,-0.03 0.325,-0.02C0.324,-0.01 0.32,-0.001 0.314,0.007C0.308,0.015 0.3,0.019 0.291,0.019Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.01px;stroke-linejoin:round;stroke-miterlimit:2;"/>
|
|
37
|
+
</g>
|
|
38
|
+
<g transform="matrix(50.1389,0,0,50.1389,814.91,261.867)">
|
|
39
|
+
<path d="M-0.211,0.019C-0.217,0.019 -0.221,0.015 -0.224,0.007C-0.227,-0.001 -0.227,-0.01 -0.226,-0.02C-0.225,-0.03 -0.222,-0.039 -0.217,-0.047C-0.212,-0.055 -0.205,-0.059 -0.197,-0.059C-0.16,-0.059 -0.127,-0.063 -0.096,-0.071C-0.065,-0.079 -0.038,-0.09 -0.013,-0.103C0.013,-0.116 0.035,-0.131 0.054,-0.146C0.073,-0.161 0.089,-0.176 0.103,-0.19C0.108,-0.195 0.114,-0.195 0.121,-0.192C0.128,-0.189 0.135,-0.184 0.14,-0.178C0.145,-0.171 0.145,-0.166 0.141,-0.161C0.125,-0.142 0.106,-0.122 0.084,-0.101C0.062,-0.08 0.037,-0.06 0.009,-0.042C-0.02,-0.024 -0.052,-0.009 -0.089,0.002C-0.125,0.013 -0.166,0.019 -0.211,0.019Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.01px;stroke-linejoin:round;stroke-miterlimit:2;"/>
|
|
40
|
+
</g>
|
|
41
|
+
<g transform="matrix(50.1389,0,0,50.1389,814.96,261.867)">
|
|
42
|
+
</g>
|
|
43
|
+
<g transform="matrix(50.1389,0,0,50.1389,814.96,261.867)">
|
|
44
|
+
</g>
|
|
45
|
+
<g transform="matrix(50.1389,0,0,50.1389,814.96,261.867)">
|
|
46
|
+
</g>
|
|
47
|
+
<g transform="matrix(50.1389,0,0,50.1389,814.96,261.867)">
|
|
48
|
+
<path d="M0.534,0.017C0.511,0.017 0.491,0.013 0.474,0.005C0.457,-0.003 0.444,-0.015 0.435,-0.03C0.426,-0.045 0.421,-0.062 0.42,-0.083C0.419,-0.104 0.423,-0.127 0.431,-0.153L0.494,-0.344C0.501,-0.365 0.503,-0.382 0.5,-0.397C0.497,-0.411 0.49,-0.422 0.479,-0.429C0.467,-0.436 0.451,-0.44 0.43,-0.44C0.411,-0.44 0.393,-0.437 0.374,-0.43C0.355,-0.423 0.336,-0.414 0.318,-0.401C0.3,-0.388 0.283,-0.373 0.267,-0.356C0.25,-0.339 0.235,-0.319 0.222,-0.297L0.129,-0.011C0.126,-0.002 0.122,0.004 0.115,0.009C0.108,0.013 0.096,0.015 0.081,0.015C0.07,0.015 0.06,0.013 0.051,0.008C0.042,0.003 0.039,-0.005 0.044,-0.018L0.194,-0.483C0.199,-0.496 0.204,-0.505 0.211,-0.509C0.217,-0.513 0.226,-0.515 0.239,-0.515C0.26,-0.515 0.273,-0.512 0.279,-0.506C0.284,-0.499 0.285,-0.489 0.28,-0.476L0.264,-0.426C0.278,-0.441 0.293,-0.455 0.309,-0.466C0.325,-0.477 0.341,-0.487 0.358,-0.495C0.375,-0.503 0.392,-0.509 0.409,-0.513C0.426,-0.517 0.444,-0.519 0.461,-0.519C0.501,-0.519 0.531,-0.51 0.552,-0.492C0.572,-0.473 0.583,-0.448 0.586,-0.417C0.589,-0.385 0.583,-0.349 0.57,-0.308L0.516,-0.141C0.506,-0.11 0.505,-0.088 0.512,-0.076C0.519,-0.064 0.535,-0.058 0.559,-0.058C0.568,-0.058 0.575,-0.054 0.579,-0.047C0.582,-0.039 0.583,-0.03 0.582,-0.021C0.58,-0.011 0.575,-0.002 0.567,0.006C0.559,0.013 0.548,0.017 0.534,0.017Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.01px;stroke-linejoin:round;stroke-miterlimit:2;"/>
|
|
49
|
+
</g>
|
|
50
|
+
<g transform="matrix(50.1389,0,0,50.1389,848.604,261.867)">
|
|
51
|
+
<path d="M-0.137,0.017C-0.146,0.017 -0.153,0.013 -0.157,0.006C-0.161,-0.002 -0.162,-0.011 -0.16,-0.021C-0.158,-0.03 -0.153,-0.039 -0.145,-0.047C-0.137,-0.054 -0.126,-0.058 -0.112,-0.058C-0.09,-0.058 -0.069,-0.062 -0.048,-0.069C-0.027,-0.076 -0.007,-0.087 0.012,-0.101C0.031,-0.114 0.05,-0.131 0.068,-0.15C0.085,-0.169 0.102,-0.191 0.118,-0.216C0.124,-0.225 0.131,-0.23 0.138,-0.229C0.145,-0.228 0.15,-0.225 0.155,-0.219C0.159,-0.213 0.159,-0.206 0.156,-0.199C0.142,-0.166 0.125,-0.137 0.105,-0.11C0.084,-0.083 0.061,-0.061 0.036,-0.042C0.01,-0.023 -0.017,-0.008 -0.047,0.002C-0.076,0.012 -0.106,0.017 -0.137,0.017Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.01px;stroke-linejoin:round;stroke-miterlimit:2;"/>
|
|
52
|
+
</g>
|
|
53
|
+
<g transform="matrix(50.1389,0,0,50.1389,848.604,261.867)">
|
|
54
|
+
</g>
|
|
55
|
+
<g transform="matrix(50.1389,0,0,50.1389,848.604,261.867)">
|
|
56
|
+
</g>
|
|
57
|
+
<g transform="matrix(50.1389,0,0,50.1389,848.604,261.867)">
|
|
58
|
+
<path d="M0.171,0.017C0.132,0.017 0.106,0.008 0.091,-0.011C0.076,-0.029 0.069,-0.053 0.071,-0.082C0.073,-0.111 0.079,-0.143 0.09,-0.178L0.168,-0.42L0.089,-0.42C0.082,-0.42 0.077,-0.423 0.074,-0.43C0.071,-0.437 0.072,-0.447 0.075,-0.46C0.079,-0.473 0.084,-0.483 0.091,-0.49C0.097,-0.497 0.104,-0.5 0.111,-0.5L0.194,-0.5L0.258,-0.698C0.262,-0.711 0.267,-0.72 0.274,-0.724C0.28,-0.728 0.29,-0.73 0.303,-0.73C0.324,-0.73 0.337,-0.727 0.343,-0.721C0.348,-0.714 0.349,-0.704 0.344,-0.691L0.283,-0.5L0.409,-0.5C0.416,-0.5 0.421,-0.497 0.424,-0.491C0.427,-0.484 0.426,-0.474 0.423,-0.46C0.419,-0.447 0.414,-0.438 0.407,-0.431C0.4,-0.424 0.393,-0.42 0.386,-0.42L0.258,-0.42L0.164,-0.13C0.157,-0.107 0.155,-0.089 0.159,-0.077C0.163,-0.064 0.172,-0.058 0.186,-0.058C0.208,-0.058 0.227,-0.065 0.242,-0.079C0.257,-0.093 0.269,-0.105 0.278,-0.116C0.282,-0.121 0.288,-0.125 0.295,-0.128C0.302,-0.131 0.31,-0.128 0.321,-0.121C0.332,-0.114 0.338,-0.108 0.339,-0.101C0.339,-0.093 0.337,-0.086 0.333,-0.079C0.324,-0.065 0.313,-0.051 0.299,-0.036C0.284,-0.021 0.267,-0.008 0.246,0.002C0.225,0.012 0.2,0.017 0.171,0.017Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.01px;stroke-linejoin:round;stroke-miterlimit:2;"/>
|
|
59
|
+
</g>
|
|
60
|
+
<g transform="matrix(50.1389,0,0,50.1389,848.604,261.867)">
|
|
61
|
+
</g>
|
|
62
|
+
<g transform="matrix(50.1389,0,0,50.1389,868.057,261.867)">
|
|
63
|
+
</g>
|
|
64
|
+
</g>
|
|
65
|
+
|
|
66
|
+
<g id="os-layer" transform="matrix(0.942408,0,0,1.13625,379.074,1127.7)">
|
|
67
|
+
<g transform="matrix(50.1389,0,0,50.1389,799.86,261.867)">
|
|
68
|
+
</g>
|
|
69
|
+
<text x="727.418px" y="261.867px" style="font-family:'Helvetica-Bold', 'Helvetica';font-weight:700;font-size:50.139px;">OS</text>
|
|
70
|
+
</g>
|
|
71
|
+
</g>
|
|
72
|
+
</g>
|
|
73
|
+
</g>
|
|
74
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,r as w,u as V,b as R,a as j,I as h,R as Q,F as T,U as K,o as M,A as z,d as k,p as U,i as W,g as P,q as C,h as _,f as q,D as G,s as J,t as X,T as H}from"./index-CvS46tYl.js";import{V as Y,u as A}from"./vm-boot-gate-DG5U7SkD.js";import{u as Z,a as ee,b as te}from"./hooks-CdZ_23e1.js";import{S as B}from"./scroll-area-D0TYc2jF.js";import{V as se}from"./vm-status-badges-CKabwPpS.js";const re=/\.(png|jpe?g|gif|webp|svg|ico|bmp|avif)$/i;function I({actorId:s,entry:t,depth:n,selectedPath:l,onSelect:x,openPaths:d,onToggle:m}){const a=d.has(t.path),u=t.path===l,o=t.dir&&!t.virtual,p=R(j.listDirQueryOptions(s,t.path,o&&a));return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1",style:{paddingLeft:`${n*12}px`},children:[e.jsx("button",{type:"button",onClick:()=>o&&m(t.path),className:P("flex size-5 items-center justify-center rounded text-muted-foreground hover:bg-muted/50",!o&&"pointer-events-none opacity-0"),disabled:!o,children:e.jsx(W,{className:P("size-3 transition-transform",a&&"rotate-90")})}),e.jsxs("button",{type:"button",onClick:()=>{o&&m(t.path),x(t)},className:P("flex min-w-0 flex-1 items-center gap-2 rounded px-2 py-1 text-left text-sm",u?"bg-muted text-foreground":"hover:bg-muted/50"),children:[e.jsx(U,{dir:t.dir,className:"size-3.5 shrink-0 text-muted-foreground"}),e.jsx("span",{className:"flex-1 truncate",children:t.name}),t.symlink?e.jsx("span",{title:"Symbolic link (not followed)",className:"shrink-0 font-mono text-[10px] text-muted-foreground/50",children:"→"}):null,!t.dir&&t.size!=null?e.jsx("span",{className:"shrink-0 text-[10px] tabular-nums text-muted-foreground/60",children:C(t.size)}):null]})]}),o&&a?(p.data??[]).map(y=>e.jsx(I,{actorId:s,entry:y,depth:n+1,selectedPath:l,onSelect:x,openPaths:d,onToggle:m},y.path)):null]})}function ne(s,t){const n=URL.createObjectURL(new Blob([s])),l=document.createElement("a");l.href=n,l.download=t,l.click(),URL.revokeObjectURL(n)}const E=s=>({path:s,force:!1,renameDraft:null,error:null});function oe({actorId:s,path:t,onMutated:n,onDeleted:l,onRenamed:x}){const[d,m]=w.useState(()=>E(t));d.path!==t&&m(E(t));const a=d.path===t?d:E(t),u=c=>m(r=>({...r,...c})),{data:o,error:p}=R(j.fileContentQueryOptions(s,t,a.force)),y=!!(o!=null&&o.bytes)&&o.text===null&&re.test(o.path),b=ee(y?o==null?void 0:o.bytes:null),{armed:g,confirm:f}=te({resetKey:t});if(!t)return e.jsx(k,{children:e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx(_,{className:"w-44"}),e.jsx("span",{children:"Select a file to view its contents."})]})});if(p)return e.jsx(z,{error:p,className:"items-center justify-center text-center"});if(!o)return e.jsxs(k,{children:["Loading ",t,"…"]});const N=o.path.split("/").pop()??o.path,D=async()=>{var r;const c=(r=a.renameDraft)==null?void 0:r.trim();if(!c||c===o.path){u({renameDraft:null});return}u({error:null});try{await j.moveEntry(o.path,c),u({renameDraft:null}),x(c),n()}catch(i){u({error:i})}},v=async()=>{u({error:null});try{await j.deleteFile(o.path,{}),l(),n()}catch(c){u({error:c})}};return e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsxs("div",{className:"flex items-center gap-2 border-b px-4 py-2.5",children:[a.renameDraft!==null?e.jsx("input",{value:a.renameDraft,onChange:c=>u({renameDraft:c.target.value}),onKeyDown:c=>{c.key==="Enter"&&D(),c.key==="Escape"&&u({renameDraft:null})},spellCheck:!1,autoFocus:!0,"aria-label":"New path",className:"min-w-0 flex-1 rounded border bg-background px-2 py-1 font-mono text-xs focus:outline-none"}):e.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-sm",children:o.path}),e.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:C(o.sizeBytes)}),e.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:q(o.mtimeMs)}),e.jsx(h,{title:o.bytes?"Download this file":"Load the file first",disabled:!o.bytes,onClick:()=>o.bytes&&ne(o.bytes,N),children:e.jsx(G,{className:"size-3.5"})}),e.jsx(h,{title:a.renameDraft!==null?"Save new name":"Rename this file",onClick:()=>a.renameDraft!==null?void D():u({renameDraft:o.path}),children:a.renameDraft!==null?e.jsx(J,{className:"size-3.5"}):e.jsx(X,{className:"size-3.5"})}),g==="delete"?e.jsx("button",{type:"button",onClick:()=>f("delete",()=>void v()),className:"shrink-0 rounded border border-destructive/50 px-2 py-1 text-xs text-destructive transition-colors hover:bg-destructive/10",children:"Confirm delete?"}):e.jsx(h,{title:"Delete this file",destructive:!0,onClick:()=>f("delete",()=>void v()),children:e.jsx(H,{className:"size-3.5"})})]}),a.error?e.jsx(z,{error:a.error,className:"border-b py-2"}):null,e.jsx(B,{className:"min-h-0 flex-1",children:o.special?e.jsx("div",{className:"flex h-full items-center justify-center p-8 text-center text-sm text-muted-foreground",children:"Device or stream — no readable contents."}):o.oversize?e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-8 text-center text-sm text-muted-foreground",children:[e.jsxs("span",{children:["Large file (",C(o.sizeBytes),") — preview skipped to avoid dragging it through the gateway."]}),e.jsx("button",{type:"button",onClick:()=>u({force:!0}),className:"rounded border px-2.5 py-1 text-xs transition-colors hover:bg-muted hover:text-foreground",children:"Load anyway"})]}):o.text===null?b?e.jsx("div",{className:"flex items-start justify-center p-4",children:e.jsx("img",{src:b,alt:N,className:"max-w-full rounded border"})}):e.jsxs("div",{className:"flex h-full items-center justify-center p-8 text-center text-sm text-muted-foreground",children:["Binary file (",C(o.sizeBytes),") — use Download to save it."]}):e.jsx("pre",{className:"whitespace-pre-wrap break-words p-4 font-mono text-xs leading-relaxed",children:o.text})})]})}function F(s){const t=s.lastIndexOf("/");return t<=0?"/":s.slice(0,t)}function S(s){let t=s.trim();return t===""?"/":(t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/+/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t)}const L=(s,t)=>s==="/"?`/${t}`:`${s}/${t}`;function xe({actorId:s}){return e.jsx(Y,{actorId:s,note:"VM not booted.",actionLabel:"Boot the VM and browse files",children:e.jsx(ce,{actorId:s})})}const $=s=>`agentos-inspector:fs:${s}`,ae=200;function le(s){try{const t=sessionStorage.getItem($(s));if(t){const n=JSON.parse(t);return{root:typeof n.root=="string"?n.root:"/",selectedPath:typeof n.selectedPath=="string"?n.selectedPath:null,openPaths:Array.isArray(n.openPaths)?n.openPaths.filter(l=>typeof l=="string"):[]}}}catch{}return{root:"/",selectedPath:null,openPaths:[]}}function ie(s,t){switch(t.type){case"type":return{...s,draft:t.value};case"commitDraft":{const n=S(s.draft);return n===s.root&&n===s.draft?s:{...s,root:n,draft:n}}case"commitDebounced":{const n=S(s.draft);return n===s.root?s:{...s,root:n}}case"goUp":{const n=F(S(s.draft));return{...s,root:n,draft:n}}case"openDir":return{...s,draft:t.path};case"selectFile":return{...s,selectedPath:t.path,draft:F(t.path)};case"reselect":return{...s,selectedPath:t.path};case"toggleOpen":{const n=new Set(s.openPaths);if(n.has(t.path))n.delete(t.path);else if(n.add(t.path),n.size>ae){const l=n.values().next().value;l!==void 0&&n.delete(l)}return{...s,openPaths:n}}}}function ce({actorId:s}){const[{root:t,draft:n,selectedPath:l,openPaths:x},d]=w.useReducer(ie,s,r=>{const i=le(r);return{root:i.root,draft:i.root,selectedPath:i.selectedPath,openPaths:new Set(i.openPaths)}});w.useEffect(()=>{try{sessionStorage.setItem($(s),JSON.stringify({root:t,selectedPath:l,openPaths:[...x]}))}catch(r){console.warn("agentos inspector: failed to persist filesystem state",r)}},[s,t,l,x]);const[m,a]=w.useState(null),u=w.useRef(null),o=V(),p=R(j.listDirQueryOptions(s,t)),y=p.data===null,b=p.data??[];Z(n,500,()=>d({type:"commitDebounced"}));const g=()=>o.invalidateQueries({queryKey:["agent-os",s,"dir"]}),f=S(n),N=A({mutationFn:r=>j.mkdir(r.startsWith("/")?r:L(f,r)),onSuccess:async()=>{a(null),await g()}}),D=()=>{const r=m==null?void 0:m.trim();if(!r){a(null);return}N.mutate(r)},v=A({mutationFn:async r=>{const i=new Uint8Array(await r.arrayBuffer());await j.writeFile(L(f,r.name),i)},onSuccess:()=>g()}),c=N.error??v.error;return e.jsxs("div",{className:"flex h-full min-h-0",children:[e.jsxs("div",{className:"flex h-full w-64 shrink-0 flex-col border-r",children:[e.jsxs("div",{className:"flex items-center gap-1 px-3 pb-1 pt-2.5",children:[e.jsx("span",{className:"text-[11px] font-medium text-muted-foreground",children:"Files"}),e.jsx("span",{className:"ml-auto"}),e.jsx(h,{title:"Refresh the tree",onClick:()=>void g(),children:e.jsx(Q,{className:"size-3.5"})}),e.jsx(h,{title:`New folder under ${f}`,onClick:()=>a(r=>r===null?"":null),children:e.jsx(T,{className:"size-3.5"})}),e.jsx(h,{title:`Upload a file into ${f}`,onClick:()=>{var r;return(r=u.current)==null?void 0:r.click()},children:e.jsx(K,{className:"size-3.5"})}),e.jsx("input",{ref:u,type:"file",className:"hidden",onChange:r=>{var O;const i=(O=r.target.files)==null?void 0:O[0];r.target.value="",i&&v.mutate(i)}})]}),e.jsxs("div",{className:"flex items-center gap-1 border-b px-3 pb-1.5",children:[e.jsx(h,{title:f==="/"?"Already at the root":`Up to ${F(f)}`,disabled:f==="/",onClick:()=>d({type:"goUp"}),className:"size-5",children:e.jsx(M,{className:"size-3.5"})}),e.jsx("input",{value:n,onChange:r=>d({type:"type",value:r.target.value}),onKeyDown:r=>{r.key==="Enter"&&d({type:"commitDraft"})},spellCheck:!1,autoComplete:"off","aria-label":"Root directory",placeholder:"/",className:"w-full bg-transparent font-mono text-xs text-muted-foreground outline-none placeholder:text-muted-foreground/40 focus:text-foreground"})]}),m!==null?e.jsx("div",{className:"border-b px-3 py-1.5",children:e.jsx("input",{value:m,onChange:r=>a(r.target.value),onKeyDown:r=>{r.key==="Enter"&&D(),r.key==="Escape"&&a(null)},spellCheck:!1,autoFocus:!0,"aria-label":"New folder name",placeholder:`folder name (created under ${f})`,className:"w-full rounded border bg-background px-2 py-1 font-mono text-xs focus:outline-none"})}):null,c?e.jsx(z,{error:c,className:"border-b py-2"}):null,e.jsx(B,{className:"min-h-0 flex-1 p-2",children:p.isLoading?e.jsxs(k,{children:["Loading ",t,"…"]}):p.error?e.jsx(z,{error:p.error}):y?e.jsxs(k,{children:["Not a directory, or does not exist: ",t]}):b.length===0?e.jsx(k,{children:e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsx(U,{dir:!0,className:"size-8 text-muted-foreground/40"}),e.jsx("span",{children:"Empty directory."})]})}):b.map(r=>e.jsx(I,{actorId:s,entry:r,depth:0,selectedPath:l,onSelect:i=>d(i.dir?{type:"openDir",path:i.path}:{type:"selectFile",path:i.path}),openPaths:x,onToggle:i=>d({type:"toggleOpen",path:i})},r.path))})]}),e.jsxs("div",{className:"relative min-h-0 min-w-0 flex-1",children:[e.jsx("div",{className:"absolute right-3 top-11 z-10",children:e.jsx(se,{actorId:s})}),e.jsx(oe,{actorId:s,path:l,onMutated:()=>void g(),onDeleted:()=>d({type:"reselect",path:null}),onRenamed:r=>d({type:"reselect",path:r})})]})]})}export{xe as FilesystemTabConnected};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t}from"./index-CvS46tYl.js";function a(r){const e=t.useMemo(()=>r?URL.createObjectURL(new Blob([r])):null,[r]);return t.useEffect(()=>()=>{e&&URL.revokeObjectURL(e)},[e]),e}function i(r,e,n){const u=t.useRef(n);t.useEffect(()=>{u.current=n}),t.useEffect(()=>{const c=setTimeout(()=>u.current(r),e);return()=>clearTimeout(c)},[r,e])}function d({timeoutMs:r=3e3,resetKey:e}={}){const[n,u]=t.useState({armed:null,key:e}),c=t.useRef(void 0);n.key!==e&&u({armed:null,key:e});const o=n.key===e?n.armed:null;return t.useEffect(()=>()=>clearTimeout(c.current),[]),{armed:o,confirm:(f,m)=>{if(clearTimeout(c.current),o===f){u({armed:null,key:e}),m();return}u({armed:f,key:e}),c.current=setTimeout(()=>u({armed:null,key:e}),r)}}}export{a,d as b,i as u};
|