@parley-im/parley 0.2.5 → 0.2.7

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
@@ -6,7 +6,7 @@ The agent runs on your computer, with your Claude or Codex login and plan. Links
6
6
 
7
7
  ## Using it
8
8
 
9
- Link your computer to your parley.im account once:
9
+ Link your computer to your parley account once:
10
10
 
11
11
  ```bash
12
12
  parley login
@@ -22,6 +22,8 @@ Your agent writes a brief from what it knows and hands back a link like `https:/
22
22
 
23
23
  > We're done with Sam's session.
24
24
 
25
+ Send parleys only to people you trust. A guest can ask about anything in the project folder, and the interviewer answers from what it finds there, including files you may have forgotten about. The blocked list and the agents' sandboxes keep secrets out and keep it inside the folder, but they shouldn't be the only thing between a stranger and your work.
26
+
25
27
  Or from a terminal:
26
28
 
27
29
  ```bash
package/dist/account.js CHANGED
@@ -32,9 +32,9 @@ async function call(creds, path, init = {}) {
32
32
  signal: AbortSignal.timeout(15_000),
33
33
  });
34
34
  if (res.status === 401)
35
- throw Object.assign(new Error("This computer isn't linked to parley.im anymore. Run parley login."), { unlinked: true });
35
+ throw Object.assign(new Error("This computer isn't linked to your parley account anymore. Run parley login."), { unlinked: true });
36
36
  if (!res.ok)
37
- throw new Error((await res.json().catch(() => null))?.message ?? `parley.im answered ${res.status}`);
37
+ throw new Error((await res.json().catch(() => null))?.message ?? `parley's servers answered ${res.status}`);
38
38
  return res.json();
39
39
  }
40
40
  // What parley.im is told about a session: its id and a title for link
package/dist/cli.js CHANGED
@@ -37,8 +37,8 @@ Commands
37
37
  parley limit ID N Let a session give N replies in total
38
38
  parley end ID Kill its link for good; the transcript stays
39
39
  parley delete ID Erase it, screenshots included
40
- parley login | logout | whoami Link this computer to parley.im, or unlink it
41
- parley start | stop | status The background server (holds the parley.im connection)
40
+ parley login | logout | whoami Link this computer to your parley account
41
+ parley start | stop | status The background server (holds the connection to parley)
42
42
  parley panel Open the control panel (localhost)
43
43
  parley install Add parley's MCP tools to Claude Code and Codex; start at login
44
44
  parley uninstall Undo install (your conversations stay)
@@ -46,7 +46,7 @@ Commands
46
46
  parley --version
47
47
 
48
48
  Conversations and screenshots live in each project's .parley folder (kept out of git), with a
49
- readable transcript.md per session. Settings and your parley.im login live in ${paths.home}.`;
49
+ readable transcript.md per session. Settings and your parley login live in ${paths.home}.`;
50
50
  const CLI_PATH = fileURLToPath(import.meta.url);
