@parley-im/parley 0.2.4 → 0.2.6

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/dist/server.js CHANGED
@@ -21,6 +21,7 @@ const STATIC_TYPES = {
21
21
  ".css": "text/css; charset=utf-8",
22
22
  ".svg": "image/svg+xml",
23
23
  ".html": "text/html; charset=utf-8",
24
+ ".woff2": "font/woff2",
24
25
  };
25
26
  // Two local servers: your control panel (and your view of each session), and
26
27
  // local guest links for development or when you're not signed in. Shared
@@ -276,7 +277,7 @@ function sendFile(res, status, name) {
276
277
  send(res, status, STATIC_TYPES[extname(name)], readFileSync(join(WEB, name)));
277
278
  }
278
279
  function sendStatic(res, name) {
279
- if (!/^[a-z0-9-]+\.(js|css|svg|html)$/.test(name))
280
+ if (!/^(fonts\/)?[a-z0-9-]+\.(js|css|svg|html|woff2)$/.test(name))
280
281
  return notFound(res);
281
282
  const file = join(WEB, name);
282
283
  if (!existsSync(file))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parley-im/parley",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
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,6 +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
45
  "@types/jsdom": "^30.0.0",
44
46
  "@types/node": "^26.6.4",
45
47
  "jsdom": "^29.1.1",
package/web/app.css CHANGED
@@ -1,46 +1,64 @@
1
- /* parley: one stylesheet for the guest chat, your session view and your
2
- control panel. Neutral surfaces, one accent, and a monospace face only where
3
- it means something (code, paths, the agent's activity, numbers). */
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; }
4
13
 
5
14
  :root {
6
- --bg: #fafaf9;
15
+ --bg: #f5f3ee; /* sail */
7
16
  --panel: #ffffff;
8
- --subtle: #f3f3f1;
9
- --hover: #ececea;
10
- --line: #e4e4e1;
11
- --line-strong: #d2d2ce;
12
- --text: #19191a;
13
- --muted: #66666c;
14
- --faint: #9c9ca3;
15
- --accent: #5b4cdb;
16
- --accent-soft: #eeecfd;
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;
17
27
  --accent-ink: #ffffff;
18
- --ok: #1f9d55;
28
+ --guest: #e6ecfa; /* your own messages */
29
+ --guest-ink: #23314f;
30
+ --brass: #d99a2b; /* small touches only */
31
+ --ok: #1e8a52;
19
32
  --warn: #b7791f;
20
33
  --danger: #c4302b;
21
- --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.12);
22
- --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
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);
23
37
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
24
38
  color-scheme: light;
25
39
  }
26
40
  @media (prefers-color-scheme: dark) {
27
41
  :root:not([data-theme="light"]) {
28
- --bg: #0c0c0d;
29
- --panel: #131315;
30
- --subtle: #19191c;
31
- --hover: #212125;
32
- --line: #26262b;
33
- --line-strong: #36363c;
34
- --text: #ececef;
35
- --muted: #9b9ba4;
36
- --faint: #66666f;
37
- --accent: #9d92ff;
38
- --accent-soft: #221f3d;
39
- --accent-ink: #0c0c0d;
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;
54
+ --accent-ink: #ffffff;
55
+ --guest: #1e2b4b;
56
+ --guest-ink: #dce5fa;
57
+ --brass: #e3ab45;
40
58
  --ok: #3ccf7a;
41
59
  --warn: #e3a948;
42
60
  --danger: #ff6b63;
43
- --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
61
+ --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
44
62
  color-scheme: dark;
45
63
  }
46
64
  }
@@ -60,11 +78,19 @@ body {
60
78
  .mono { font-family: var(--mono); font-size: 0.86em; }
61
79
  a { color: inherit; }
62
80
  button, input, textarea, select { font: inherit; color: inherit; }
81
+ h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }
63
82
 
64
83
  /* ---------- shared pieces ---------- */
65
84
 
66
- .mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); flex: none; }
67
- .mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
85
+ /* The mark: the code flag for P, a blue field with a white square. */
86
+ .mark { display: inline-block; width: 24px; height: 24px; flex: none; }
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; }
68
94
 
69
95
  .topbar {
70
96
  display: flex; align-items: center; gap: 10px; min-height: 52px;
@@ -72,9 +98,9 @@ button, input, textarea, select { font: inherit; color: inherit; }
72
98
  border-bottom: 1px solid var(--line); background: var(--bg);
73
99
  }
74
100
  .crumbs { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1; }
75
- .crumbs .product { color: var(--muted); font-weight: 500; }
101
+ .crumbs .product { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; font-size: 17px; color: var(--text); }
76
102
  .crumbs .slash { color: var(--faint); }
