@webinson/peer-core 0.1.973 → 0.1.974
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
|
@@ -16,4 +16,4 @@ peer core serve --detach # or let the editor start it on demand
|
|
|
16
16
|
`peer core status` says who runs Peer here; `peer core stop` stops Peer Core. The Peer desktop app,
|
|
17
17
|
when it starts, takes coordination over. Any other `peer <command>` goes to the running Peer.
|
|
18
18
|
|
|
19
|
-
Version 0.1.
|
|
19
|
+
Version 0.1.974 of Peer Local (https://github.com/SemanS/peer-app, branch `peer`), based on T3 Code.
|
package/dist/bin.mjs
CHANGED
|
@@ -43,7 +43,7 @@ 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 !== void 0 && (/* @__PURE__ */ new Set([
|
|
46
|
+
const args = first === "--help" || first === "-h" || first === "help" ? ["--help"] : first === "core" ? rest : coreBin || first !== void 0 && (/* @__PURE__ */ new Set([
|
|
47
47
|
"login",
|
|
48
48
|
"join",
|
|
49
49
|
"logout",
|
|
@@ -54,7 +54,9 @@ if (isEntrypoint({
|
|
|
54
54
|
"hooks",
|
|
55
55
|
"bind",
|
|
56
56
|
"tasks",
|
|
57
|
-
"take"
|
|
57
|
+
"take",
|
|
58
|
+
"create",
|
|
59
|
+
"invite"
|
|
58
60
|
])).has(first) ? [first ?? "status", ...rest] : [
|
|
59
61
|
"run",
|
|
60
62
|
"--",
|
|
@@ -64,7 +66,7 @@ if (isEntrypoint({
|
|
|
64
66
|
process.argv = [
|
|
65
67
|
process.argv[0],
|
|
66
68
|
NodeFS.realpathSync(process.argv[1]),
|
|
67
|
-
"
|
|
69
|
+
"core",
|
|
68
70
|
...args
|
|
69
71
|
];
|
|
70
72
|
}
|
|
@@ -75,8 +77,8 @@ if (isEntrypoint({
|
|
|
75
77
|
} else {
|
|
76
78
|
const { attachConsoleStdin } = await import("./consoleStdin-DO-vIhyg.mjs");
|
|
77
79
|
attachConsoleStdin();
|
|
78
|
-
const { runCli } = await import("./binCli-
|
|
79
|
-
runCli();
|
|
80
|
+
const { runCli } = await import("./binCli-DF_UUxXF.mjs");
|
|
81
|
+
runCli(npmPeerBin ? "peer" : "t3");
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
//#endregion
|
|
@@ -28526,14 +28526,14 @@ const hooksGroup = make$62("hooks").pipe(withDescription("Peer's hooks in Claude
|
|
|
28526
28526
|
const runCommand = make$62("run", {
|
|
28527
28527
|
...authLocationFlags,
|
|
28528
28528
|
words: String$2("command").pipe(withDescription$2("A peer command and its arguments (after --)."), variadic({ min: 1 }))
|
|
28529
|
-
}).pipe(withDescription("Internal: run a peer command through the running Peer."), withHandler((flags) => gen$1(function* () {
|
|
28529
|
+
}).pipe(withDescription("Internal: run a peer command through the running Peer."), unlisted, withHandler((flags) => gen$1(function* () {
|
|
28530
28530
|
const config = yield* resolveConfig(flags);
|
|
28531
28531
|
const [command, ...args] = flags.words;
|
|
28532
28532
|
if (command === void 0 || !/^[A-Za-z0-9_.-]+$/.test(command)) return yield* fail(`peer: ${command ?? ""} is not a peer command.`);
|
|
28533
28533
|
if ((yield* ownerOf(config.stateDir)) === null) return yield* fail("peer: Peer is not running. Start it with peer core serve, or open the Peer app.");
|
|
28534
28534
|
return yield* forward(config.stateDir, command, args, process.cwd());
|
|
28535
28535
|
})));
|
|
28536
|
-
const makePeerCommand = (name) => make$62(name).pipe(withDescription(name === "peer" ? "Peer's coordination without the Peer app (Peer Core; also peer core …)."
|
|
28536
|
+
const makePeerCommand = (name) => make$62(name).pipe(withDescription(name === "peer-core" ? "The former name of t3 peer, kept for shims written before it." : "Peer's coordination without the Peer app (Peer Core; also peer core …)."), withSubcommands([
|
|
28537
28537
|
serveCommand$1,
|
|
28538
28538
|
stopCommand,
|
|
28539
28539
|
statusCommand,
|
|
@@ -28554,6 +28554,8 @@ const makePeerCommand = (name) => make$62(name).pipe(withDescription(name === "p
|
|
|
28554
28554
|
const peerCommand = makePeerCommand("peer");
|
|
28555
28555
|
/** Shims from the previous build run `<launch> peer-core serve --detach`. */
|
|
28556
28556
|
const peerCoreCommand = makePeerCommand("peer-core");
|
|
28557
|
+
/** The npm package's `peer core …`, under a root of its own so help names `peer core`, not `t3 peer`. */
|
|
28558
|
+
const npmCoreCommand = makePeerCommand("core");
|
|
28557
28559
|
//#endregion
|
|
28558
28560
|
//#region src/serverOwnership.ts
|
|
28559
28561
|
var ServerAlreadyRunningError = class extends TaggedError()("ServerAlreadyRunningError", { stateDir: String$6 }) {
|
|
@@ -54872,10 +54874,12 @@ const makeCli = ({ cloudEnabled = hasCloudPublicConfig } = {}) => make$62("t3",
|
|
|
54872
54874
|
cloudEnabled ? connectCommand : connectUnavailableCommand
|
|
54873
54875
|
]));
|
|
54874
54876
|
const cli = makeCli();
|
|
54875
|
-
|
|
54876
|
-
|
|
54877
|
+
/** The npm package's `peer` bin: only `peer core …`, its help named so. */
|
|
54878
|
+
const npmPeerCli = make$62("peer").pipe(withDescription("Peer's coordination for coding agents, without the Peer app."), withSubcommands([npmCoreCommand]));
|
|
54879
|
+
function runCli(root = "t3") {
|
|
54880
|
+
(root === "peer" ? run$1(npmPeerCli, { version }) : run$1(cli, { version })).pipe(scoped, provide(layerCliRuntime), runMain);
|
|
54877
54881
|
}
|
|
54878
54882
|
//#endregion
|
|
54879
54883
|
export { runCli };
|
|
54880
54884
|
|
|
54881
|
-
//# sourceMappingURL=binCli-
|
|
54885
|
+
//# sourceMappingURL=binCli-DF_UUxXF.mjs.map
|