@parley-im/parley 0.1.2 → 0.2.1

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/web/panel.js CHANGED
@@ -86,7 +86,7 @@
86
86
  const q = query.toLowerCase();
87
87
  const shown = sessions
88
88
  .filter((s) => (tab === "all" ? true : tab === "open" ? s.status === "open" : s.status !== "open"))
89
- .filter((s) => !q || `${s.tester} ${s.project} ${s.projectDir}`.toLowerCase().includes(q));
89
+ .filter((s) => !q || `${s.guest} ${s.project} ${s.projectDir}`.toLowerCase().includes(q));
90
90
 
91
91
  const head = el(
92
92
  "div",
@@ -113,16 +113,16 @@
113
113
  function row(s) {
114
114
  const open = s.status === "open";
115
115
  const used = s.replyLimit - s.repliesLeft;
116
- const name = el("div", { className: "name" }, el("span", { className: `dot ${!open ? "" : s.busy ? "busy" : s.repliesLeft === 0 ? "warn" : "on"}` }), s.tester);
116
+ const name = el("div", { className: "name" }, el("span", { className: `dot ${!open ? "" : s.busy ? "busy" : s.repliesLeft === 0 ? "warn" : "on"}` }), s.guest);
117
117
  if (s.stats.unread) name.append(el("span", { className: "badge", textContent: `${s.stats.unread} new` }));
118
118
  const who = el("a", { className: "who-cell", href: `/o/${s.id}`, style: "text-decoration:none" }, name, el("div", { className: "where", textContent: `${s.project} · ${s.model ?? (s.agent === "codex" ? "Codex" : "Claude")} · ${s.id}`, title: s.projectDir }));
119
119
 
120
120
  const activity = el(
121
121
  "div",
122
122
  { className: "c-activity cell-muted" },
123
- !open ? `ended ${ago(s.endedAt)}` : s.busy ? "replying now" : s.stats.last_tester_at ? `heard from ${ago(s.stats.last_tester_at)}` : "hasn't said anything yet",
123
+ !open ? `ended ${ago(s.endedAt)}` : s.busy ? "replying now" : s.stats.last_guest_at ? `heard from ${ago(s.stats.last_guest_at)}` : "hasn't said anything yet",
124
124
  );
125
- const messages = el("div", { className: "c-messages num", textContent: `${s.stats.tester_messages} message${s.stats.tester_messages === 1 ? "" : "s"}` });
125
+ const messages = el("div", { className: "c-messages num", textContent: `${s.stats.guest_messages} message${s.stats.guest_messages === 1 ? "" : "s"}` });
126
126
  const pct = Math.min(100, Math.round((used / s.replyLimit) * 100));
127
127
  const replies = el(
128
128
  "div",
@@ -207,9 +207,9 @@
207
207
  await navigator.clipboard.writeText(s.link);
208
208
  copy.textContent = "Copied";
209
209
  };
210
- $("made").replaceChildren(el("strong", { textContent: `Session for ${s.tester} is ready.` }), el("div", { className: "linkbox" }, link, copy), el("a", { className: "cell-muted", href: `/o/${s.id}`, textContent: "Open it" }));
210
+ $("made").replaceChildren(el("strong", { textContent: `Session for ${s.guest} is ready.` }), el("div", { className: "linkbox" }, link, copy), el("a", { className: "cell-muted", href: `/o/${s.id}`, textContent: "Open it" }));
211
211
  $("made").hidden = false;
212
- $("f-tester").value = $("f-brief").value = $("f-greeting").value = "";
212
+ $("f-guest").value = $("f-brief").value = $("f-greeting").value = "";
213
213
  refresh();
214
214
  } catch (error) {
215
215
  $("form-error").textContent = error.message;