77
- .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: inherit; text-decoration: none !important; }
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; }
78
104
  .brand:hover .mark { filter: brightness(1.1); }
79
105
  .lost .own { margin-top: 18px; font-size: 13px; color: var(--faint); }
80
106
  .lost .own a { color: var(--accent); }
@@ -89,6 +115,15 @@ button, input, textarea, select { font: inherit; color: inherit; }
89
115
  .dot.warn { background: var(--warn); }
90
116
  .dot.off { background: var(--danger); }
91
117
  @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); } }
92
127
 
93
128
  .btn {
94
129
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
@@ -98,7 +133,7 @@ button, input, textarea, select { font: inherit; color: inherit; }
98
133
  }
99
134
  .btn:hover { background: var(--subtle); }
100
135
  .btn:disabled { opacity: 0.5; cursor: default; }
101
- .btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
136
+ .btn.primary { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent-fill); }
102
137
  .btn.primary:hover { opacity: 0.88; }
103
138
  .btn.danger { color: var(--danger); }
104
139
  .btn.confirm { background: var(--danger); color: #fff; border-color: var(--danger); }
@@ -167,17 +202,21 @@ body:has(> .app) { overflow: hidden; overscroll-behavior: none; }
167
202
  position: absolute; left: 0; top: 0; width: 14px; text-align: center;
168
203
  font-family: var(--mono); font-size: 14px; line-height: 1.55;
169
204
  }
170
- .msg.agent::before { content: "●"; color: var(--accent); font-size: 10px; line-height: 23px; }
171
- .msg.guest::before { content: "›"; color: var(--muted); font-weight: 600; top: 10px; }
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; }
206
+ /* The interviewer's words are what people read: set for reading. */
207
+ .msg.agent .body { font-size: 16.5px; line-height: 1.6; }
208
+ /* Your own words are compact and plainly yours, on the right. */
209
+ .msg.guest { padding-left: 0; display: flex; flex-direction: column; align-items: flex-end; }
210
+ .msg.guest::before { content: none; }
172
211
  .msg.error::before { content: "!"; color: var(--danger); font-weight: 700; }
173
212
  .meta { font-size: 12px; color: var(--faint); margin-bottom: 2px; }
174
213
  .meta .who { color: var(--muted); font-weight: 600; }
175
- .msg.guest .bubble { background: var(--subtle); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
214
+ .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; }
176
215
  .msg.guest .meta { display: none; }
177
216
  /* Guests get just the conversation: no names or times on every message. */
178
217
  .guest-view .msg .meta, .guest-view .msg .stamp { display: none; }
179
218
  .guest-view .msg { margin-bottom: 16px; }
180
- .guest-view .msg.guest::before { top: 9px; }
219
+
181
220
  .msg.guest .stamp { font-size: 12px; color: var(--faint); margin-top: 4px; }
182
221
  .msg.error .body { color: var(--danger); font-size: 14px; }
183
222
  .msg.error .detail { margin-top: 6px; font-size: 12px; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
@@ -218,23 +257,26 @@ body:has(> .app) { overflow: hidden; overscroll-behavior: none; }
218
257
  .body th { background: var(--subtle); font-weight: 600; white-space: nowrap; }
219
258
  .body tr:last-child td { border-bottom: 0; }
220
259
 
221
- .thinking { display: inline-flex; gap: 4px; padding: 8px 0 4px; }
222
- .thinking span { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite ease-in-out both; }
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; }
223
263
  .thinking span:nth-child(2) { animation-delay: 0.15s; }
224
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; } }
225
267
  @keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
226
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; }
227
269
 
228
270
  .dock { border-top: 1px solid var(--line); background: var(--bg); }
