@paradow/ledge-relay 0.66.0 → 0.67.0

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.
@@ -149,6 +149,7 @@ var BackgroundCommandSchema = z4.object({
149
149
  taskId: z4.string().optional()
150
150
  });
151
151
  var TopicSourceSchema = z4.enum(["user", "pane", "prompt"]);
152
+ var SESSION_LABEL_MAX = 40;
152
153
  var SessionSchema = z4.object({
153
154
  /** Origin is annotated by the overlay, never used as an unqualified session id on the wire. */
154
155
  machineId: z4.string().optional(),
@@ -158,6 +159,9 @@ var SessionSchema = z4.object({
158
159
  offline: z4.boolean().optional(),
159
160
  id: z4.string().min(1),
160
161
  name: z4.string().min(1),
162
+ /** A nickname the person gave it (docs/mockups/ledge-sidebar-names.html, card 2): shown before its name, « KB Projet 1 (Otto) ».
163
+ * Only a label: the name stays its address for the other sessions, the tasks and the routines. */
164
+ label: z4.string().min(1).max(SESSION_LABEL_MAX).optional(),
161
165
  tool: ToolSchema,
162
166
  cwd: z4.string(),
163
167
  project: z4.string(),
@@ -2711,6 +2715,8 @@ var DaemonInfoSchema = z33.object({
2711
2715
  routines: z33.boolean().optional(),
2712
2716
  /** Answers a grouped `routine.cmd` (`others`) all or nothing: a client sends one only to a daemon that says it. */
2713
2717
  routineGroups: z33.boolean().optional(),
2718
+ /** Takes `session.label`: a session's nickname, kept with it. A client sends one only to a daemon that says it. */
2719
+ sessionLabel: z33.boolean().optional(),
2714
2720
  /** Its launcher answers `shell --nonce <N> <dir>` (#299): a free shell started through it gets the shell integration (OSC 633). */
2715
2721
  freeShell: z33.boolean().optional()
2716
2722
  });
@@ -3034,6 +3040,9 @@ var ClientMessageSchema = z33.discriminatedUnion("type", [
3034
3040
  z33.object({ type: z33.literal("session.delete"), id: z33.string() }),
3035
3041
  /** The user names the session's topic from the overlay (500 characters at most, the hook's prompt cap); an empty topic hands back to the automatic sources. */
3036
3042
  z33.object({ type: z33.literal("session.rename"), id: z33.string(), topic: z33.string().max(500) }),
3043
+ /** A session's nickname set from the sidebar (`sessionLabel` in the daemon's info), trimmed; empty removes it. Its name, its
3044
+ * address, does not change. */
3045
+ z33.object({ type: z33.literal("session.label"), id: z33.string(), label: z33.string().max(200) }),
3037
3046
  z33.object({ type: z33.literal("session.thread"), id: z33.string() }),
3038
3047
  z33.object({ type: z33.literal("session.register"), session: SessionSchema }),
3039
3048
  /** `agent` and `cwd` describe the session when the daemon does not know it yet (a hook from an agent started without ledge). */
@@ -3363,6 +3372,7 @@ var PHONE_RIG_NAME_MAX = 100;
3363
3372
  var PhoneSessionSchema = SwitchableSessionSchema.pick({
3364
3373
  id: true,
3365
3374
  name: true,
3375
+ label: true,
3366
3376
  tool: true,
3367
3377
  project: true,
3368
3378
  title: true,
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  parsePublicUrl,
8
8
  startRelay,
9
9
  startupErrorLine
10
- } from "./chunk-OQPSXTOH.js";
10
+ } from "./chunk-XQMLJ5JA.js";
11
11
 
12
12
  // src/cli.ts
13
13
  import { chmodSync as chmodSync2, mkdirSync as mkdirSync2, readFileSync as readFileSync3, realpathSync } from "fs";
package/dist/main.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  loadConfig,
3
3
  startRelay,
4
4
  startupErrorLine
5
- } from "./chunk-OQPSXTOH.js";
5
+ } from "./chunk-XQMLJ5JA.js";
6
6
 
7
7
  // src/main.ts
8
8
  function die(msg) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paradow/ledge-relay",
3
- "version": "0.66.0",
3
+ "version": "0.67.0",
4
4
  "license": "PolyForm-Noncommercial-1.0.0",
5
5
  "repository": {
6
6
  "type": "git",