@webinson/peer-core 0.1.944 → 0.1.945

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 CHANGED
@@ -14,4 +14,4 @@ peer core serve --detach # or let the editor start it on demand
14
14
  `peer core status` says who runs Peer here; `peer core stop` stops Peer Core. The Peer desktop app,
15
15
  when it starts, takes coordination over. Any other `peer <command>` goes to the running Peer.
16
16
 
17
- Version 0.1.944 of Peer Local (https://github.com/SemanS/peer-app, branch `peer`), based on T3 Code.
17
+ Version 0.1.945 of Peer Local (https://github.com/SemanS/peer-app, branch `peer`), based on T3 Code.
package/dist/bin.mjs CHANGED
@@ -41,17 +41,19 @@ if (isEntrypoint({
41
41
  const { keepOutboundFetchOnHttp1 } = await import("./outboundHttp-DUt9NMiY.mjs");
42
42
  keepOutboundFetchOnHttp1();
43
43
  if (npmPeerBin) {
44
+ const coreBin = /^peer-core/.test(NodePath.basename(process.argv[1] ?? ""));
44
45
  const [first, ...rest] = process.argv.slice(2);
46
+ const args = first === "core" ? rest : coreBin ? [first ?? "status", ...rest] : [
47
+ "run",
48
+ "--",
49
+ first ?? "status",
50
+ ...rest
51
+ ];
45
52
  process.argv = [
46
53
  process.argv[0],
47
54
  NodeFS.realpathSync(process.argv[1]),
48
55
  "peer",
49
- ...first === "core" ? rest : [
50
- "run",
51
- "--",
52
- first ?? "status",
53
- ...rest
54
- ]
56
+ ...args
55
57
  ];
56
58
  }
57
59
  const command = process.argv[2];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webinson/peer-core",
3
- "version": "0.1.944",
3
+ "version": "0.1.945",
4
4
  "description": "Peer's coordination for coding agents without the Peer app: the `peer` command (Peer Core).",
5
5
  "license": "MIT",
6
6
  "repository": {