229
271
  .dock .chat-inner { padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
230
- .composer { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
272
+ .composer { border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
231
273
  .composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
232
274
  /* The sender's computer (or this page's connection) is offline: nothing can
233
275
  be sent until it's back, and it looks that way. */
234
276
  .app.offline .composer, .app.offline .composer:focus-within { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
235
277
  .app.offline .prompt { color: var(--danger); }
236
278
  .composer .row { display: flex; align-items: flex-end; gap: 2px; padding: 4px 4px 4px 12px; }
237
- .prompt { font-family: var(--mono); color: var(--accent); font-weight: 600; padding: 9px 4px 9px 0; line-height: 1.55; }
279
+ .prompt { display: none; }
238
280
  textarea {
239
281
  flex: 1; resize: none; border: 0; outline: 0; background: transparent;
240
282
  padding: 8px 4px; min-height: 40px; line-height: 1.55; font-size: 16px;
@@ -256,8 +298,8 @@ textarea::placeholder { color: var(--faint); }
256
298
  }
257
299
  .icon-btn:hover { background: var(--subtle); color: var(--text); }
258
300
  .icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
259
- .send { background: var(--accent); color: var(--accent-ink); }
260
- .send:hover { background: var(--accent); color: var(--accent-ink); opacity: 0.9; }
301
+ .send { background: var(--accent-fill); color: var(--accent-ink); border-radius: 11px; }
302
+ .send:hover { background: var(--accent-fill); color: var(--accent-ink); opacity: 0.9; }
261
303
  .send:disabled { background: var(--subtle); color: var(--faint); cursor: default; opacity: 1; }
262
304
  .attachments { display: flex; gap: 8px; padding: 10px 10px 0; flex-wrap: wrap; }
263
305
  .thumb { position: relative; }
@@ -336,7 +378,7 @@ body.panel { overflow: auto; }
336
378
  .trow.ended { color: var(--muted); }
337
379
  .who-cell .name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
338
380
  .who-cell .where { font-size: 12px; color: var(--muted); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
339
- .badge { display: inline-block; padding: 0 7px; border-radius: 99px; font-size: 11px; font-weight: 600; line-height: 18px; background: var(--accent); color: var(--accent-ink); }
381
+ .badge { display: inline-block; padding: 0 7px; border-radius: 99px; font-size: 11px; font-weight: 600; line-height: 18px; background: var(--accent-fill); color: var(--accent-ink); }
340
382
  .badge.soft { background: var(--subtle); color: var(--muted); border: 1px solid var(--line); }
341
383
  .cell-muted { font-size: 13px; color: var(--muted); }
342
384
  .num { font-family: var(--mono); font-size: 13px; }
@@ -420,7 +462,9 @@ body.panel { overflow: auto; }
420
462
  .menu-who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
421
463
  @keyframes drop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
422
464
 
423
- .live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
465
+ /* A session's status on the dashboard (not the chat's reply in progress,
466
+ which is li.live). */
467
+ span.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
424
468
  .docs { padding-bottom: 40px; }
425
469
  .docs h2 { font-size: 17px; letter-spacing: -0.01em; margin: 36px 0 10px; }
426
470
  .docs p, .docs li { max-width: 66ch; }
@@ -433,26 +477,47 @@ body.panel { overflow: auto; }
433
477
  /* Long details shorten instead of pushing the buttons off a phone screen. */
434
478
  .trow.site-row .who-cell { min-width: 0; }
435
479
 
436
- /* parley.im's front page: what it is, in plain words. */
437
- .landing { max-width: 980px; }
438
- .intro { padding: 9vh 0 8px; max-width: 640px; }
439
- .intro h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; }
440
- .intro .lede { font-size: 18px; line-height: 1.5; color: var(--muted); margin: 0; }
441
- .intro .cta { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 10px; }
442
- .intro .fine { font-size: 13px; color: var(--faint); margin: 0; }
443
- .how { list-style: none; counter-reset: step; padding: 0; margin: 56px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
444
- .how li { counter-increment: step; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--panel); }
445
- .how li::before {
446
- content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 12px;
447
- border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px;
448
- }
449
- .how h2 { font-size: 16px; margin: 0 0 6px; letter-spacing: -0.01em; }
450
- .how p { margin: 0; font-size: 14px; color: var(--muted); }
480
+ /* parley's front page: what it is, in plain words, beside a parley playing
481
+ out (home.js). */
482
+ .landing { max-width: 1080px; }
483
+ .front { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 8vh 0 24px; }
484
+ .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; }
485
+ .front h1 { font-size: clamp(36px, 6.4vw, 56px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; }
486
+ .front .lede { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 34em; }
487
+ .front .cta { display: flex; gap: 8px; flex-wrap: wrap; }
488
+ .front .cta .btn { height: 46px; padding: 0 20px; border-radius: 11px; font-size: 16px; font-weight: 700; }
489
+ .front .cta .btn.ghost { color: var(--text); font-weight: 500; }
490
+ .front .fine { font-size: 14px; color: var(--muted); margin: 0; }
491
+ .demo { flex: 1 1 380px; min-width: 0; margin: 0; display: grid; gap: 10px; }
492
+ .demo-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
493
+ .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; }
494
+ .demo-tabs button:hover { color: var(--text); }
495
+ .demo-tabs button.on { background: var(--panel); border-color: var(--line); color: var(--text); }
496
+ .demo-chat { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
497
+ .demo-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
498
+ .demo-top .mark { width: 20px; height: 20px; }
499
+ .demo-top .product { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; }
500
+ .demo-top .slash { color: var(--faint); }
501
+ .demo-top .here { font-weight: 600; flex: 1; }
502
+ .demo-msgs { list-style: none; margin: 0; padding: 18px 18px 6px; min-height: 340px; display: flex; flex-direction: column; gap: 14px; }
503
+ .demo .msg { margin: 0; animation: rise 0.25s ease-out; }
504
+ .demo .msg.agent .body { font-size: 15.5px; }
505
+ .demo .msg.guest .bubble { font-size: 14.5px; max-width: 86%; }
506
+ .demo .steps { margin-top: 2px; }
507
+ .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; }
508
+ .demo-say .send-dot { width: 32px; height: 32px; border-radius: 9px; background: var(--subtle); }
509
+ @keyframes rise { from { opacity: 0; transform: translateY(4px); } }
510
+ @media (prefers-reduced-motion: reduce) { .demo .msg { animation: none; } }
511
+ @media (max-width: 560px) { .demo-msgs { min-height: 400px; padding: 14px 12px 6px; } }
512
+ .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)); }
513
+ .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; }
514
+ .how li::before { content: counter(step); font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 15px; }
515
+ .how h2 { font-size: 20px; margin: 0; }
516
+ .how p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
451
517
  .how q { color: var(--text); }