51
51
  async function main() {
52
52
  const [command, ...rest] = process.argv.slice(2);
@@ -88,7 +88,7 @@ async function main() {
88
88
  clearCredentials();
89
89
  if (await isServerUp(config))
90
90
  await fetch(`http://localhost:${config.dashboardPort}/api/relay/restart`, { method: "POST" });
91
- console.log(`Unlinked from ${creds.account.email}. Existing parley.im links stop working until you sign in again.`);
91
+ console.log(`Unlinked from ${creds.account.email}. Shared links stop working until you sign in again.`);
92
92
  return;
93
93
  }
94
94
  case "whoami": {
@@ -149,10 +149,11 @@ async function main() {
149
149
  console.log(`Link: ${linkFor(session, config)}`);
150
150
  console.log(`Replies allowed: ${session.reply_limit}`);
151
151
  console.log(`Watch: ${dashboardUrl(config, session)}`);
152
+ console.log(`\nSend it only to someone you trust: they can ask about anything in this folder.`);
152
153
  if (!readCredentials(config))
153
154
  console.log("\nNot signed in, so this link only works on this computer. Run parley login to share links.");
154
155
  else if (!made.shared)
155
- console.log(`\nparley.im didn't take the session yet; it will once the connection is back (see ${paths.log}).`);
156
+ console.log(`\nparley's servers didn't take the session yet; it will once the connection is back (see ${paths.log}).`);
156
157
  return;
157
158
  }
158
159
  case "list": {
package/dist/mcp.js CHANGED
@@ -10,7 +10,7 @@ import { startSession, endSession, setReplyLimit } from "./control.js";
10
10
  import { readCredentials } from "./account.js";
11
11
  const INSTRUCTIONS = `Parley lets the user hand a guest a link to a private web chat with a read-only Claude or Codex running in their project folder. The guest talks; the agent listens, asks follow-ups, answers questions from the code, and everything is recorded.
12
12
 
13
- Use create_session when the user wants someone to give feedback on a project. Write the brief from what you know about the project and what the user wants to learn. Later, use list_sessions to see which sessions are open, which have new messages, and how many replies each has used and spent; get_transcript to read them; set_reply_limit to give a session more room or less; and end_session when the user is done with one. Links live on parley.im and are end-to-end encrypted; the conversation itself happens on the user's computer, so guests can only get replies while it's awake and the parley server is running.`;
13
+ Use create_session when the user wants someone to give feedback on a project. Write the brief from what you know about the project and what the user wants to learn. Later, use list_sessions to see which sessions are open, which have new messages, and how many replies each has used and spent; get_transcript to read them; set_reply_limit to give a session more room or less; and end_session when the user is done with one. Parleys are for people the user trusts: a guest can ask about anything in the project folder, and the interviewer may answer from files the user has forgotten are there. If the user wants to send one to strangers or post it publicly, say so plainly before making it. Links live on parley.im and are end-to-end encrypted; the conversation itself happens on the user's computer, so guests can only get replies while it's awake and the parley server is running.`;
14
14
  export async function runMcp() {
15
15
  const config = loadConfig();
16
16
  const store = new Store();
@@ -22,7 +22,8 @@ export async function runMcp() {
22
22
  title: "Create a feedback session",
23
23
  description: "Create a parley session: a private link the user can send to a guest. The guest chats with a fresh, read-only " +
24
24
  "agent in the project folder that hears their feedback, answers questions by reading the code, and records everything. " +
25
- "Starts the local server and tunnel if needed. Returns the link to give the user.",
25
+ "Starts the local server and tunnel if needed. Returns the link to give the user. Only for guests the user trusts, " +
26
+ "since the guest can ask about anything in the project folder.",
26
27
  inputSchema: {
27
28
  project_dir: z.string().describe("Absolute path of the project folder, normally your current working directory."),
28
29
  guest: z.string().describe("Name of the person who will give feedback, e.g. 'Sam'."),
@@ -72,18 +73,19 @@ export async function runMcp() {
72
73
  "",
73
74
  ];
74
75
  if (!readCredentials(config)) {
75
- lines.push("This computer isn't signed in to parley.im, so the link only works here. Have the user run `parley login` to share links.");
76
+ lines.push("This computer isn't signed in to parley, so the link only works here. Have the user run `parley login` to share links.");
76
77
  }
77
78
  else if (!made.serverUp) {
78
79
  lines.push("Warning: the parley server didn't come up, so the link won't answer yet. Check ~/.parley/server.log, then run `parley start`.");
79
80
  }
80
81
  else if (!made.shared) {
81
- lines.push("Warning: parley.im didn't take the session yet. It will once the connection is back; `parley status` shows it.");
82
+ lines.push("Warning: parley's servers didn't take the session yet. It will once the connection is back; `parley status` shows it.");
82
83
  }
83
84
  else {
84
85
  lines.push("Everything after the # in the link is the session's encryption key: share the whole link, and only with the guest. " +
85
86
  "Replies come from this computer, so it needs to be awake with parley running.");
86
87
  }
88
+ lines.push(`Tell the user to send it only to someone they trust: ${session.guest} can ask about anything in this project folder.`);
87
89
  return reply(lines.join("\n"));
88
90
  });
89
91
  server.registerTool("list_sessions", {
package/dist/relay.js CHANGED
@@ -100,7 +100,7 @@ export class RelayLink {
100
100
  return;
101
101
  this.ws = null;
102
102
  if (event.code === 4401) {
103
- this.status = { state: "unlinked", relayUrl: creds.relayUrl, error: "This computer was unlinked from its parley.im account. Run parley login." };
103
+ this.status = { state: "unlinked", relayUrl: creds.relayUrl, error: "This computer was unlinked from its parley account. Run parley login." };
104
104
  return;
105
105
  }
106
106
  if (event.code === 4426) {
@@ -123,7 +123,7 @@ export class RelayLink {
123
123
  try {
124
124
  const res = await fetch(`${creds.relayUrl}/api/me`, { headers: { authorization: `Bearer ${creds.token}` }, signal: AbortSignal.timeout(10_000) });
125
125
  if (res.status === 401) {
126
- this.status = { state: "unlinked", relayUrl: creds.relayUrl, error: "This computer isn't linked to a parley.im account anymore. Run parley login." };
126
+ this.status = { state: "unlinked", relayUrl: creds.relayUrl, error: "This computer isn't linked to a parley account anymore. Run parley login." };
127
127
  return;
128
128
  }
129
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parley-im/parley",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Send someone a link. They talk to a read-only Claude or Codex in your project, on your computer, and you get everything they said.",
5
5
  "keywords": [
6
6
  "claude",
@@ -40,8 +40,8 @@
40
40
  "zod": "^4.6.5"
41
41
  },
42
42
  "devDependencies": {
43
- "@fontsource-variable/atkinson-hyperlegible-next": "^5.3.0",
44
- "@fontsource-variable/bricolage-grotesque": "^5.3.0",
43
+ "@fontsource-variable/instrument-sans": "^5.3.0",
44
+ "@fontsource-variable/jetbrains-mono": "^5.3.0",
45
45
  "@types/jsdom": "^30.0.0",
46
46
  "@types/node": "^26.6.4",
47
47
  "jsdom": "^29.1.1",
package/web/app.css CHANGED
@@ -1,63 +1,62 @@
1
1
  /* parley: one stylesheet for the guest chat, your session view, your
2
- control panel and parley.im. The Signal flag look: the code flag for P
3
- (blue field, white square) as the mark, flag blue on sail, Bricolage
4
- Grotesque for headlines and the wordmark, Atkinson Hyperlegible Next for
5
- everything people read, and a monospace face only where it means
6
- something (code, paths, the agent's activity, numbers). The fonts are
7
- served from here, never from a font service, so guest pages only ever
8
- talk to parley.im. */
9
-
10
- @font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/static/fonts/atkinson-hyperlegible-next.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
11
- @font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/static/fonts/atkinson-hyperlegible-next-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
12
- @font-face { font-family: "Bricolage Grotesque"; src: url("/static/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
2
+ control panel and parley's site. Deep, murky ocean green on paper, for the
3
+ people who use Claude Code and Codex: Instrument Sans for everything
4
+ people read, JetBrains Mono for the wordmark, labels, files and numbers.
5
+ The agent's words are marked with a dot, as in Claude Code, and while it
6
+ writes, P goes by in Morse. The fonts are served from here, never from a
7
+ font service, so guest pages only ever talk to parley. */
8
+
9
+ @font-face { font-family: "Instrument Sans"; src: url("/static/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
10
+ @font-face { font-family: "Instrument Sans"; src: url("/static/fonts/instrument-sans-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
11
+ @font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
13
12
 
14
13
  :root {
15
- --bg: #f5f3ee; /* sail */
14
+ --bg: #f2f4f1; /* paper, a little sea-washed */
16
15
  --panel: #ffffff;
17
- --subtle: #eeebe4;
18
- --hover: #e7e3d9;
19
- --line: #e4e1d9;
20
- --line-strong: #cfcbc1;
21
- --text: #121c33; /* ink */
22
- --muted: #5b6476;
23
- --faint: #8b93a3;
24
- --accent: #1f48b8; /* flag blue, for links and marks */
25
- --accent-fill: #1f48b8; /* buttons and the flag itself */
26
- --accent-soft: #e6ecfa;
16
+ --subtle: #eaeeea;
17
+ --hover: #e1e7e3;
18
+ --line: #dde4e0;
19
+ --line-strong: #c6d0cb;
20
+ --text: #0f1d1a; /* abyss */
21
+ --muted: #55645e;
22
+ --faint: #8c9893;
23
+ --accent: #22574c; /* deep murky green, for links and marks */
24
+ --accent-fill: #22574c; /* buttons */
25
+ --accent-soft: #e1eae5;
27
26
  --accent-ink: #ffffff;
28
- --guest: #e6ecfa; /* your own messages */
29
- --guest-ink: #23314f;
30
- --brass: #d99a2b; /* small touches only */
31
- --ok: #1e8a52;
32
- --warn: #b7791f;
33
- --danger: #c4302b;
34
- --shadow: 0 1px 2px rgba(18, 28, 51, 0.05), 0 12px 32px -16px rgba(18, 28, 51, 0.22);
35
- --sans: "Atkinson Hyperlegible Next", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
36
- --display: "Bricolage Grotesque", var(--sans);
37
- --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
27
+ --tile: #22574c; /* the mark's tile */
28
+ --guest: #e1eae5; /* your own messages */
29
+ --guest-ink: #183a32;
30
+ --ok: #2f7d5b;
31
+ --warn: #a8741c;
32
+ --danger: #c4383a;
33
+ --shadow: 0 1px 2px rgba(15, 29, 26, 0.05), 0 12px 32px -16px rgba(15, 29, 26, 0.24);
34
+ --sans: "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
35
+ --display: var(--sans);
36
+ --mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
38
37
  color-scheme: light;
39
38
  }
40
39
  @media (prefers-color-scheme: dark) {
41
40
  :root:not([data-theme="light"]) {
42
- --bg: #0d1322; /* ink at night */
43
- --panel: #141c2f;
44
- --subtle: #1a2338;
45
- --hover: #222c44;
46
- --line: #232d45;
47
- --line-strong: #33405e;
48
- --text: #e8ecf4;
49
- --muted: #9aa4b8;
50
- --faint: #67718a;
51
- --accent: #84a4f6;
52
- --accent-fill: #3b6be8;
53
- --accent-soft: #1c2a4d;
41
+ --bg: #0b1513; /* the deep */
42
+ --panel: #111c19;
43
+ --subtle: #16231f;
44
+ --hover: #1d2b27;
45
+ --line: #1f2d29;
46
+ --line-strong: #30423c;
47
+ --text: #e3ebe7;
48
+ --muted: #9baea6;
49
+ --faint: #62726b;
50
+ --accent: #86c2ae; /* sea glass, through murky water */
51
+ --accent-fill: #2e6c5f;
52
+ --accent-soft: #19302a;
54
53
  --accent-ink: #ffffff;
55
- --guest: #1e2b4b;
56
- --guest-ink: #dce5fa;
57
- --brass: #e3ab45;
58
- --ok: #3ccf7a;
59
- --warn: #e3a948;
60
- --danger: #ff6b63;
54
+ --tile: #2e6c5f;
55
+ --guest: #1b2e28;
56
+ --guest-ink: #dbe9e3;
57
+ --ok: #5fc296;
58
+ --warn: #dba54a;
59
+ --danger: #ff6f6b;
61
60
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
62
61
  color-scheme: dark;
63
62
  }
@@ -79,51 +78,41 @@ body {
79
78
  a { color: inherit; }
80
79
  button, input, textarea, select { font: inherit; color: inherit; }
81
80
  h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }
81
+ code, kbd, pre { font-family: var(--mono); }
82
82
 
83
83
  /* ---------- shared pieces ---------- */
84
84
 
85
- /* The mark: the code flag for P, a blue field with a white square. */
85
+ /* The mark, for now: a p on a deep green tile. */
86
86
  .mark { display: inline-block; width: 24px; height: 24px; flex: none; }
87
87
  .mark svg { display: block; width: 100%; height: 100%; }
88
- .mark .field { fill: var(--accent-fill); }
89
- .mark .square { fill: #ffffff; }
90
- /* The same flag, small, drawn in CSS: beside the interviewer's words, and
91
- hoisting in turn while it writes. */
92
- .flag { display: inline-block; flex: none; width: 13px; height: 13px; border-radius: 3px; box-shadow: inset 0 0 0 3.5px var(--accent-fill), inset 0 0 0 13px #ffffff; }
93
- .wordmark { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; }
88
+ .mark .tile { fill: var(--tile); }
89
+ .mark .glyph { fill: #ffffff; }
90
+ .wordmark { font-family: var(--mono); font-weight: 700; letter-spacing: -0.04em; }
94
91
 
95
92
  .topbar {
96
93
  display: flex; align-items: center; gap: 10px; min-height: 52px;
97
94
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
98
95
  border-bottom: 1px solid var(--line); background: var(--bg);
99
96
  }
100
- .crumbs { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1; }
101
- .crumbs .product { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; font-size: 17px; color: var(--text); }
97
+ .crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
98
+ .crumbs .product { font-family: var(--mono); font-weight: 700; letter-spacing: -0.04em; font-size: 16px; color: var(--text); }
102
99
  .crumbs .slash { color: var(--faint); }
103
- .brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none !important; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.025em; }
104
- .brand:hover .mark { filter: brightness(1.1); }
100
+ .brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none !important; font-family: var(--mono); font-weight: 700; font-size: 17px; letter-spacing: -0.04em; }
101
+ .brand:hover .mark { filter: brightness(1.15); }
105
102
  .lost .own { margin-top: 18px; font-size: 13px; color: var(--faint); }
106
103
  .lost .own a { color: var(--accent); }
107
104
  .crumbs .here { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
108
105
  .crumbs a { text-decoration: none; }
109
106
  .crumbs a:hover { text-decoration: underline; }
110
107
 
111
- .status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
112
- .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
113
- .dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
108
+ .status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
109
+ .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
110
+ .dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
114
111
  .dot.busy { background: var(--accent); animation: pulse 1.4s infinite ease-in-out; }
115
- .dot.warn { background: var(--warn); }
116
- .dot.off { background: var(--danger); }
112
+ .dot.warn { background: transparent; box-shadow: inset 0 0 0 2px var(--faint); }
113
+ .dot.off { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 20%, transparent); }
114
+ .app.offline .status { color: var(--danger); }
117
115
  @keyframes pulse { 50% { opacity: 0.35; } }
118
- /* In a chat's header the status is a flag on its staff: flying when the
119
- sender's computer is there, at half-mast (and red) when it isn't. */
120
- .status .dot { position: relative; width: 12px; height: 15px; border-radius: 0; background: none; box-shadow: none; animation: none; }
121
- .status .dot::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 15px; border-radius: 1px; background: var(--muted); }
122
- .status .dot::after { content: ""; position: absolute; left: 2px; top: 0; width: 9px; height: 8px; border-radius: 0 2px 2px 0; background: var(--accent-fill); box-shadow: inset 0 0 0 2.5px var(--accent-fill), inset 0 0 0 9px #ffffff; transition: top 0.4s ease; }
123
- .status .dot.off::after { top: 7px; box-shadow: inset 0 0 0 2.5px var(--danger), inset 0 0 0 9px #ffffff; }
124
- .status .dot.warn::after { top: 7px; box-shadow: inset 0 0 0 2.5px var(--faint), inset 0 0 0 9px var(--bg); }
125
- .status .dot.busy::after { animation: flutter 1.2s ease-in-out infinite; }
126
- @keyframes flutter { 50% { transform: skewY(-8deg); } }
127
116
 
128
117
  .btn {
129
118
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
@@ -143,7 +132,7 @@ h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }
143
132
 
144
133
  .chip {
145
134
  font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap;
146
- padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--subtle);
135
+ padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--subtle);
147
136
  }
148
137
  .chip.low { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
149
138
  .info-btn { width: 34px; height: 34px; margin-right: -6px; }
@@ -173,7 +162,7 @@ h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }
173
162
  background: var(--subtle); border-left: 3px solid var(--warn); color: var(--text);
174
163
  }
175
164
 
176
- .label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
165
+ .label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
177
166
 
178
167
  /* ---------- chat ---------- */
179
168
 
@@ -202,14 +191,15 @@ body:has(> .app) { overflow: hidden; overscroll-behavior: none; }
202
191
  position: absolute; left: 0; top: 0; width: 14px; text-align: center;
203
192
  font-family: var(--mono); font-size: 14px; line-height: 1.55;
204
193
  }
205
- .msg.agent::before { content: ""; top: 5px; width: 13px; height: 13px; border-radius: 3px; box-shadow: inset 0 0 0 3.5px var(--accent-fill), inset 0 0 0 13px #ffffff; }
194
+ /* The agent's words get a dot, as in Claude Code. */
195
+ .msg.agent::before { content: ""; left: 3px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
206
196
  /* The interviewer's words are what people read: set for reading. */
207
197
  .msg.agent .body { font-size: 16.5px; line-height: 1.6; }
208
198
  /* Your own words are compact and plainly yours, on the right. */
209
199
  .msg.guest { padding-left: 0; display: flex; flex-direction: column; align-items: flex-end; }
210
200
  .msg.guest::before { content: none; }
211
201
  .msg.error::before { content: "!"; color: var(--danger); font-weight: 700; }
212
- .meta { font-size: 12px; color: var(--faint); margin-bottom: 2px; }
202
+ .meta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-bottom: 2px; }
213
203
  .meta .who { color: var(--muted); font-weight: 600; }
214
204
  .msg.guest .bubble { max-width: min(82%, 560px); background: var(--guest); color: var(--guest-ink); border-radius: 14px 14px 4px 14px; padding: 9px 13px; font-size: 15px; line-height: 1.45; }
215
205
  .msg.guest .meta { display: none; }
@@ -257,15 +247,17 @@ body:has(> .app) { overflow: hidden; overscroll-behavior: none; }
257
247
  .body th { background: var(--subtle); font-weight: 600; white-space: nowrap; }
258
248
  .body tr:last-child td { border-bottom: 0; }
259
249
 
260
- /* Writing: three tiny flags hoisting in turn. */
261
- .thinking { display: inline-flex; align-items: flex-end; gap: 5px; height: 22px; padding-top: 4px; }
262
- .thinking span { width: 8px; height: 8px; border-radius: 2px; box-shadow: inset 0 0 0 2.5px var(--accent-fill), inset 0 0 0 8px #ffffff; animation: hoist 1.2s ease-in-out infinite; }
263
- .thinking span:nth-child(2) { animation-delay: 0.15s; }
264
- .thinking span:nth-child(3) { animation-delay: 0.3s; }
265
- @keyframes hoist { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
266
- @media (prefers-reduced-motion: reduce) { .thinking span, .status .dot.busy::after { animation: none; } }
267
- @keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
268
- .cursor::after { content: ""; display: inline-block; width: 7px; height: 1.05em; background: var(--accent); margin-left: 3px; vertical-align: -3px; animation: blink 1s infinite; }
250
+ /* Writing: P in Morse (dot, dash, dash, dot), passing by. */
251
+ .thinking { display: inline-flex; align-items: center; gap: 4px; height: 26px; }
252
+ .thinking span { width: 7px; height: 7px; border-radius: 4px; background: var(--accent); opacity: 0.25; animation: morse 1.6s ease-in-out infinite; }
253
+ .thinking span:nth-child(2), .thinking span:nth-child(3) { width: 17px; }
254
+ .thinking span:nth-child(2) { animation-delay: 0.16s; }
255
+ .thinking span:nth-child(3) { animation-delay: 0.32s; }
256
+ .thinking span:nth-child(4) { animation-delay: 0.48s; }
257
+ @keyframes morse { 0%, 70%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
258
+ @keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
259
+ .cursor::after { content: ""; display: inline-block; width: 7px; height: 1.05em; background: var(--accent); border-radius: 1px; margin-left: 3px; vertical-align: -3px; animation: blink 1.06s steps(1) infinite; }
260
+ @media (prefers-reduced-motion: reduce) { .thinking span, .cursor::after, .dot.busy { animation: none; } .thinking span { opacity: 0.7; } }
269
261
 
270
262
  .dock { border-top: 1px solid var(--line); background: var(--bg); }
271
263
  .dock .chat-inner { padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
@@ -422,8 +414,7 @@ body.panel { overflow: auto; }
422
414
 
423
415
  .lost { min-height: 100dvh; display: grid; place-items: center; padding: 16px; text-align: center; }
424
416
  .lost.inline { min-height: 100%; }
425
- .lost .mark { width: 36px; height: 36px; border-radius: 9px; margin: 0 auto 16px; }
426
- .lost .mark svg { width: 20px; height: 20px; }
417
+ .lost .mark { width: 40px; height: 40px; margin: 0 auto 16px; }
427
418
  .lost h1 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.01em; }
428
419
  .lost p { color: var(--muted); margin: 0 auto; max-width: 34ch; }
429
420
 
@@ -462,7 +453,9 @@ body.panel { overflow: auto; }
462
453
  .menu-who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
463
454
  @keyframes drop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
464
455
 
465
- .live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
456
+ /* A session's status on the dashboard (not the chat's reply in progress,
457
+ which is li.live). */
458
+ span.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
466
459
  .docs { padding-bottom: 40px; }
467
460
  .docs h2 { font-size: 17px; letter-spacing: -0.01em; margin: 36px 0 10px; }
468
461
  .docs p, .docs li { max-width: 66ch; }
@@ -475,8 +468,8 @@ body.panel { overflow: auto; }
475
468
  /* Long details shorten instead of pushing the buttons off a phone screen. */
476
469
  .trow.site-row .who-cell { min-width: 0; }
477
470
 
478
- /* parley.im's front page: what it is, in plain words, beside a glimpse of a
479
- parley. */
471
+ /* parley's front page: what it is, in plain words, beside a parley playing
472
+ out (home.js). */
480
473
  .landing { max-width: 1080px; }
481
474
  .front { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 8vh 0 24px; }
482
475
  .front .intro { flex: 999 1 440px; min-width: 0; display: grid; gap: 18px; padding: 0; border: 0; background: none; margin: 0; font-size: inherit; color: inherit; }
@@ -486,18 +479,31 @@ body.panel { overflow: auto; }
486
479
  .front .cta .btn { height: 46px; padding: 0 20px; border-radius: 11px; font-size: 16px; font-weight: 700; }
487
480
  .front .cta .btn.ghost { color: var(--text); font-weight: 500; }
488
481
  .front .fine { font-size: 14px; color: var(--muted); margin: 0; }
489
- .glimpse {
490
- flex: 1 1 320px; min-width: 0; display: grid; gap: 14px; padding: 20px; background: var(--panel);
491
- border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
492
- }
493
- .glimpse .says { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 16px; line-height: 1.55; }
494
- .glimpse .says .flag { margin-top: 5px; }
495
- .glimpse .reply { justify-self: end; max-width: 85%; padding: 8px 12px; background: var(--guest); color: var(--guest-ink); border-radius: 13px 13px 4px 13px; font-size: 14px; line-height: 1.45; }
496
- .glimpse .writing { display: flex; gap: 10px; align-items: center; }
497
- .glimpse .writing .thinking { padding: 0; height: 16px; }
482
+ .demo { flex: 1 1 380px; min-width: 0; margin: 0; display: grid; gap: 10px; }
483
+ .demo-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
484
+ .demo-tabs button { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
485
+ .demo-tabs button:hover { color: var(--text); }
486
+ .demo-tabs button.on { background: var(--panel); border-color: var(--line); color: var(--text); }
487
+ .demo-chat { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
488
+ .demo-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
489
+ .demo-top .mark { width: 20px; height: 20px; }
490
+ .demo-top .product { font-family: var(--mono); font-weight: 700; letter-spacing: -0.04em; }
491
+ .demo-top .slash { color: var(--faint); }
492
+ .demo-top .here { font-weight: 600; flex: 1; }
493
+ .demo-msgs { list-style: none; margin: 0; padding: 18px 18px 6px; min-height: 340px; display: flex; flex-direction: column; gap: 14px; }
494
+ .demo .msg { margin: 0; animation: rise 0.25s ease-out; }
495
+ .demo .msg.agent .body { font-size: 15.5px; }
496
+ .demo .msg.agent::before { top: 8px; }
497
+ .demo .msg.guest .bubble { font-size: 14.5px; max-width: 86%; }
498
+ .demo .steps { margin-top: 2px; }
499
+ .demo-say { margin: 0 14px 14px; padding: 8px 8px 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 13px; color: var(--faint); font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
500
+ .demo-say .send-dot { width: 32px; height: 32px; border-radius: 9px; background: var(--subtle); }
501
+ @keyframes rise { from { opacity: 0; transform: translateY(4px); } }
502
+ @media (prefers-reduced-motion: reduce) { .demo .msg { animation: none; } }
503
+ @media (max-width: 560px) { .demo-msgs { min-height: 400px; padding: 14px 12px 6px; } }
498
504
  .how { list-style: none; counter-reset: step; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
499
505
  .how li { counter-increment: step; border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--panel); display: grid; gap: 10px; align-content: start; }
500
- .how li::before { content: counter(step); font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 15px; }
506
+ .how li::before { content: "0" counter(step); font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 13px; }
501
507
  .how h2 { font-size: 20px; margin: 0; }
502
508
  .how p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
503
509
  .how q { color: var(--text); }
package/web/chat.html CHANGED
@@ -5,13 +5,13 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content">
6
6
  <meta name="robots" content="noindex, nofollow">
7
7
  <meta name="referrer" content="no-referrer">
8
- <meta name="theme-color" content="#0c0c0d" media="(prefers-color-scheme: dark)">
9
- <meta name="theme-color" content="#fafaf9" media="(prefers-color-scheme: light)">
8
+ <meta name="theme-color" content="#0b1513" media="(prefers-color-scheme: dark)">
9
+ <meta name="theme-color" content="#f2f4f1" media="(prefers-color-scheme: light)">
10
10
  <meta property="og:title" content="{{PREVIEW_TITLE}}">
11
11
  <meta property="og:description" content="{{PREVIEW_TEXT}}">
12
12
  <meta property="og:site_name" content="parley">
13
13
  <title>{{TITLE}}</title>
14
- <link rel="icon" href="/static/icon.svg?v=3" type="image/svg+xml">
14
+ <link rel="icon" href="/static/icon.svg?v=5" type="image/svg+xml">
15
15
  <link rel="stylesheet" href="/static/app.css">
16
16
  </head>
17
17
  <body>
@@ -20,7 +20,7 @@
20
20
  <nav class="crumbs" id="crumbs">
21
21
  <!-- What parley is, in a new tab so the conversation stays put. -->
22
22
  <a class="brand" id="home-link" href="https://parley.im" target="_blank" rel="noopener" title="parley: let people talk to your agent">
23
- <span class="mark" aria-hidden="true"><svg viewBox="0 0 64 64"><rect class="field" width="64" height="64" rx="14"/><rect class="square" x="20" y="20" width="24" height="24" rx="2"/></svg></span><span class="product">parley</span>
23
+ <span class="mark" aria-hidden="true"><svg viewBox="0 0 64 64"><rect class="tile" width="64" height="64" rx="14"/><rect class="glyph" x="19.5" y="16" width="7" height="32" rx="1.5"/><path class="glyph" fill-rule="evenodd" d="M44.5 25.5A10 10 0 1 1 24.5 25.5A10 10 0 1 1 44.5 25.5ZM38.5 25.5A4 4 0 1 0 30.5 25.5A4 4 0 1 0 38.5 25.5Z"/></svg></span><span class="product">parley</span>
24
24
  </a><span class="slash">/</span><span class="here" id="project">&nbsp;</span>
25
25
  </nav>
26
26
  <span class="status" id="status" hidden><span class="dot" id="status-dot"></span><span id="status-text"></span></span>
package/web/chat.js CHANGED
@@ -222,7 +222,7 @@
222
222
  if (live.text.trim()) {
223
223
  live.bodyEl.innerHTML = window.renderMarkdown(live.text);
224
224
  live.bodyEl.lastElementChild?.classList.add("cursor");
225
- } else live.bodyEl.innerHTML = `<span class="thinking"><span></span><span></span><span></span></span>`;
225
+ } else live.bodyEl.innerHTML = `<span class="thinking" role="img" aria-label="Writing"><span></span><span></span><span></span><span></span></span>`;
226
226
  // The last few things it looked at, newest highlighted.
227
227
  live.stepsEl.textContent = "";
228
228
  live.steps.slice(-4).forEach((line, i, shown) => live.stepsEl.append(el("li", { className: i === shown.length - 1 ? "now" : "", textContent: line })));
@@ -345,7 +345,7 @@
345
345
  end.onclick = () => endConversation(end);
346
346
  const open = !ended && session?.status !== "ended";
347
347
  els.sheetBody.replaceChildren(
348
- el("p", {}, strong(who), " set this up to hear what you think of ", strong(projectName), sender ? `. parley.im checked it's really them, with Google.` : "."),
348
+ el("p", {}, strong(who), " set this up to hear what you think of ", strong(projectName), sender ? `. parley checked it's really them, with Google.` : "."),
349
349
  kv(facts),
350
350
  el("div", { className: "sheet-actions" }, save, open ? end : null),
351
351
  open ? el("p", { className: "fine" }, `Ending it stops this link working, for you and anyone else who has it. ${ownerName || "They"} keep${ownerName ? "s" : ""} everything said so far.`) : null,
@@ -358,7 +358,7 @@
358
358
  ? el(
359
359
  "p",
360
360
  {},
361
- `Messages and screenshots are end-to-end encrypted between this page and ${theirs} computer. parley.im passes them along but can't read them; it knows who sent this link, the project's name and when messages go by. The key is the part of your link after the #, so anyone with the whole link can read this chat: keep it to yourself. (This page's code comes from parley.im, so that promise relies on parley.im serving it honestly. And ${agentName()} reads the conversation to reply, as with any ${agentName()} chat.)`,
361
+ `Messages and screenshots are end-to-end encrypted between this page and ${theirs} computer. parley passes them along but can't read them; it knows who sent this link, the project's name and when messages go by. The key is the part of your link after the #, so anyone with the whole link can read this chat: keep it to yourself. (This page's code comes from parley's servers, so that promise relies on parley serving it honestly. And ${agentName()} reads the conversation to reply, as with any ${agentName()} chat.)`,
362
362
  )
363
363
  : null,
364
364
  el("p", {}, `When the replies run out, the chat pauses until ${whom} adds more. Replies come from ${theirs} computer, so it needs to be on, and the link stops working for good once the chat ends.`),
@@ -440,7 +440,7 @@
440
440
 
441
441
  function markEl() {
442
442
  const span = el("span", { className: "mark" });
443
- span.innerHTML = `<svg viewBox="0 0 64 64"><rect class="field" width="64" height="64" rx="14"/><rect class="square" x="20" y="20" width="24" height="24" rx="2"/></svg>`;
443
+ span.innerHTML = `<svg viewBox="0 0 64 64"><rect class="tile" width="64" height="64" rx="14"/><rect class="glyph" x="19.5" y="16" width="7" height="32" rx="1.5"/><path class="glyph" fill-rule="evenodd" d="M44.5 25.5A10 10 0 1 1 24.5 25.5A10 10 0 1 1 44.5 25.5ZM38.5 25.5A4 4 0 1 0 30.5 25.5A4 4 0 1 0 38.5 25.5Z"/></svg>`;
444
444
  return span;
445
445
  }
446
446
 
package/web/ended.html CHANGED
@@ -5,13 +5,13 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <meta name="robots" content="noindex, nofollow">
7
7
  <title>This parley has ended</title>
8
- <link rel="icon" href="/static/icon.svg?v=3" type="image/svg+xml">
8
+ <link rel="icon" href="/static/icon.svg?v=5" type="image/svg+xml">
9
9
  <link rel="stylesheet" href="/static/app.css">
10
10
  </head>
11
11
  <body>
12
12
  <div class="lost">
13
13
  <div>
14
- <span class="mark" aria-hidden="true"><svg viewBox="0 0 64 64"><rect class="field" width="64" height="64" rx="14"/><rect class="square" x="20" y="20" width="24" height="24" rx="2"/></svg></span>
14
+ <span class="mark" aria-hidden="true"><svg viewBox="0 0 64 64"><rect class="tile" width="64" height="64" rx="14"/><rect class="glyph" x="19.5" y="16" width="7" height="32" rx="1.5"/><path class="glyph" fill-rule="evenodd" d="M44.5 25.5A10 10 0 1 1 24.5 25.5A10 10 0 1 1 44.5 25.5ZM38.5 25.5A4 4 0 1 0 30.5 25.5A4 4 0 1 0 38.5 25.5Z"/></svg></span>
15
15
  <h1>This parley has ended</h1>
16
16
  <p>Thanks for the feedback. The conversation isn't available here anymore.</p>
17
17
  </div>
@@ -1,4 +1,4 @@
1
- Copyright 2020-2024 The Atkinson Hyperlegible Next Project Authors (https://github.com/googlefonts/atkinson-hyperlegible-next) AtkinsonHyperlegibleNext-Italic[wght].ttf: Copyright 2020-2024 The Atkinson Hyperlegible Next Project Authors (https://github.com/googlefonts/atkinson-hyperlegible-next)
1
+ Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans) InstrumentSans-Italic[wdth,wght].ttf: Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans)
2
2
 
3
3
  This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
4
  This license is copied below, and is also available with a FAQ at:
@@ -1,4 +1,4 @@
1
- Copyright 2022 The Bricolage Grotesque Project Authors (https://github.com/ateliertriay/bricolage)
1
+ Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
2
2
 
3
3
  This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
4
  This license is copied below, and is also available with a FAQ at:
Binary file
Binary file
package/web/home.js ADDED
@@ -0,0 +1,90 @@
1
+ // parley's front page: plays the demo, three short parleys in turn, the way
2
+ // a guest sees one. The first is already in the page, so without script (or
3
+ // for anyone who prefers less motion) it just sits there, and the tabs swap
4
+ // scenes without playing them.
5
+ (() => {
6
+ const root = document.getElementById("demo");
7
+ const list = document.getElementById("demo-msgs");
8
+ const data = document.getElementById("scenes");
9
+ if (!root || !list || !data) return;
10
+ const scenes = JSON.parse(data.textContent);
11
+ const tabs = [...root.querySelectorAll("[data-scene]")];
12
+ const still = matchMedia("(prefers-reduced-motion: reduce)").matches;
13
+ let run = 0; // a new run cancels the one playing
14
+
15
+ const el = (tag, className, text) => {
16
+ const node = document.createElement(tag);
17
+ if (className) node.className = className;
18
+ if (text != null) node.textContent = text;
19
+ return node;
20
+ };
21
+ const guest = (text) => {
22
+ const node = el("li", "msg guest");
23
+ node.append(el("div", "bubble", text));
24
+ return node;
25
+ };
26
+ const agent = (text) => {
27
+ const node = el("li", "msg agent");
28
+ const body = el("div", "body");
29
+ body.append(el("p", "", text));
30
+ node.append(body);
31
+ return node;
32
+ };
33
+ const wait = (ms, id) => new Promise((resolve, reject) => setTimeout(() => (id === run ? resolve() : reject(new Error("stopped"))), ms));
34
+
35
+ function pick(i) {
36
+ tabs.forEach((tab, j) => {
37
+ tab.classList.toggle("on", i === j);
38
+ tab.setAttribute("aria-pressed", String(i === j));
39
+ });
40
+ }
41
+
42
+ function show(i) {
43
+ const scene = scenes[i];
44
+ pick(i);
45
+ list.replaceChildren(guest(scene.asks), agent(scene.says), guest(scene.then));
46
+ }
47
+
48
+ async function play(i, id) {
49
+ const scene = scenes[i];
50
+ pick(i);
51
+ list.replaceChildren();
52
+ await wait(500, id);
53
+ list.append(guest(scene.asks));
54
+ await wait(900, id);
55
+ // Working: the agent looks something up in the project, then writes.
56
+ const node = el("li", "msg agent");
57
+ const body = el("div", "body");
58
+ body.innerHTML = `<span class="thinking" role="img" aria-label="Writing"><span></span><span></span><span></span><span></span></span>`;
59
+ const steps = el("ul", "steps");
60
+ node.append(body, steps);
61
+ list.append(node);
62
+ await wait(700, id);
63
+ steps.append(el("li", "now", scene.step));
64
+ await wait(1400, id);
65
+ const p = el("p", "cursor");
66
+ body.replaceChildren(p);
67
+ const words = scene.says.split(" ");
68
+ for (let w = 1; w <= words.length; w++) {
69
+ p.textContent = words.slice(0, w).join(" ");
70
+ await wait(55, id);
71
+ }
72
+ p.classList.remove("cursor");
73
+ steps.remove();
74
+ await wait(1500, id);
75
+ list.append(guest(scene.then));
76
+ await wait(4500, id);
77
+ }
78
+
79
+ async function loop(from) {
80
+ const id = ++run;
81
+ try {
82
+ for (let i = from; ; i = (i + 1) % scenes.length) await play(i, id);
83
+ } catch {
84
+ // Stopped for another scene.
85
+ }
86
+ }
87
+
88
+ tabs.forEach((tab, i) => tab.addEventListener("click", () => (still ? show(i) : loop(i))));
89
+ if (!still) loop(0);
90
+ })();
package/web/icon-180.png CHANGED
Binary file
package/web/icon.png CHANGED
Binary file
package/web/icon.svg CHANGED
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="#1F48B8"/><rect x="20" y="20" width="24" height="24" rx="2" fill="#FFFFFF"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="#22574C"/><rect x="19.5" y="16" width="7" height="32" rx="1.5" fill="#FFFFFF"/><path fill="#FFFFFF" fill-rule="evenodd" d="M44.5 25.5A10 10 0 1 1 24.5 25.5A10 10 0 1 1 44.5 25.5ZM38.5 25.5A4 4 0 1 0 30.5 25.5A4 4 0 1 0 38.5 25.5Z"/></svg>
package/web/missing.html CHANGED
@@ -5,13 +5,13 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <meta name="robots" content="noindex, nofollow">
7
7
  <title>Link not found</title>
8
- <link rel="icon" href="/static/icon.svg?v=3" type="image/svg+xml">
8
+ <link rel="icon" href="/static/icon.svg?v=5" type="image/svg+xml">
9
9
  <link rel="stylesheet" href="/static/app.css">
10
10
  </head>
11
11
  <body>
12
12
  <div class="lost">
13
13
  <div>
14
- <span class="mark" aria-hidden="true"><svg viewBox="0 0 64 64"><rect class="field" width="64" height="64" rx="14"/><rect class="square" x="20" y="20" width="24" height="24" rx="2"/></svg></span>
14
+ <span class="mark" aria-hidden="true"><svg viewBox="0 0 64 64"><rect class="tile" width="64" height="64" rx="14"/><rect class="glyph" x="19.5" y="16" width="7" height="32" rx="1.5"/><path class="glyph" fill-rule="evenodd" d="M44.5 25.5A10 10 0 1 1 24.5 25.5A10 10 0 1 1 44.5 25.5ZM38.5 25.5A4 4 0 1 0 30.5 25.5A4 4 0 1 0 38.5 25.5Z"/></svg></span>
15
15
  <h1>This link doesn't lead anywhere</h1>
16
16
  <p>Check that you have the whole link, or ask whoever sent it for a fresh one.</p>
17
17
  </div>
package/web/panel.html CHANGED
@@ -4,18 +4,18 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <title>Control panel · parley</title>
7
- <link rel="icon" href="/static/icon.svg?v=3" type="image/svg+xml">
7
+ <link rel="icon" href="/static/icon.svg?v=5" type="image/svg+xml">
8
8
  <link rel="stylesheet" href="/static/app.css">
9
9
  </head>
10
10
  <body class="panel">
11
11
  <header class="topbar">
12
- <span class="mark" aria-hidden="true"><svg viewBox="0 0 64 64"><rect class="field" width="64" height="64" rx="14"/><rect class="square" x="20" y="20" width="24" height="24" rx="2"/></svg></span>
12
+ <span class="mark" aria-hidden="true"><svg viewBox="0 0 64 64"><rect class="tile" width="64" height="64" rx="14"/><rect class="glyph" x="19.5" y="16" width="7" height="32" rx="1.5"/><path class="glyph" fill-rule="evenodd" d="M44.5 25.5A10 10 0 1 1 24.5 25.5A10 10 0 1 1 44.5 25.5ZM38.5 25.5A4 4 0 1 0 30.5 25.5A4 4 0 1 0 38.5 25.5Z"/></svg></span>
13
13
  <nav class="crumbs"><span class="product">parley</span><span class="slash">/</span><span class="here">Control panel</span></nav>
14
14
  <span class="status" id="server"><span class="dot" id="server-dot"></span><span id="server-text">Checking…</span></span>
15
15
  </header>
16
16
 
17
17
  <div class="page">
18
- <p class="notice" id="signed-out" hidden style="margin:18px 0 0">This computer isn't signed in to parley.im, so links only work on this computer. Run <code>parley login</code> in a terminal to share them.</p>
18
+ <p class="notice" id="signed-out" hidden style="margin:18px 0 0">This computer isn't signed in to parley, so links only work on this computer. Run <code>parley login</code> in a terminal to share them.</p>
19
19
  <div class="stats" id="stats"></div>
20
20
 
21
21
  <div class="toolbar">
package/web/panel.js CHANGED
@@ -207,7 +207,7 @@
207
207
  await navigator.clipboard.writeText(s.link);
208
208
  copy.textContent = "Copied";
209
209
  };
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" }));
210
+ $("made").replaceChildren(el("strong", { textContent: `Session for ${s.guest} is ready.` }), el("div", { className: "linkbox" }, link, copy), el("p", { className: "cell-muted", style: "margin:0", textContent: "Send it only to someone you trust: they can ask about anything in this project folder." }), el("a", { className: "cell-muted", href: `/o/${s.id}`, textContent: "Open it" }));
211
211
  $("made").hidden = false;
212
212
  $("f-guest").value = $("f-brief").value = $("f-greeting").value = "";
213
213
  refresh();
Binary file