@oar-sh/oar 0.9.0 → 0.9.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/CHANGELOG.md +8 -0
- package/bin/oar.js +12 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to OAR are documented here. The format follows
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow semver.
|
|
5
5
|
|
|
6
|
+
## [0.9.1] — 2026-09-02
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- The globally installed `oar` command silently did nothing: npm's bin symlink
|
|
11
|
+
names `argv[1]` plain `oar`, which the `oar.js` entrypoint check never
|
|
12
|
+
matched. The guard now resolves real paths (and ships the executable bit).
|
|
13
|
+
|
|
6
14
|
## [0.9.0] — 2026-09-02
|
|
7
15
|
|
|
8
16
|
### Changed
|
package/bin/oar.js
CHANGED
|
@@ -652,8 +652,18 @@ function main() {
|
|
|
652
652
|
return launchRelay();
|
|
653
653
|
}
|
|
654
654
|
|
|
655
|
-
|
|
656
|
-
|
|
655
|
+
// Run main() when this file is the process entrypoint. npm bin shims make
|
|
656
|
+
// argv[1] a symlink named plain `oar`, so compare real paths first and fall
|
|
657
|
+
// back to the shim basename — a bare basename === 'oar.js' check silently
|
|
658
|
+
// no-ops for every global install.
|
|
659
|
+
const selfPath = fileURLToPath(import.meta.url);
|
|
660
|
+
const invokedPath = (() => {
|
|
661
|
+
const raw = String(process.argv[1] || '');
|
|
662
|
+
if (!raw) return '';
|
|
663
|
+
try { return fs.realpathSync(raw); } catch { return raw; }
|
|
664
|
+
})();
|
|
665
|
+
const invokedName = invokedPath ? path.basename(invokedPath) : '';
|
|
666
|
+
if (invokedPath === selfPath || invokedName === 'oar.js' || invokedName === 'oar') {
|
|
657
667
|
main().then(({ code }) => {
|
|
658
668
|
process.exit(code ?? 0);
|
|
659
669
|
}).catch((error) => {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oar-sh/oar",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "OAR
|
|
5
|
+
"description": "OAR \u2014 Open Agent Relay: drive your local coding agents from any browser",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://oar.sh",
|
|
8
8
|
"repository": {
|