452
- .promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 44px 0 0; padding: 28px 0 40px; border-top: 1px solid var(--line); }
453
- .promises h3 { font-size: 14px; margin: 0 0 4px; }
454
- .promises p { font-size: 14px; color: var(--muted); margin: 0; }
518
+ .promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin: 40px 0 0; padding: 32px 0 48px; border-top: 1px solid var(--line-strong); }
519
+ .promises h3 { font-family: var(--sans); font-size: 16px; letter-spacing: 0; margin: 0 0 6px; }
520
+ .promises p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
455
521
  @media (max-width: 720px) {
456
- .how, .promises { grid-template-columns: 1fr; }
457
- .intro { padding-top: 6vh; }
522
+ .front { padding-top: 5vh; gap: 32px; }
458
523
  }
package/web/chat.html CHANGED
@@ -11,7 +11,7 @@
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=2" type="image/svg+xml">
14
+ <link rel="icon" href="/static/icon.svg?v=3" 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="4 4 24 24"><g fill="currentColor" stroke="none"><circle cx="8" cy="10" r="2.2"/><rect x="12" y="8" width="12" height="4" rx="2"/><rect x="6" y="14" width="20" height="4" rx="2" opacity=".7"/><rect x="6" y="20" width="13" height="4" rx="2" opacity=".7"/></g></svg></span><span class="product">parley</span>
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>
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
@@ -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="4 4 24 24"><g fill="currentColor" stroke="none"><circle cx="8" cy="10" r="2.2"/><rect x="12" y="8" width="12" height="4" rx="2"/><rect x="6" y="14" width="20" height="4" rx="2" opacity=".7"/><rect x="6" y="20" width="13" height="4" rx="2" opacity=".7"/></g></svg>`;
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>`;
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=2" type="image/svg+xml">
8
+ <link rel="icon" href="/static/icon.svg?v=3" 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="4 4 24 24"><g fill="currentColor" stroke="none"><circle cx="8" cy="10" r="2.2"/><rect x="12" y="8" width="12" height="4" rx="2"/><rect x="6" y="14" width="20" height="4" rx="2" opacity=".7"/><rect x="6" y="20" width="13" height="4" rx="2" opacity=".7"/></g></svg></span>
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>
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>
@@ -0,0 +1,93 @@
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)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2022 The Bricolage Grotesque Project Authors (https://github.com/ateliertriay/bricolage)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
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"><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 32 32"><rect width="32" height="32" rx="8" fill="#5b4cdb"/><circle cx="8" cy="10" r="2.2" fill="#fff"/><rect x="12" y="8" width="12" height="4" rx="2" fill="#fff"/><rect x="6" y="14" width="20" height="4" rx="2" fill="#fff" fill-opacity=".7"/><rect x="6" y="20" width="13" height="4" rx="2" fill="#fff" fill-opacity=".7"/></svg>
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>
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=2" type="image/svg+xml">
8
+ <link rel="icon" href="/static/icon.svg?v=3" 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="4 4 24 24"><g fill="currentColor" stroke="none"><circle cx="8" cy="10" r="2.2"/><rect x="12" y="8" width="12" height="4" rx="2"/><rect x="6" y="14" width="20" height="4" rx="2" opacity=".7"/><rect x="6" y="20" width="13" height="4" rx="2" opacity=".7"/></g></svg></span>
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>
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=2" type="image/svg+xml">
7
+ <link rel="icon" href="/static/icon.svg?v=3" 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="4 4 24 24"><g fill="currentColor" stroke="none"><circle cx="8" cy="10" r="2.2"/><rect x="12" y="8" width="12" height="4" rx="2"/><rect x="6" y="14" width="20" height="4" rx="2" opacity=".7"/><rect x="6" y="20" width="13" height="4" rx="2" opacity=".7"/></g></svg></span>
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>
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();