pi-sdk-web 0.1.3 → 0.1.5

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/dist/server.js CHANGED
@@ -167,7 +167,11 @@ export class PiWebServer {
167
167
  try {
168
168
  const data = await readFile(filePath);
169
169
  const ext = filePath.slice(filePath.lastIndexOf(".")).toLowerCase();
170
- res.writeHead(200, { "Content-Type": MIME[ext] ?? "application/octet-stream" });
170
+ res.writeHead(200, {
171
+ "Content-Type": MIME[ext] ?? "application/octet-stream",
172
+ // Always revalidate: frontend updates must be visible without manual cache clears
173
+ "Cache-Control": "no-cache",
174
+ });
171
175
  res.end(data);
172
176
  }
173
177
  catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-sdk-web",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Browser Web access for Pi (AI coding agent) via the Pi SDK - standalone module, zero modification to Pi itself",
5
5
  "type": "module",
6
6
  "bin": {
package/static/style.css CHANGED
@@ -198,6 +198,7 @@ body {
198
198
  #scroll-view {
199
199
  flex: 1;
200
200
  overflow-y: auto;
201
+ overflow-x: hidden;
201
202
  padding: 8px;
202
203
  min-width: 0;
203
204
  }
@@ -341,6 +342,9 @@ body {
341
342
  /* Markdown content inside messages */
342
343
  .body-text, .message.user .body {
343
344
  line-height: 1.6;
345
+ overflow-wrap: anywhere;
346
+ word-break: break-word;
347
+ min-width: 0;
344
348
  }
345
349
 
346
350
  .body-text > *:first-child,
@@ -461,6 +465,7 @@ body {
461
465
 
462
466
  .body-text table,
463
467
  .message.user .body table {
468
+ width: 100%;
464
469
  border-collapse: collapse;
465
470
  margin: 0.6em 0;
466
471
  font-size: 0.95em;