@rivet-dev/agentos 0.2.14 → 0.2.16-rc.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.
Files changed (25) hide show
  1. package/assets/inspector-tabs-app/assets/agentos-hero-logo-E3fapwXM.svg +74 -0
  2. package/assets/inspector-tabs-app/assets/filesystem-Ce_1E-AG.js +1 -0
  3. package/assets/inspector-tabs-app/assets/index-AMqbzdhN.js +126 -0
  4. package/assets/inspector-tabs-app/assets/index-tcfmhW06.css +1 -0
  5. package/assets/inspector-tabs-app/assets/sed-BwsOyU9v.svg +1 -0
  6. package/assets/inspector-tabs-app/assets/system-AIh54aFR.js +2 -0
  7. package/assets/inspector-tabs-app/assets/transcript-D07sAUKE.js +1 -0
  8. package/assets/inspector-tabs-app/assets/useSuspenseQuery-BXmNSEVQ.js +1 -0
  9. package/assets/inspector-tabs-app/assets/vm-boot-gate-CzDOFOZU.js +1 -0
  10. package/assets/inspector-tabs-app/assets/vm-status-badges-CnUikLsX.js +5 -0
  11. package/assets/inspector-tabs-app/index.html +2 -2
  12. package/dist/index.d.ts +242 -20
  13. package/dist/index.js +646 -85
  14. package/dist/index.js.map +1 -1
  15. package/package.json +5 -5
  16. package/assets/inspector-tabs-app/assets/badge-BmCA5T7W.js +0 -1
  17. package/assets/inspector-tabs-app/assets/filesystem-Ddl1E2J2.js +0 -1
  18. package/assets/inspector-tabs-app/assets/index-BGua85-g.js +0 -125
  19. package/assets/inspector-tabs-app/assets/index-Dt5XhJ9h.css +0 -1
  20. package/assets/inspector-tabs-app/assets/mounts-DGpRABb5.js +0 -1
  21. package/assets/inspector-tabs-app/assets/processes-kG2x8aAp.js +0 -1
  22. package/assets/inspector-tabs-app/assets/scroll-area-DzEUZzTZ.js +0 -1
  23. package/assets/inspector-tabs-app/assets/software-CIIxhwyc.js +0 -1
  24. package/assets/inspector-tabs-app/assets/transcript-DEti4eM2.js +0 -1
  25. package/assets/inspector-tabs-app/assets/useSuspenseQuery-DmE5ZTv0.js +0 -1
