offsite 0.0.24 → 0.0.26
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/README.md +10 -0
- package/apps/server/dist/main.mjs +9 -5
- package/apps/server/dist/main.mjs.map +1 -1
- package/apps/web/dist/assets/HugeiconsIcon-eRbI5N8r.js +1 -0
- package/apps/web/dist/assets/audio-player-DPpDuqFI.js +1 -0
- package/apps/web/dist/assets/{dist-CuGUlcoC.js → dist-Cnpgu7Pu.js} +1 -1
- package/apps/web/dist/assets/{image-viewer-DnE3hPpr.js → image-viewer-CXSBWHCX.js} +1 -1
- package/apps/web/dist/assets/{index-Dv6wE5Po.js → index-BvZAQ-SQ.js} +63 -65
- package/apps/web/dist/assets/index-OSz7aE5h.css +2 -0
- package/apps/web/dist/assets/{preview-dialog-CApdSumg.js → preview-dialog-Cgeg3W6o.js} +12 -12
- package/apps/web/dist/assets/react-BlUBLzv4.js +1416 -0
- package/apps/web/dist/assets/{tooltip-DZsSQhD8.js → tooltip-D08x1wZY.js} +1 -1
- package/apps/web/dist/assets/utils-PtDt7m8t.js +1 -0
- package/apps/web/dist/assets/video-player-DDu2cDQE.js +1 -0
- package/apps/web/dist/assets/video-player-DlVZx3V3.js +1 -0
- package/apps/web/dist/assets/{video-viewer-B404MUMw.js → video-viewer-Cr1-BYtu.js} +1 -1
- package/apps/web/dist/assets/{zoomable-image-CjNpa0bY.js → zoomable-image-CrpD_Zwi.js} +1 -1
- package/apps/web/dist/assets/zoomable-image-Fkv4fx_U.js +1 -0
- package/apps/web/dist/index.html +6 -5
- package/apps/web/dist/sw.js +1 -1
- package/package.json +1 -1
- package/apps/web/dist/assets/HugeiconsIcon-B46TDTdz.js +0 -1
- package/apps/web/dist/assets/index-BGGXjM1y.css +0 -2
- package/apps/web/dist/assets/video-player-05lO0mz3.js +0 -1416
- package/apps/web/dist/assets/video-player-DGtpeSpK.js +0 -1
- 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 `` or ``. 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
|
|
@@ -2602,11 +2602,12 @@ async function fetchProject(cwd) {
|
|
|
2602
2602
|
}
|
|
2603
2603
|
}));
|
|
2604
2604
|
}
|
|
2605
|
-
async function
|
|
2605
|
+
async function listBranches(cwd, remote) {
|
|
2606
2606
|
return (await git(cwd, [
|
|
2607
|
-
"
|
|
2607
|
+
"for-each-ref",
|
|
2608
2608
|
"--sort=-committerdate",
|
|
2609
|
-
"--format=%(refname:short)"
|
|
2609
|
+
"--format=%(if)%(symref)%(then)%(else)%(refname:short)%(end)",
|
|
2610
|
+
remote ? "refs/remotes" : "refs/heads"
|
|
2610
2611
|
])).stdout.split("\n").filter(Boolean);
|
|
2611
2612
|
}
|
|
2612
2613
|
async function switchBranch(cwd, branch, create) {
|
|
@@ -4977,7 +4978,9 @@ function readProjectFile(cwd, file) {
|
|
|
4977
4978
|
};
|
|
4978
4979
|
}
|
|
4979
4980
|
function linkProjectMedia(cwd, file) {
|
|
4980
|
-
const
|
|
4981
|
+
const resolved = path.resolve(realpathSync(cwd), file);
|
|
4982
|
+
if (!existsSync(resolved)) throw new Error(`${file} does not exist`);
|
|
4983
|
+
const full = realpathSync(resolved);
|
|
4981
4984
|
const mediaType = mediaTypes.get(path.extname(full).toLowerCase());
|
|
4982
4985
|
if (mediaType === void 0) throw new Error(`${file} is not an image, video or audio file`);
|
|
4983
4986
|
return addLink(full, mediaType, null);
|
|
@@ -6276,7 +6279,8 @@ const handlers = {
|
|
|
6276
6279
|
return null;
|
|
6277
6280
|
},
|
|
6278
6281
|
"git.branches": (params) => pullRequestBranches(path.join(projectPath(params.projectId), params.repo)),
|
|
6279
|
-
"git.localBranches": (params) =>
|
|
6282
|
+
"git.localBranches": (params) => listBranches(path.join(projectPath(params.projectId), params.repo), false),
|
|
6283
|
+
"git.remoteBranches": (params) => listBranches(path.join(projectPath(params.projectId), params.repo), true),
|
|
6280
6284
|
"git.switch": async (params) => {
|
|
6281
6285
|
await switchBranch(path.join(projectPath(params.projectId), params.repo), params.branch, params.create);
|
|
6282
6286
|
return null;
|