cc-peer 1.6.1 → 1.6.3

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
@@ -1,9 +1,11 @@
1
1
  # cc-peer
2
2
 
3
- [![GitHub](https://img.shields.io/badge/GitHub-181717?logo=github&logoColor=white)](https://github.com/ExaDev/cc-peer) [![npm](https://img.shields.io/npm/v/cc-peer)](https://www.npmjs.com/package/cc-peer) [![CI](https://img.shields.io/github/actions/workflow/status/ExaDev/cc-peer/ci.yml?branch=main)](https://github.com/ExaDev/cc-peer/actions)
3
+ [![GitHub](https://img.shields.io/badge/GitHub-181717?logo=github&logoColor=white)](https://github.com/ExaDev/cc-peer) [![npm](https://img.shields.io/badge/npm-CB3837?logo=npm&logoColor=white)](https://www.npmjs.com/package/cc-peer) [![Release](https://img.shields.io/github/v/release/ExaDev/cc-peer)](https://github.com/ExaDev/cc-peer/releases/latest) [![CI](https://img.shields.io/github/actions/workflow/status/ExaDev/cc-peer/ci.yml?branch=main)](https://github.com/ExaDev/cc-peer/actions)
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
+ [![npm downloads chart, log scale](https://shieldcn.dev/chart/npm/cc-peer.svg?bg=transparent&logo=false&yScale=log)](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-BvoaikwI.cjs");
2
+ const require_cc_peer = require("../../cc-peer-VcccgoC4.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-CQV4Qv_H.mjs";
1
+ import { n as CcPeer } from "../../cc-peer-1qzmWBRO.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";
@@ -1,4 +1,4 @@
1
- import { a as InboundMessage, l as PathConfig, o as PeerRef } from "./cc-peer-mYIVwlKe.cjs";
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 {
@@ -1,4 +1,4 @@
1
- import { a as InboundMessage, l as PathConfig, o as PeerRef } from "./cc-peer-mYIVwlKe.mjs";
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 {
@@ -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-BvoaikwI.cjs");
3
+ const require_cc_peer = require("../cc-peer-VcccgoC4.cjs");
4
4
  const require_errors = require("../errors-BAbklcGw.cjs");
5
5
  let node_crypto = require("node:crypto");
6
6
  let zod = require("zod");
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as RegistryEntrySchema, n as CcPeer, r as PrioritySchema } from "../cc-peer-CQV4Qv_H.mjs";
2
+ import { i as RegistryEntrySchema, n as CcPeer, r as PrioritySchema } from "../cc-peer-1qzmWBRO.mjs";
3
3
  import { l as defineSchema } from "../errors-KYBco8pU.mjs";
4
4
  import { randomBytes } from "node:crypto";
5
5
  import { z } from "zod";
@@ -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.1";
11
+ var version = "1.6.3";
12
12
  //#endregion
13
13
  //#region src/adapters/node/uds-transport.ts
14
14
  /** macOS linger before close, matching the reference client's ~150ms. */
@@ -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 "busy" | "shell" | "idle" | "waiting";
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?: "busy" | "shell" | "idle" | "waiting" | undefined;
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 "busy" | "shell" | "idle" | "waiting";
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?: "busy" | "shell" | "idle" | "waiting" | undefined;
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.1";
11
+ var version = "1.6.3";
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-BvoaikwI.cjs");
2
+ const require_cc_peer = require("./cc-peer-VcccgoC4.cjs");
3
3
  exports.CC_PEER_VERSION = require_cc_peer.CC_PEER_VERSION;
4
4
  exports.CcPeer = require_cc_peer.CcPeer;
@@ -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-mYIVwlKe.cjs";
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 };
@@ -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-mYIVwlKe.mjs";
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-CQV4Qv_H.mjs";
1
+ import { n as CcPeer, t as CC_PEER_VERSION } from "./cc-peer-1qzmWBRO.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.1",
3
+ "version": "1.6.3",
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",