offsite 0.0.24 → 0.0.25

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 (27) hide show
  1. package/README.md +10 -0
  2. package/apps/server/dist/main.mjs +3 -1
  3. package/apps/server/dist/main.mjs.map +1 -1
  4. package/apps/web/dist/assets/HugeiconsIcon-eRbI5N8r.js +1 -0
  5. package/apps/web/dist/assets/audio-player-DPpDuqFI.js +1 -0
  6. package/apps/web/dist/assets/{dist-CuGUlcoC.js → dist-BxKL_-7_.js} +1 -1
  7. package/apps/web/dist/assets/{image-viewer-DnE3hPpr.js → image-viewer-CXSBWHCX.js} +1 -1
  8. package/apps/web/dist/assets/index-CjjE4vH0.css +2 -0
  9. package/apps/web/dist/assets/index-_B37DCJA.js +781 -0
  10. package/apps/web/dist/assets/{preview-dialog-CApdSumg.js → preview-dialog-Cgeg3W6o.js} +12 -12
  11. package/apps/web/dist/assets/react-BlUBLzv4.js +1416 -0
  12. package/apps/web/dist/assets/{tooltip-DZsSQhD8.js → tooltip-D08x1wZY.js} +1 -1
  13. package/apps/web/dist/assets/utils-PtDt7m8t.js +1 -0
  14. package/apps/web/dist/assets/video-player-DDu2cDQE.js +1 -0
  15. package/apps/web/dist/assets/video-player-DlVZx3V3.js +1 -0
  16. package/apps/web/dist/assets/{video-viewer-B404MUMw.js → video-viewer-Cr1-BYtu.js} +1 -1
  17. package/apps/web/dist/assets/{zoomable-image-CjNpa0bY.js → zoomable-image-CrpD_Zwi.js} +1 -1
  18. package/apps/web/dist/assets/zoomable-image-Fkv4fx_U.js +1 -0
  19. package/apps/web/dist/index.html +6 -5
  20. package/apps/web/dist/sw.js +1 -1
  21. package/package.json +1 -1
  22. package/apps/web/dist/assets/HugeiconsIcon-B46TDTdz.js +0 -1
  23. package/apps/web/dist/assets/index-BGGXjM1y.css +0 -2
  24. package/apps/web/dist/assets/index-Dv6wE5Po.js +0 -783
  25. package/apps/web/dist/assets/video-player-05lO0mz3.js +0 -1416
  26. package/apps/web/dist/assets/video-player-DGtpeSpK.js +0 -1
  27. package/apps/web/dist/assets/zoomable-image-CzRbnhdc.js +0 -1
package/README.md CHANGED
@@ -44,6 +44,16 @@ Give each instance its own port and `--dir`.
44
44
  npx offsite --port 47850 --dir ~/.offsite-work
45
45
  ```
46
46
 
47
+ ## Images, videos and audio
48
+
49
+ OffSite shows images, videos and audio inline when a reply links to a file with Markdown image syntax, like `![Header](/absolute/path/header.png)` or `![Header](./relative/path/header.png)`. Relative paths start at the project folder.
50
+
51
+ The `show` skill teaches agents this syntax. Add it with:
52
+
53
+ ```sh
54
+ npx skills add NazmusSayad/offsite --skill show
55
+ ```
56
+
47
57
  ## Development
48
58
 
49
59
  ```sh
@@ -4977,7 +4977,9 @@ function readProjectFile(cwd, file) {
4977
4977
  };
4978
4978
  }
4979
4979
  function linkProjectMedia(cwd, file) {
4980
- const full = resolveProjectFile(cwd, file);
4980
+ const resolved = path.resolve(realpathSync(cwd), file);
4981
+ if (!existsSync(resolved)) throw new Error(`${file} does not exist`);
4982
+ const full = realpathSync(resolved);
4981
4983
  const mediaType = mediaTypes.get(path.extname(full).toLowerCase());
4982
4984
  if (mediaType === void 0) throw new Error(`${file} is not an image, video or audio file`);
4983
4985
  return addLink(full, mediaType, null);