@@ -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-AMqbzdhN.js";import{V as Y,u as Z,a as A,b as ee,c as te}from"./vm-boot-gate-CzDOFOZU.js";import{S as B,V as se}from"./vm-status-badges-CnUikLsX.js";const re=/\.(png|jpe?g|gif|webp|svg|ico|bmp|avif)$/i;function I({actorId:s,entry:t,depth:n,selectedPath:l,onSelect:p,openPaths:d,onToggle:f}){const o=d.has(t.path),u=t.path===l,a=t.dir&&!t.virtual,x=R(j.listDirQueryOptions(s,t.path,a&&o));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:()=>a&&f(t.path),className:P("flex size-5 items-center justify-center rounded text-muted-foreground hover:bg-muted/50",!a&&"pointer-events-none opacity-0"),disabled:!a,children:e.jsx(W,{className:P("size-3 transition-transform",o&&"rotate-90")})}),e.jsxs("button",{type:"button",onClick:()=>{a&&f(t.path),p(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]})]}),a&&o?(x.data??[]).map(y=>e.jsx(I,{actorId:s,entry:y,depth:n+1,selectedPath:l,onSelect:p,openPaths:d,onToggle:f},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 ae({actorId:s,path:t,onMutated:n,onDeleted:l,onRenamed:p}){const[d,f]=w.useState(()=>E(t));d.path!==t&&f(E(t));const o=d.path===t?d:E(t),u=c=>f(r=>({...r,...c})),{data:a,error:x}=R(j.fileContentQueryOptions(s,t,o.force)),y=!!(a!=null&&a.bytes)&&a.text===null&&re.test(a.path),b=ee(y?a==null?void 0:a.bytes:null),{armed:g,confirm:m}=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(x)return e.jsx(z,{error:x,className:"items-center justify-center text-center"});if(!a)return e.jsxs(k,{children:["Loading ",t,"…"]});const N=a.path.split("/").pop()??a.path,D=async()=>{var r;const c=(r=o.renameDraft)==null?void 0:r.trim();if(!c||c===a.path){u({renameDraft:null});return}u({error:null});try{await j.moveEntry(a.path,c),u({renameDraft:null}),p(c),n()}catch(i){u({error:i})}},v=async()=>{u({error:null});try{await j.deleteFile(a.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:[o.renameDraft!==null?e.jsx("input",{value:o.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:a.path}),e.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:C(a.sizeBytes)}),e.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:q(a.mtimeMs)}),e.jsx(h,{title:a.bytes?"Download this file":"Load the file first",disabled:!a.bytes,onClick:()=>a.bytes&&ne(a.bytes,N),children:e.jsx(G,{className:"size-3.5"})}),e.jsx(h,{title:o.renameDraft!==null?"Save new name":"Rename this file",onClick:()=>o.renameDraft!==null?void D():u({renameDraft:a.path}),children:o.renameDraft!==null?e.jsx(J,{className:"size-3.5"}):e.jsx(X,{className:"size-3.5"})}),g==="delete"?e.jsx("button",{type:"button",onClick:()=>m("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:()=>m("delete",()=>void v()),children:e.jsx(H,{className:"size-3.5"})})]}),o.error?e.jsx(z,{error:o.error,className:"border-b py-2"}):null,e.jsx(B,{className:"min-h-0 flex-1",children:a.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."}):a.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(a.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"})]}):a.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(a.sizeBytes),") — use Download to save it."]}):e.jsx("pre",{className:"whitespace-pre-wrap break-words p-4 font-mono text-xs leading-relaxed",children:a.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 me({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}`,oe=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>oe){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:p},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:[...p]}))}catch(r){console.warn("agentos inspector: failed to persist filesystem state",r)}},[s,t,l,p]);const[f,o]=w.useState(null),u=w.useRef(null),a=V(),x=R(j.listDirQueryOptions(s,t)),y=x.data===null,b=x.data??[];Z(n,500,()=>d({type:"commitDebounced"}));const g=()=>a.invalidateQueries({queryKey:["agent-os",s,"dir"]}),m=S(n),N=A({mutationFn:r=>j.mkdir(r.startsWith("/")?r:L(m,r)),onSuccess:async()=>{o(null),await g()}}),D=()=>{const r=f==null?void 0:f.trim();if(!r){o(null);return}N.mutate(r)},v=A({mutationFn:async r=>{const i=new Uint8Array(await r.arrayBuffer());await j.writeFile(L(m,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 ${m}`,onClick:()=>o(r=>r===null?"":null),children:e.jsx(T,{className:"size-3.5"})}),e.jsx(h,{title:`Upload a file into ${m}`,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:m==="/"?"Already at the root":`Up to ${F(m)}`,disabled:m==="/",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"})]}),f!==null?e.jsx("div",{className:"border-b px-3 py-1.5",children:e.jsx("input",{value:f,onChange:r=>o(r.target.value),onKeyDown:r=>{r.key==="Enter"&&D(),r.key==="Escape"&&o(null)},spellCheck:!1,autoFocus:!0,"aria-label":"New folder name",placeholder:`folder name (created under ${m})`,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:x.isLoading?e.jsxs(k,{children:["Loading ",t,"…"]}):x.error?e.jsx(z,{error:x.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:p,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(ae,{actorId:s,path:l,onMutated:()=>void g(),onDeleted:()=>d({type:"reselect",path:null}),onRenamed:r=>d({type:"reselect",path:r})})]})]})}export{me as FilesystemTabConnected};