cc-peer 1.6.1 → 1.6.2
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 +2 -0
- package/dist/adapters/node/alias-worker.cjs +1 -1
- package/dist/adapters/node/alias-worker.mjs +1 -1
- package/dist/alias-pool.d.cts +1 -1
- package/dist/alias-pool.d.mts +1 -1
- package/dist/bin/cc-peer.cjs +1 -1
- package/dist/bin/cc-peer.mjs +1 -1
- package/dist/{cc-peer-mYIVwlKe.d.cts → cc-peer-B3i4ZlKV.d.cts} +3 -3
- package/dist/{cc-peer-mYIVwlKe.d.mts → cc-peer-B3i4ZlKV.d.mts} +3 -3
- package/dist/{cc-peer-BvoaikwI.cjs → cc-peer-DNB8oHNm.cjs} +1 -1
- package/dist/{cc-peer-CQV4Qv_H.mjs → cc-peer-zz8MzHY8.mjs} +1 -1
- package/dist/cc-peer.cjs +1 -1
- package/dist/cc-peer.d.cts +1 -1
- package/dist/cc-peer.d.mts +1 -1
- package/dist/cc-peer.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Talk to the Claude Code instances running on your machine, from any Node application: send messages, register as a named peer other sessions can discover and message, receive replies and delivery receipts, and subscribe to idle notifications. Ships a REST facade you can run with `npx cc-peer`.
|
|
6
6
|
|
|
7
|
+
[](https://www.npmjs.com/package/cc-peer)
|
|
8
|
+
|
|
7
9
|
> **Unofficial.** This SDK speaks Claude Code's local cross-session peer protocol, which was reverse-engineered and verified against Claude Code 2.1.269. It is not affiliated with or endorsed by Anthropic, and the protocol may change without notice between Claude Code releases.
|
|
8
10
|
|
|
9
11
|
## Why
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("../../rolldown-runtime-VH7oDXx4.cjs");
|
|
2
|
-
const require_cc_peer = require("../../cc-peer-
|
|
2
|
+
const require_cc_peer = require("../../cc-peer-DNB8oHNm.cjs");
|
|
3
3
|
const require_errors = require("../../errors-BAbklcGw.cjs");
|
|
4
4
|
const require_alias_ipc = require("../../alias-ipc-BPc2wfmz.cjs");
|
|
5
5
|
let node_process = require("node:process");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as CcPeer } from "../../cc-peer-
|
|
1
|
+
import { n as CcPeer } from "../../cc-peer-zz8MzHY8.mjs";
|
|
2
2
|
import { r as CcPeerError } from "../../errors-KYBco8pU.mjs";
|
|
3
3
|
import { t as AliasCommandSchema } from "../../alias-ipc-BSh7Q4LL.mjs";
|
|
4
4
|
import process from "node:process";
|
package/dist/alias-pool.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as InboundMessage, l as PathConfig, o as PeerRef } from "./cc-peer-
|
|
1
|
+
import { a as InboundMessage, l as PathConfig, o as PeerRef } from "./cc-peer-B3i4ZlKV.cjs";
|
|
2
2
|
import { EventEmitter } from "node:events";
|
|
3
3
|
//#region src/ports/alias-process.d.ts
|
|
4
4
|
interface AliasStartOptions extends PathConfig {
|
package/dist/alias-pool.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as InboundMessage, l as PathConfig, o as PeerRef } from "./cc-peer-
|
|
1
|
+
import { a as InboundMessage, l as PathConfig, o as PeerRef } from "./cc-peer-B3i4ZlKV.mjs";
|
|
2
2
|
import { EventEmitter } from "node:events";
|
|
3
3
|
//#region src/ports/alias-process.d.ts
|
|
4
4
|
interface AliasStartOptions extends PathConfig {
|
package/dist/bin/cc-peer.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const require_rolldown_runtime = require("../rolldown-runtime-VH7oDXx4.cjs");
|
|
3
|
-
const require_cc_peer = require("../cc-peer-
|
|
3
|
+
const require_cc_peer = require("../cc-peer-DNB8oHNm.cjs");
|
|
4
4
|
const require_errors = require("../errors-BAbklcGw.cjs");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let zod = require("zod");
|
package/dist/bin/cc-peer.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as RegistryEntrySchema, n as CcPeer, r as PrioritySchema } from "../cc-peer-
|
|
2
|
+
import { i as RegistryEntrySchema, n as CcPeer, r as PrioritySchema } from "../cc-peer-zz8MzHY8.mjs";
|
|
3
3
|
import { l as defineSchema } from "../errors-KYBco8pU.mjs";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -71,12 +71,12 @@ declare const RegistryEntrySchema: z.ZodObject<{
|
|
|
71
71
|
nameSince: z.ZodOptional<z.ZodNumber>;
|
|
72
72
|
updatedAt: z.ZodNumber;
|
|
73
73
|
status: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
idle: "idle";
|
|
74
75
|
busy: "busy";
|
|
75
76
|
shell: "shell";
|
|
76
|
-
idle: "idle";
|
|
77
77
|
waiting: "waiting";
|
|
78
78
|
}> & {
|
|
79
|
-
is(value: unknown): value is "
|
|
79
|
+
is(value: unknown): value is "idle" | "busy" | "shell" | "waiting";
|
|
80
80
|
}>;
|
|
81
81
|
statusUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
82
82
|
bridgeSessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -99,7 +99,7 @@ declare const RegistryEntrySchema: z.ZodObject<{
|
|
|
99
99
|
name?: string | undefined;
|
|
100
100
|
nameSource?: "user" | "peer" | "derived" | "collision" | "auto" | "hook" | undefined;
|
|
101
101
|
nameSince?: number | undefined;
|
|
102
|
-
status?: "
|
|
102
|
+
status?: "idle" | "busy" | "shell" | "waiting" | undefined;
|
|
103
103
|
statusUpdatedAt?: number | undefined;
|
|
104
104
|
bridgeSessionId?: string | undefined;
|
|
105
105
|
};
|
|
@@ -71,12 +71,12 @@ declare const RegistryEntrySchema: z.ZodObject<{
|
|
|
71
71
|
nameSince: z.ZodOptional<z.ZodNumber>;
|
|
72
72
|
updatedAt: z.ZodNumber;
|
|
73
73
|
status: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
idle: "idle";
|
|
74
75
|
busy: "busy";
|
|
75
76
|
shell: "shell";
|
|
76
|
-
idle: "idle";
|
|
77
77
|
waiting: "waiting";
|
|
78
78
|
}> & {
|
|
79
|
-
is(value: unknown): value is "
|
|
79
|
+
is(value: unknown): value is "idle" | "busy" | "shell" | "waiting";
|
|
80
80
|
}>;
|
|
81
81
|
statusUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
82
82
|
bridgeSessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -99,7 +99,7 @@ declare const RegistryEntrySchema: z.ZodObject<{
|
|
|
99
99
|
name?: string | undefined;
|
|
100
100
|
nameSource?: "user" | "peer" | "derived" | "collision" | "auto" | "hook" | undefined;
|
|
101
101
|
nameSince?: number | undefined;
|
|
102
|
-
status?: "
|
|
102
|
+
status?: "idle" | "busy" | "shell" | "waiting" | undefined;
|
|
103
103
|
statusUpdatedAt?: number | undefined;
|
|
104
104
|
bridgeSessionId?: string | undefined;
|
|
105
105
|
};
|
|
@@ -8,7 +8,7 @@ let zod = require("zod");
|
|
|
8
8
|
let node_os = require("node:os");
|
|
9
9
|
let node_child_process = require("node:child_process");
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.6.
|
|
11
|
+
var version = "1.6.2";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/adapters/node/uds-transport.ts
|
|
14
14
|
/** macOS linger before close, matching the reference client's ~150ms. */
|
|
@@ -8,7 +8,7 @@ import { z } from "zod";
|
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.6.
|
|
11
|
+
var version = "1.6.2";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/adapters/node/uds-transport.ts
|
|
14
14
|
/** macOS linger before close, matching the reference client's ~150ms. */
|
package/dist/cc-peer.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_cc_peer = require("./cc-peer-
|
|
2
|
+
const require_cc_peer = require("./cc-peer-DNB8oHNm.cjs");
|
|
3
3
|
exports.CC_PEER_VERSION = require_cc_peer.CC_PEER_VERSION;
|
|
4
4
|
exports.CcPeer = require_cc_peer.CcPeer;
|
package/dist/cc-peer.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as InboundMessage, c as SendOptions, i as IdleNotice, n as CcPeer, o as PeerRef, r as CcPeerOptions, s as Receipt, t as CC_PEER_VERSION } from "./cc-peer-
|
|
1
|
+
import { a as InboundMessage, c as SendOptions, i as IdleNotice, n as CcPeer, o as PeerRef, r as CcPeerOptions, s as Receipt, t as CC_PEER_VERSION } from "./cc-peer-B3i4ZlKV.cjs";
|
|
2
2
|
export { CC_PEER_VERSION, CcPeer, CcPeerOptions, IdleNotice, InboundMessage, PeerRef, Receipt, SendOptions };
|
package/dist/cc-peer.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as InboundMessage, c as SendOptions, i as IdleNotice, n as CcPeer, o as PeerRef, r as CcPeerOptions, s as Receipt, t as CC_PEER_VERSION } from "./cc-peer-
|
|
1
|
+
import { a as InboundMessage, c as SendOptions, i as IdleNotice, n as CcPeer, o as PeerRef, r as CcPeerOptions, s as Receipt, t as CC_PEER_VERSION } from "./cc-peer-B3i4ZlKV.mjs";
|
|
2
2
|
export { CC_PEER_VERSION, CcPeer, CcPeerOptions, IdleNotice, InboundMessage, PeerRef, Receipt, SendOptions };
|
package/dist/cc-peer.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CcPeer, t as CC_PEER_VERSION } from "./cc-peer-
|
|
1
|
+
import { n as CcPeer, t as CC_PEER_VERSION } from "./cc-peer-zz8MzHY8.mjs";
|
|
2
2
|
export { CC_PEER_VERSION, CcPeer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-peer",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "Communicate with local Claude Code instances over their native cross-session peer messaging: send and receive messages, register as a named discoverable peer, receipts, idle subscriptions, and a REST facade via `npx cc-peer`.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|