pi-sdk-web 0.1.4 → 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.4",
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,7 +198,7 @@ body {
198
198
  #scroll-view {
199
199
  flex: 1;
200
200
  overflow-y: auto;
201
- overflow-x: auto;
201
+ overflow-x: hidden;
202
202
  padding: 8px;
203
203
  min-width: 0;
204
204
  }
@@ -343,6 +343,7 @@ body {
343
343
  .body-text, .message.user .body {
344
344
  line-height: 1.6;
345
345
  overflow-wrap: anywhere;
346
+ word-break: break-word;
346
347
  min-width: 0;
347
348
  }
348
349
 
@@ -464,9 +465,7 @@ body {
464
465
 
465
466
  .body-text table,
466
467
  .message.user .body table {
467
- display: block;
468
- overflow-x: auto;
469
- max-width: 100%;
468
+ width: 100%;
470
469
  border-collapse: collapse;
471
470
  margin: 0.6em 0;
472
471
  font-size: 0.95em;