@webinson/peer-core 0.1.945 → 0.1.946

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.945 of Peer Local (https://github.com/SemanS/peer-app, branch `peer`), based on T3 Code.
17
+ Version 0.1.946 of Peer Local (https://github.com/SemanS/peer-app, branch `peer`), based on T3 Code.
package/dist/bin.mjs CHANGED
@@ -43,7 +43,19 @@ if (isEntrypoint({
43
43
  if (npmPeerBin) {
44
44
  const coreBin = /^peer-core/.test(NodePath.basename(process.argv[1] ?? ""));
45
45
  const [first, ...rest] = process.argv.slice(2);
46
- const args = first === "core" ? rest : coreBin ? [first ?? "status", ...rest] : [
46
+ const args = first === "core" ? rest : coreBin || first !== void 0 && (/* @__PURE__ */ new Set([
47
+ "login",
48
+ "join",
49
+ "logout",
50
+ "serve",
51
+ "stop",
52
+ "connect",
53
+ "disconnect",
54
+ "hooks",
55
+ "bind",
56
+ "tasks",
57
+ "take"
58
+ ])).has(first) ? [first ?? "status", ...rest] : [
47
59
  "run",
48
60
  "--",
49
61
  first ?? "status",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webinson/peer-core",
3
- "version": "0.1.945",
3
+ "version": "0.1.946",
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": {