pi-outpost 0.62.1 → 0.62.2

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/CHANGELOG.md CHANGED
@@ -7,6 +7,20 @@ version you had and the one you run now, without going online.
7
7
  Releases before 0.41.0 are described on
8
8
  [GitHub Releases](https://github.com/laurentftech/pi-outpost/releases).
9
9
 
10
+ ## [0.62.2] - 2026-11-11
11
+
12
+ ### Fixed
13
+
14
+ - **Decode Outlook rich-text email without duplicating Unicode fallback characters.**
15
+ ([#480](https://github.com/laurentftech/pi-outpost/pull/480))
16
+ - **Keep email text when multipart boundaries are missing and preserve loosely written
17
+ HTML tables.** ([#481](https://github.com/laurentftech/pi-outpost/pull/481),
18
+ [#483](https://github.com/laurentftech/pi-outpost/pull/483))
19
+ - **Stop the agent turn even when queued messages cannot be kept pending.**
20
+ ([#484](https://github.com/laurentftech/pi-outpost/pull/484))
21
+ - **Close Windows pseudo-terminals when their shell exits.**
22
+ ([#481](https://github.com/laurentftech/pi-outpost/pull/481))
23
+
10
24
  ## [0.62.1] - 2026-11-10
11
25
 
12
26
  ### Fixed
@@ -14256,7 +14256,7 @@ function rulePatterns(profile, rules, sources) {
14256
14256
  }
14257
14257
 
14258
14258
  // shared/bin/validate-structured-exchange.mjs
14259
- var VERSION = `validate-structured-exchange ${false ? "development" : "0.62.1"}`;
14259
+ var VERSION = `validate-structured-exchange ${false ? "development" : "0.62.2"}`;
14260
14260
  var USAGE = `validate-structured-exchange [file]
14261
14261
  validate-structured-exchange --profile <profile.json> [file]
14262
14262
  validate-structured-exchange --check-profile <profile.json>
@@ -110558,24 +110558,46 @@ function reduceHtmlToMarkdown(html2, options2 = {}) {
110558
110558
  const flushTable = () => {
110559
110559
  const frame = tables.pop();
110560
110560
  if (frame === void 0) return;
110561
+ closeRow(frame);
110561
110562
  const rows = frame.rows.filter((row) => row.some((cell) => cell.trim() !== ""));
110562
110563
  const columns = rows.length === 0 ? 0 : Math.max(...rows.map((row) => row.length));
110563
110564
  const isData = !frame.nested && rows.length >= 2 && columns >= 2;
110564
110565
  if (isData) {
110565
- const rendered = renderMarkdownTable(rows, { header: true });
110566
- if (tables.length > 0 && tables[tables.length - 1].cell !== null) tables[tables.length - 1].cell?.push(rendered);
110567
- else out.push(quoteDepth > 0 ? rendered.replace(/^/gm, "> ".repeat(quoteDepth)) : rendered);
110566
+ const rendered = renderMarkdownTable(
110567
+ rows.map((row) => row.map((cell) => cell.replace(/\s+/g, " ").trim())),
110568
+ { header: true }
110569
+ );
110570
+ pushBlock(rendered);
110568
110571
  return;
110569
110572
  }
110570
110573
  for (const row of rows) {
110571
110574
  for (const cell of row) {
110572
110575
  const text7 = cell.trim();
110573
- if (text7 === "") continue;
110574
- if (tables.length > 0 && tables[tables.length - 1].cell !== null) tables[tables.length - 1].cell?.push(text7);
110575
- else out.push(quoteDepth > 0 ? text7.replace(/^/gm, "> ".repeat(quoteDepth)) : text7);
110576
+ if (text7 !== "") pushBlock(text7);
110576
110577
  }
110577
110578
  }
110578
110579
  };
110580
+ const pushBlock = (text7) => {
110581
+ const cell = tables.length > 0 ? tables[tables.length - 1].cell : null;
110582
+ if (cell !== null) cell.push(`
110583
+
110584
+ ${text7}
110585
+
110586
+ `);
110587
+ else out.push(quoteDepth > 0 ? text7.replace(/^/gm, "> ".repeat(quoteDepth)) : text7);
110588
+ };
110589
+ const closeCell = (frame) => {
110590
+ if (frame.cell === null) return;
110591
+ const text7 = frame.cell.join("").replace(/[ \t]+/g, " ").replace(/ ?\n ?/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
110592
+ frame.cell = null;
110593
+ (frame.row ??= []).push(text7);
110594
+ };
110595
+ const closeRow = (frame) => {
110596
+ closeCell(frame);
110597
+ if (frame.row === null) return;
110598
+ frame.rows.push(frame.row);
110599
+ frame.row = null;
110600
+ };
110579
110601
  scanHtml(html2, (event) => {
110580
110602
  if (++events % 2e3 === 0) options2.deadline?.();
110581
110603
  if (event.kind === "text") {
@@ -110614,12 +110636,18 @@ function reduceHtmlToMarkdown(html2, options2 = {}) {
110614
110636
  }
110615
110637
  if (name2 === "tr") {
110616
110638
  const frame = tables[tables.length - 1];
110617
- if (frame !== void 0) frame.row = [];
110639
+ if (frame !== void 0) {
110640
+ closeRow(frame);
110641
+ frame.row = [];
110642
+ }
110618
110643
  return;
110619
110644
  }
110620
110645
  if (name2 === "td" || name2 === "th") {
110621
110646
  const frame = tables[tables.length - 1];
110622
- if (frame !== void 0) frame.cell = [];
110647
+ if (frame !== void 0) {
110648
+ closeCell(frame);
110649
+ frame.cell = [];
110650
+ }
110623
110651
  return;
110624
110652
  }
110625
110653
  if (name2 === "li") {
@@ -110683,20 +110711,12 @@ function reduceHtmlToMarkdown(html2, options2 = {}) {
110683
110711
  }
110684
110712
  if (name === "tr") {
110685
110713
  const frame = tables[tables.length - 1];
110686
- if (frame?.row != null) {
110687
- frame.rows.push(frame.row);
110688
- frame.row = null;
110689
- }
110714
+ if (frame !== void 0) closeRow(frame);
110690
110715
  return;
110691
110716
  }
110692
110717
  if (name === "td" || name === "th") {
110693
110718
  const frame = tables[tables.length - 1];
110694
- if (frame?.cell != null) {
110695
- const text7 = frame.cell.join("").replace(/\s+/g, " ").trim();
110696
- frame.cell = null;
110697
- if (frame.row === null) frame.row = [];
110698
- frame.row.push(text7);
110699
- }
110719
+ if (frame !== void 0) closeCell(frame);
110700
110720
  return;
110701
110721
  }
110702
110722
  if (name === "ul" || name === "ol") {
@@ -110994,6 +111014,19 @@ function decompressRtf(stream) {
110994
111014
  }
110995
111015
  return out.subarray(0, length2);
110996
111016
  }
111017
+ function skipUnicodeFallback(rtf, at2, count) {
111018
+ for (let left = count; left > 0 && at2 < rtf.length; left--) {
111019
+ const char = rtf[at2];
111020
+ if (char === "{" || char === "}") break;
111021
+ if (char !== "\\") {
111022
+ at2++;
111023
+ continue;
111024
+ }
111025
+ const unit = /^\\(?:'[0-9a-fA-F]{2}|[a-zA-Z]+-?\d*[ ]?|.)/s.exec(rtf.slice(at2, at2 + 40));
111026
+ at2 += unit === null ? 1 : unit[0].length;
111027
+ }
111028
+ return at2;
111029
+ }
110997
111030
  function htmlFromEncapsulatedRtf(rtf) {
110998
111031
  if (!/\\from(html|text)|\\\*\\htmltag/.test(rtf)) return null;
110999
111032
  let out = "";
@@ -111001,10 +111034,13 @@ function htmlFromEncapsulatedRtf(rtf) {
111001
111034
  let suppressed = 0;
111002
111035
  let skipUntilDepth = null;
111003
111036
  let depth = 0;
111037
+ let fallback = 1;
111038
+ const fallbacks = [];
111004
111039
  while (at2 < rtf.length) {
111005
111040
  const char = rtf[at2];
111006
111041
  if (char === "{") {
111007
111042
  depth++;
111043
+ fallbacks.push(fallback);
111008
111044
  at2++;
111009
111045
  const ahead = rtf.slice(at2, at2 + 12);
111010
111046
  if (skipUntilDepth === null && /^\\\*\\(mhtmltag|htmlbase)/.test(ahead)) skipUntilDepth = depth;
@@ -111013,6 +111049,7 @@ function htmlFromEncapsulatedRtf(rtf) {
111013
111049
  if (char === "}") {
111014
111050
  if (skipUntilDepth !== null && depth <= skipUntilDepth) skipUntilDepth = null;
111015
111051
  depth--;
111052
+ fallback = fallbacks.pop() ?? 1;
111016
111053
  at2++;
111017
111054
  continue;
111018
111055
  }
@@ -111049,11 +111086,16 @@ function htmlFromEncapsulatedRtf(rtf) {
111049
111086
  if (suppressed === 0 && skipUntilDepth === null) out += " ";
111050
111087
  continue;
111051
111088
  }
111089
+ if (word === "uc" && parameter !== void 0) {
111090
+ fallback = Math.max(0, Number(parameter));
111091
+ continue;
111092
+ }
111052
111093
  if (word === "u" && parameter !== void 0) {
111053
111094
  if (suppressed === 0 && skipUntilDepth === null) {
111054
111095
  const code3 = Number(parameter);
111055
111096
  out += String.fromCharCode(code3 < 0 ? code3 + 65536 : code3);
111056
111097
  }
111098
+ at2 = skipUnicodeFallback(rtf, at2, fallback);
111057
111099
  continue;
111058
111100
  }
111059
111101
  continue;
@@ -111073,10 +111115,13 @@ function textFromRtf(rtf) {
111073
111115
  let at2 = 0;
111074
111116
  let skipUntilDepth = null;
111075
111117
  let depth = 0;
111118
+ let fallback = 1;
111119
+ const fallbacks = [];
111076
111120
  while (at2 < rtf.length) {
111077
111121
  const char = rtf[at2];
111078
111122
  if (char === "{") {
111079
111123
  depth++;
111124
+ fallbacks.push(fallback);
111080
111125
  at2++;
111081
111126
  if (skipUntilDepth === null && /^\\(\*|fonttbl|colortbl|stylesheet|info|pict)/.test(rtf.slice(at2, at2 + 12))) {
111082
111127
  skipUntilDepth = depth;
@@ -111086,6 +111131,7 @@ function textFromRtf(rtf) {
111086
111131
  if (char === "}") {
111087
111132
  if (skipUntilDepth !== null && depth <= skipUntilDepth) skipUntilDepth = null;
111088
111133
  depth--;
111134
+ fallback = fallbacks.pop() ?? 1;
111089
111135
  at2++;
111090
111136
  continue;
111091
111137
  }
@@ -111108,13 +111154,21 @@ function textFromRtf(rtf) {
111108
111154
  continue;
111109
111155
  }
111110
111156
  at2 += control[0].length;
111157
+ if (control[1] === "uc" && control[2] !== void 0) {
111158
+ fallback = Math.max(0, Number(control[2]));
111159
+ continue;
111160
+ }
111161
+ if (control[1] === "u" && control[2] !== void 0) {
111162
+ if (writable) {
111163
+ const code3 = Number(control[2]);
111164
+ out += String.fromCharCode(code3 < 0 ? code3 + 65536 : code3);
111165
+ }
111166
+ at2 = skipUnicodeFallback(rtf, at2, fallback);
111167
+ continue;
111168
+ }
111111
111169
  if (!writable) continue;
111112
111170
  if (control[1] === "par" || control[1] === "line") out += "\n";
111113
111171
  else if (control[1] === "tab") out += " ";
111114
- else if (control[1] === "u" && control[2] !== void 0) {
111115
- const code3 = Number(control[2]);
111116
- out += String.fromCharCode(code3 < 0 ? code3 + 65536 : code3);
111117
- }
111118
111172
  continue;
111119
111173
  }
111120
111174
  if (char === "\r" || char === "\n") {
@@ -111676,18 +111730,26 @@ function parseEntity(entity, state2, depth) {
111676
111730
  const boundary = contentType.params.boundary;
111677
111731
  if (boundary === void 0 || boundary === "") {
111678
111732
  state2.notes.push(`a ${mediaType} part declares no boundary; it was read as a single part`);
111679
- return node2;
111733
+ return asSinglePart(node2);
111680
111734
  }
111681
111735
  if (depth >= MAX_DEPTH2) {
111682
111736
  state2.notes.push(`parts nested deeper than ${MAX_DEPTH2} were not read`);
111683
111737
  return node2;
111684
111738
  }
111685
- for (const piece of splitMultipart(body, boundary, state2)) {
111739
+ const pieces = splitMultipart(body, boundary, state2);
111740
+ if (pieces === void 0) {
111741
+ state2.notes.push("a multipart part's boundary was never found; it was read as a single part");
111742
+ return asSinglePart(node2);
111743
+ }
111744
+ for (const piece of pieces) {
111686
111745
  node2.children.push(parseEntity(piece, state2, depth + 1));
111687
111746
  }
111688
111747
  }
111689
111748
  return node2;
111690
111749
  }
111750
+ function asSinglePart(node2) {
111751
+ return { ...node2, mediaType: "text/plain" };
111752
+ }
111691
111753
  function splitMultipart(body, boundary, state2) {
111692
111754
  const marker = Buffer.from(`--${boundary}`, "latin1");
111693
111755
  const starts = [];
@@ -111699,10 +111761,7 @@ function splitMultipart(body, boundary, state2) {
111699
111761
  if (found === 0 || body[found - 1] === 10) starts.push(found);
111700
111762
  at2 = found + marker.length;
111701
111763
  }
111702
- if (starts.length === 0) {
111703
- state2.notes.push("a multipart part's boundary was never found; it was read as a single part");
111704
- return [];
111705
- }
111764
+ if (starts.length === 0) return void 0;
111706
111765
  const parts = [];
111707
111766
  for (let index4 = 0; index4 < starts.length; index4++) {
111708
111767
  const start = starts[index4];
@@ -131509,24 +131509,46 @@ function reduceHtmlToMarkdown(html2, options2 = {}) {
131509
131509
  const flushTable = () => {
131510
131510
  const frame = tables.pop();
131511
131511
  if (frame === void 0) return;
131512
+ closeRow(frame);
131512
131513
  const rows = frame.rows.filter((row) => row.some((cell) => cell.trim() !== ""));
131513
131514
  const columns = rows.length === 0 ? 0 : Math.max(...rows.map((row) => row.length));
131514
131515
  const isData = !frame.nested && rows.length >= 2 && columns >= 2;
131515
131516
  if (isData) {
131516
- const rendered = renderMarkdownTable(rows, { header: true });
131517
- if (tables.length > 0 && tables[tables.length - 1].cell !== null) tables[tables.length - 1].cell?.push(rendered);
131518
- else out.push(quoteDepth > 0 ? rendered.replace(/^/gm, "> ".repeat(quoteDepth)) : rendered);
131517
+ const rendered = renderMarkdownTable(
131518
+ rows.map((row) => row.map((cell) => cell.replace(/\s+/g, " ").trim())),
131519
+ { header: true }
131520
+ );
131521
+ pushBlock(rendered);
131519
131522
  return;
131520
131523
  }
131521
131524
  for (const row of rows) {
131522
131525
  for (const cell of row) {
131523
131526
  const text7 = cell.trim();
131524
- if (text7 === "") continue;
131525
- if (tables.length > 0 && tables[tables.length - 1].cell !== null) tables[tables.length - 1].cell?.push(text7);
131526
- else out.push(quoteDepth > 0 ? text7.replace(/^/gm, "> ".repeat(quoteDepth)) : text7);
131527
+ if (text7 !== "") pushBlock(text7);
131527
131528
  }
131528
131529
  }
131529
131530
  };
131531
+ const pushBlock = (text7) => {
131532
+ const cell = tables.length > 0 ? tables[tables.length - 1].cell : null;
131533
+ if (cell !== null) cell.push(`
131534
+
131535
+ ${text7}
131536
+
131537
+ `);
131538
+ else out.push(quoteDepth > 0 ? text7.replace(/^/gm, "> ".repeat(quoteDepth)) : text7);
131539
+ };
131540
+ const closeCell = (frame) => {
131541
+ if (frame.cell === null) return;
131542
+ const text7 = frame.cell.join("").replace(/[ \t]+/g, " ").replace(/ ?\n ?/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
131543
+ frame.cell = null;
131544
+ (frame.row ??= []).push(text7);
131545
+ };
131546
+ const closeRow = (frame) => {
131547
+ closeCell(frame);
131548
+ if (frame.row === null) return;
131549
+ frame.rows.push(frame.row);
131550
+ frame.row = null;
131551
+ };
131530
131552
  scanHtml(html2, (event) => {
131531
131553
  if (++events % 2e3 === 0) options2.deadline?.();
131532
131554
  if (event.kind === "text") {
@@ -131565,12 +131587,18 @@ function reduceHtmlToMarkdown(html2, options2 = {}) {
131565
131587
  }
131566
131588
  if (name2 === "tr") {
131567
131589
  const frame = tables[tables.length - 1];
131568
- if (frame !== void 0) frame.row = [];
131590
+ if (frame !== void 0) {
131591
+ closeRow(frame);
131592
+ frame.row = [];
131593
+ }
131569
131594
  return;
131570
131595
  }
131571
131596
  if (name2 === "td" || name2 === "th") {
131572
131597
  const frame = tables[tables.length - 1];
131573
- if (frame !== void 0) frame.cell = [];
131598
+ if (frame !== void 0) {
131599
+ closeCell(frame);
131600
+ frame.cell = [];
131601
+ }
131574
131602
  return;
131575
131603
  }
131576
131604
  if (name2 === "li") {
@@ -131634,20 +131662,12 @@ function reduceHtmlToMarkdown(html2, options2 = {}) {
131634
131662
  }
131635
131663
  if (name === "tr") {
131636
131664
  const frame = tables[tables.length - 1];
131637
- if (frame?.row != null) {
131638
- frame.rows.push(frame.row);
131639
- frame.row = null;
131640
- }
131665
+ if (frame !== void 0) closeRow(frame);
131641
131666
  return;
131642
131667
  }
131643
131668
  if (name === "td" || name === "th") {
131644
131669
  const frame = tables[tables.length - 1];
131645
- if (frame?.cell != null) {
131646
- const text7 = frame.cell.join("").replace(/\s+/g, " ").trim();
131647
- frame.cell = null;
131648
- if (frame.row === null) frame.row = [];
131649
- frame.row.push(text7);
131650
- }
131670
+ if (frame !== void 0) closeCell(frame);
131651
131671
  return;
131652
131672
  }
131653
131673
  if (name === "ul" || name === "ol") {
@@ -131945,6 +131965,19 @@ function decompressRtf(stream) {
131945
131965
  }
131946
131966
  return out.subarray(0, length2);
131947
131967
  }
131968
+ function skipUnicodeFallback(rtf, at3, count) {
131969
+ for (let left = count; left > 0 && at3 < rtf.length; left--) {
131970
+ const char = rtf[at3];
131971
+ if (char === "{" || char === "}") break;
131972
+ if (char !== "\\") {
131973
+ at3++;
131974
+ continue;
131975
+ }
131976
+ const unit = /^\\(?:'[0-9a-fA-F]{2}|[a-zA-Z]+-?\d*[ ]?|.)/s.exec(rtf.slice(at3, at3 + 40));
131977
+ at3 += unit === null ? 1 : unit[0].length;
131978
+ }
131979
+ return at3;
131980
+ }
131948
131981
  function htmlFromEncapsulatedRtf(rtf) {
131949
131982
  if (!/\\from(html|text)|\\\*\\htmltag/.test(rtf)) return null;
131950
131983
  let out = "";
@@ -131952,10 +131985,13 @@ function htmlFromEncapsulatedRtf(rtf) {
131952
131985
  let suppressed = 0;
131953
131986
  let skipUntilDepth = null;
131954
131987
  let depth = 0;
131988
+ let fallback = 1;
131989
+ const fallbacks = [];
131955
131990
  while (at3 < rtf.length) {
131956
131991
  const char = rtf[at3];
131957
131992
  if (char === "{") {
131958
131993
  depth++;
131994
+ fallbacks.push(fallback);
131959
131995
  at3++;
131960
131996
  const ahead = rtf.slice(at3, at3 + 12);
131961
131997
  if (skipUntilDepth === null && /^\\\*\\(mhtmltag|htmlbase)/.test(ahead)) skipUntilDepth = depth;
@@ -131964,6 +132000,7 @@ function htmlFromEncapsulatedRtf(rtf) {
131964
132000
  if (char === "}") {
131965
132001
  if (skipUntilDepth !== null && depth <= skipUntilDepth) skipUntilDepth = null;
131966
132002
  depth--;
132003
+ fallback = fallbacks.pop() ?? 1;
131967
132004
  at3++;
131968
132005
  continue;
131969
132006
  }
@@ -132000,11 +132037,16 @@ function htmlFromEncapsulatedRtf(rtf) {
132000
132037
  if (suppressed === 0 && skipUntilDepth === null) out += " ";
132001
132038
  continue;
132002
132039
  }
132040
+ if (word === "uc" && parameter !== void 0) {
132041
+ fallback = Math.max(0, Number(parameter));
132042
+ continue;
132043
+ }
132003
132044
  if (word === "u" && parameter !== void 0) {
132004
132045
  if (suppressed === 0 && skipUntilDepth === null) {
132005
132046
  const code3 = Number(parameter);
132006
132047
  out += String.fromCharCode(code3 < 0 ? code3 + 65536 : code3);
132007
132048
  }
132049
+ at3 = skipUnicodeFallback(rtf, at3, fallback);
132008
132050
  continue;
132009
132051
  }
132010
132052
  continue;
@@ -132024,10 +132066,13 @@ function textFromRtf(rtf) {
132024
132066
  let at3 = 0;
132025
132067
  let skipUntilDepth = null;
132026
132068
  let depth = 0;
132069
+ let fallback = 1;
132070
+ const fallbacks = [];
132027
132071
  while (at3 < rtf.length) {
132028
132072
  const char = rtf[at3];
132029
132073
  if (char === "{") {
132030
132074
  depth++;
132075
+ fallbacks.push(fallback);
132031
132076
  at3++;
132032
132077
  if (skipUntilDepth === null && /^\\(\*|fonttbl|colortbl|stylesheet|info|pict)/.test(rtf.slice(at3, at3 + 12))) {
132033
132078
  skipUntilDepth = depth;
@@ -132037,6 +132082,7 @@ function textFromRtf(rtf) {
132037
132082
  if (char === "}") {
132038
132083
  if (skipUntilDepth !== null && depth <= skipUntilDepth) skipUntilDepth = null;
132039
132084
  depth--;
132085
+ fallback = fallbacks.pop() ?? 1;
132040
132086
  at3++;
132041
132087
  continue;
132042
132088
  }
@@ -132059,13 +132105,21 @@ function textFromRtf(rtf) {
132059
132105
  continue;
132060
132106
  }
132061
132107
  at3 += control[0].length;
132108
+ if (control[1] === "uc" && control[2] !== void 0) {
132109
+ fallback = Math.max(0, Number(control[2]));
132110
+ continue;
132111
+ }
132112
+ if (control[1] === "u" && control[2] !== void 0) {
132113
+ if (writable) {
132114
+ const code3 = Number(control[2]);
132115
+ out += String.fromCharCode(code3 < 0 ? code3 + 65536 : code3);
132116
+ }
132117
+ at3 = skipUnicodeFallback(rtf, at3, fallback);
132118
+ continue;
132119
+ }
132062
132120
  if (!writable) continue;
132063
132121
  if (control[1] === "par" || control[1] === "line") out += "\n";
132064
132122
  else if (control[1] === "tab") out += " ";
132065
- else if (control[1] === "u" && control[2] !== void 0) {
132066
- const code3 = Number(control[2]);
132067
- out += String.fromCharCode(code3 < 0 ? code3 + 65536 : code3);
132068
- }
132069
132123
  continue;
132070
132124
  }
132071
132125
  if (char === "\r" || char === "\n") {
@@ -132627,18 +132681,26 @@ function parseEntity(entity, state2, depth) {
132627
132681
  const boundary = contentType.params.boundary;
132628
132682
  if (boundary === void 0 || boundary === "") {
132629
132683
  state2.notes.push(`a ${mediaType} part declares no boundary; it was read as a single part`);
132630
- return node2;
132684
+ return asSinglePart(node2);
132631
132685
  }
132632
132686
  if (depth >= MAX_DEPTH2) {
132633
132687
  state2.notes.push(`parts nested deeper than ${MAX_DEPTH2} were not read`);
132634
132688
  return node2;
132635
132689
  }
132636
- for (const piece of splitMultipart(body, boundary, state2)) {
132690
+ const pieces = splitMultipart(body, boundary, state2);
132691
+ if (pieces === void 0) {
132692
+ state2.notes.push("a multipart part's boundary was never found; it was read as a single part");
132693
+ return asSinglePart(node2);
132694
+ }
132695
+ for (const piece of pieces) {
132637
132696
  node2.children.push(parseEntity(piece, state2, depth + 1));
132638
132697
  }
132639
132698
  }
132640
132699
  return node2;
132641
132700
  }
132701
+ function asSinglePart(node2) {
132702
+ return { ...node2, mediaType: "text/plain" };
132703
+ }
132642
132704
  function splitMultipart(body, boundary, state2) {
132643
132705
  const marker = Buffer.from(`--${boundary}`, "latin1");
132644
132706
  const starts = [];
@@ -132650,10 +132712,7 @@ function splitMultipart(body, boundary, state2) {
132650
132712
  if (found === 0 || body[found - 1] === 10) starts.push(found);
132651
132713
  at3 = found + marker.length;
132652
132714
  }
132653
- if (starts.length === 0) {
132654
- state2.notes.push("a multipart part's boundary was never found; it was read as a single part");
132655
- return [];
132656
- }
132715
+ if (starts.length === 0) return void 0;
132657
132716
  const parts = [];
132658
132717
  for (let index4 = 0; index4 < starts.length; index4++) {
132659
132718
  const start = starts[index4];
@@ -198419,8 +198478,7 @@ var TerminalManager = class {
198419
198478
  this.socketSessions.delete(socket);
198420
198479
  }
198421
198480
  }
198422
- void session.dispose?.().catch(() => {
198423
- });
198481
+ endSession(session);
198424
198482
  onExit(terminalId, exitCode);
198425
198483
  }));
198426
198484
  return session;
@@ -198572,7 +198630,7 @@ async function firstChildOnMac(pid) {
198572
198630
  async function argv(pid) {
198573
198631
  return (await fs15.readFile(`/proc/${pid}/cmdline`, "utf8").catch(() => "")).split("\0");
198574
198632
  }
198575
- var RUNNER_LAYERS = /* @__PURE__ */ new Set(["lxc-exec", "bwrap"]);
198633
+ var RUNNER_LAYERS = /* @__PURE__ */ new Set(["lxc-exec", "bwrap", "landstrip"]);
198576
198634
  async function childrenOf3(pid) {
198577
198635
  const children = [];
198578
198636
  try {
@@ -219070,8 +219128,8 @@ async function recordRunningVersion(options2) {
219070
219128
  }
219071
219129
 
219072
219130
  // ../server/src/index.ts
219073
- var VERSION2 = true ? "0.62.1" : "dev";
219074
- var CHANGELOG = true ? "# Changelog\n\nWhat changed in each release of pi-outpost, newest first. This file ships inside the\npackage and the executables: after an update, the app shows the sections between the\nversion you had and the one you run now, without going online.\n\nReleases before 0.41.0 are described on\n[GitHub Releases](https://github.com/laurentftech/pi-outpost/releases).\n\n## [0.62.1] - 2026-11-10\n\n### Fixed\n\n- **Thinking controls respect the model's minimum.** Models requiring reasoning no\n longer offer an unsupported `off` choice; models allowing it keep that choice.\n ([#478](https://github.com/laurentftech/pi-outpost/pull/478))\n- **Find on-demand tools again after they leave the prompt.** `tool_search` can reload\n the extended Work Plan tools after inactivity. In embedded sessions, calling a\n remembered deferred tool from another extension also reactivates it.\n ([#474](https://github.com/laurentftech/pi-outpost/pull/474))\n\n### Changed\n\n- **Updated the pi engine to 1.5.1**, with tool-search, file-reading and grep fixes.\n When no model is configured, the Anthropic default is now Claude Opus 5.5.\n Eligible prompt caches can now be warmed while idle, which can incur provider\n charges; set `cacheWarming` to `\"streaming\"` for the previous behavior or `\"off\"`\n in `<agentDir>/settings.json` to disable warming.\n ([#478](https://github.com/laurentftech/pi-outpost/pull/478))\n- More automated checks exercise malformed ZIP archives, email and structured-exchange\n documents. ([#472](https://github.com/laurentftech/pi-outpost/pull/472))\n- Refreshed the project website, with clearer guidance on built-in sandboxing and\n deployment options. ([#475](https://github.com/laurentftech/pi-outpost/pull/475),\n [#476](https://github.com/laurentftech/pi-outpost/pull/476))\n\n## [0.62.0] - 2026-11-08\n\n### Added\n\n- **Host questions under landstrip on Linux.** `sandbox.allowedHosts` now works with\n landstrip: the agent's shell reaches the listed hosts through the server's proxy, and a\n connection to any other host asks you, as under MXC and Seatbelt. An empty list asks about\n every host. ([#468](https://github.com/laurentftech/pi-outpost/pull/468))\n\n### Changed\n\n- **Docker: the agent's network asks you by default.** The image used to close the agent's\n network unless the operator opted in; it now reaches hosts only through the server's proxy,\n which asks you about each one. Existing volumes get `sandbox.allowedHosts: []` at startup.\n `ALLOW_AGENT_NETWORK=0` now refuses all networking, the proxy included, and `1` follows\n your configuration as before. The image ships landstrip 0.20.26, which also hides the\n server's processes from the agent's commands. ([#468](https://github.com/laurentftech/pi-outpost/pull/468))\n- **Remote servers require encrypted transport.** A server listening beyond the loopback\n now refuses plain HTTP: configure a certificate for native HTTPS/WSS, or keep it on the\n loopback behind SSH or a TLS proxy. `server.allowInsecureHttp` (or\n `PI_OUTPOST_ALLOW_INSECURE_HTTP=1`) keeps plain HTTP for a hop you protect otherwise, with\n a warning. Loopback HTTP is unchanged. ([#463](https://github.com/laurentftech/pi-outpost/pull/463))\n\n### Fixed\n\n- Under landstrip, a refused operation is told to the agent in words instead of landstrip's\n JSON report, so a command that survived the refusal is no longer taken for a failed one;\n the startup line now says an empty host list asks about every host.\n ([#469](https://github.com/laurentftech/pi-outpost/pull/469))\n- draw.io wires with a fixed end on a shape that has perimeter spacing end where draw.io\n draws them, and `drawio_check` judges those routes as drawn.\n ([#467](https://github.com/laurentftech/pi-outpost/pull/467))\n\n## [0.61.0] - 2026-11-08\n\n### Added\n\n- **One actions menu per row in the Files tree.** Each file and folder now has a single\n `\u22EF` menu (also on right-click) instead of a row of unlabelled icons. Folders can be\n renamed, moved, deleted and downloaded like files. Select several entries with\n Shift-click or Ctrl/Cmd-click to delete, move, download or reference them together.\n **Download** saves a file as itself, and a folder or a selection as one `.zip`.\n The last move, rename or deletion can be undone (Undo, or Ctrl/Cmd+Z): deleted entries\n go to a temporary server trash, emptied at startup and after 24 hours.\n ([#438](https://github.com/laurentftech/pi-outpost/pull/438))\n- **Git credentials for private repositories in Agent resources.** When a clone or refresh\n needs a login, the panel asks for a user name and token, stores them for that host and\n retries. Settings \u2192 Accounts lists the stored Git hosts and removes them. Git errors now\n show git's actual reason instead of its progress line. ([#428](https://github.com/laurentftech/pi-outpost/pull/428))\n- **Host questions on Linux and macOS sandboxes.** Under MXC on Linux and macOS and under\n Seatbelt, a connection to a host missing from `sandbox.allowedHosts` now asks you\n instead of being refused silently. ([#429](https://github.com/laurentftech/pi-outpost/pull/429))\n- Release files now carry signed build provenance: check a download with\n `gh attestation verify <file> -R laurentftech/pi-outpost`. ([#436](https://github.com/laurentftech/pi-outpost/pull/436))\n\n### Fixed\n\n- Terminal colours in tool output are rendered instead of printed as escape codes, in the\n app and in the HTML export. ([#427](https://github.com/laurentftech/pi-outpost/pull/427))\n- A session whose first reply starts with a tool call is titled from its answer, not from\n the question alone. ([#449](https://github.com/laurentftech/pi-outpost/pull/449))\n\n## [0.60.1] - 2026-11-06\n\n### Fixed\n\n- Hardened filesystem access, document parsing, command execution, URL validation and\n diagnostic logging against untrusted input. ([#420](https://github.com/laurentftech/pi-outpost/pull/420),\n [#422](https://github.com/laurentftech/pi-outpost/pull/422))\n\n## [0.60.0] - 2026-11-05\n\n### Added\n\n- **Run the full app with Python in Docker.** A Compose recipe includes the web\n interface, agent, Python/venv and integrated terminal, with persistent projects\n and agent settings. The app runs as a non-root user and verifies shell and terminal\n confinement before serving. Agent shell networking is off by default and can be\n enabled explicitly by the operator. Releases now publish the tested Linux x64 image\n to `ghcr.io/laurentftech/pi-outpost`, with a version tag and `latest` for stable releases.\n The deployment guide documents the required sandbox profiles and host prerequisites.\n ([#416](https://github.com/laurentftech/pi-outpost/pull/416))\n\n### Changed\n\n- **Clearer contribution and security guidance.** The repository now documents\n contribution requirements, private vulnerability reporting, quality checks and\n their limitations. Bug and feature issue forms help provide useful reports.\n Server lint and broader JavaScript/TypeScript CodeQL analysis extend the existing\n checks; the analysis also reports existing findings that need triage.\n ([#418](https://github.com/laurentftech/pi-outpost/pull/418))\n- **Updated dependency maintenance.** Bump glob and related locked dependencies.\n ([#415](https://github.com/laurentftech/pi-outpost/pull/415))\n\n### Fixed\n\n- **Keep stable extension symlinks across updates.** Adding an extension folder\n preserves the chosen symlink or Windows junction instead of saving its versioned\n target. The resource manager displays the configured folder and removes the correct\n entry without deleting its files. After repointing the link, restart pi-outpost to\n load the new extension code.\n ([#417](https://github.com/laurentftech/pi-outpost/pull/417))\n\n## [0.59.1] - 2026-11-05\n\n### Changed\n\n- **Keep the conversation visible while answering questions.** Questions now appear\n below the timeline, leaving the context readable and scrollable. Short choices use\n up to two columns when there is room; long descriptions and narrow windows keep\n one column. Sandbox permission requests scroll their command, paths and explanation\n independently, with all three decision buttons kept visible.\n ([#412](https://github.com/laurentftech/pi-outpost/pull/412),\n [#413](https://github.com/laurentftech/pi-outpost/pull/413))\n- **Install safely with npm 12.** Installation instructions and the updater explicitly\n allow the native scripts needed by the terminal and sandbox while blocking unrelated\n dependency scripts. Use `npx --allow-scripts=node-pty,koffi pi-outpost` with npm 12\n and a compatible Node version (24.15+ or 26+).\n ([#411](https://github.com/laurentftech/pi-outpost/pull/411))\n\n### Fixed\n\n- **Unanswered questions survive browser disconnections.** A connection lost during\n browser sleep no longer becomes a refusal sent to the agent. Questions without an\n extension-defined deadline reappear on reconnect, and a project waiting for your\n answer stays available even after its idle timeout. Starting a new session can\n still deliberately abandon an old question.\n ([#414](https://github.com/laurentftech/pi-outpost/pull/414))\n\n## [0.59.0] - 2026-11-04\n\n### Changed\n\n- **Keep the conversation visible in narrow windows.** The Work Plan collapses\n automatically below 768 pixels and restores its desktop state when the window\n widens. The model selector and Settings resources also have clearer accessible\n names and improved contrast.\n ([#407](https://github.com/laurentftech/pi-outpost/pull/407))\n- **Updated diagram and page editors.** Mermaid is now 12.3.0 and GrapesJS 0.23.9.\n ([#407](https://github.com/laurentftech/pi-outpost/pull/407))\n\n### Fixed\n\n- **Send queued messages immediately after an interruption.** \u201CSend now\u201D starts a\n new turn with the pending messages, including when the agent was running a tool.\n Stopping the agent keeps pending messages ready for the next prompt. Long\n conversations no longer create a second page scrollbar.\n ([#405](https://github.com/laurentftech/pi-outpost/pull/405))\n- **Reuse document tools after reopening a session.** Tools discovered for PDFs,\n Word documents, presentations and spreadsheets are restored when the session\n resumes. Repeating an earlier tool call works without another discovery step.\n ([#406](https://github.com/laurentftech/pi-outpost/pull/406))\n- **HTTPS commands work in the macOS sandbox.** The sandbox now permits the\n system certificate trust service needed to validate HTTPS connections.\n ([#405](https://github.com/laurentftech/pi-outpost/pull/405))\n\n## [0.58.0] - 2026-11-03\n\n### Added\n\n- **Add and remove pi packages from Settings.** Under Extensions \u2192 Packages,\n **Add a package** takes an npm name (`openlore`, `@scope/name`, or\n `name@1.2.3` to pin that version) and installs it for all projects or for\n this project only. The name is looked up on the registry your npm\n configuration uses first, and the confirmation names the version that will\n be installed. **Remove** uninstalls a package; it keeps running until\n pi-outpost restarts, so it stays listed with **Undo** until then. Nothing\n changes while an agent is working, and `extensionLock` forbids both.\n ([#404](https://github.com/laurentftech/pi-outpost/pull/404))\n\n### Changed\n\n- **Queued messages are lighter.** A message waiting for the agent now looks\n like a sent one, only paler, without a frame or a heading; a single line under\n the queue says \"queued\", with \"send now\" as a plain link. When the queue\n cannot be sent (a message an extension queued, or the connection dropped), the\n line still says \"queued\", without the link.\n ([#403](https://github.com/laurentftech/pi-outpost/pull/403))\n- **The restart notice names each package once, by its latest change.** It now\n covers packages added and removed, and drops one put back as it was.\n ([#404](https://github.com/laurentftech/pi-outpost/pull/404))\n\n## [0.57.0] - 2026-11-02\n\n### Added\n\n- **Change a message the agent has not read yet.** A message you send while the\n agent works waits until the end of its current step. It now shows below the\n running turn, marked as queued, with the usual \u270E to rewrite it and a \u2715 to\n take it out; once the agent reads it, it joins the conversation where it was\n read. If the agent reads it while you are editing it, your edit lands in the\n composer instead of being lost.\n ([#400](https://github.com/laurentftech/pi-outpost/pull/400))\n- **Send queued messages now.** One button sends everything that is queued at\n once. After a stop, it sends them without your typing a new message. While\n the agent works, it first stops the current step, and tells you so before\n doing it: a reply being written is dropped and a running tool is stopped,\n while the work already done is kept.\n ([#400](https://github.com/laurentftech/pi-outpost/pull/400))\n\n### Changed\n\n- **A turned-off sandbox shows the shell's lock open.** With `\"sandbox\": false`,\n the agent's shell runs with every right of the server's account; the lock next\n to the model now says so, instead of showing nothing. Where this machine can\n confine the shell, it offers `pi-outpost config --confine`, which now turns\n the sandbox back on (after checking the runner) and tells you that the\n agent's file tools are limited to the project again.\n ([#402](https://github.com/laurentftech/pi-outpost/pull/402))\n- **Pi SDK 1.5.0.** The npm CLI and server use the updated SDK, which also brings\n the `undici` security fix it had been pinning out.\n ([#399](https://github.com/laurentftech/pi-outpost/pull/399))\n\n### Fixed\n\n- **Messages sent in quick succession reach the agent in the order you sent\n them.** A message naming files with `@` could be overtaken by a plain one\n sent right after it.\n ([#401](https://github.com/laurentftech/pi-outpost/pull/401))\n- **A message queued before a stop no longer vanishes.** It disappeared from the\n screen while the agent kept it and sent it with your next message; it now\n stays visible, and can be changed, removed or sent.\n ([#400](https://github.com/laurentftech/pi-outpost/pull/400))\n\n## [0.56.0] - 2026-11-01\n\n### Changed\n\n- **The agent is now sandboxed by default.** This is the main change of this\n release. If your configuration has no `sandbox` section, the agent can now read\n and write only inside the project, and its shell runs in the operating\n system's sandbox: MXC on Windows and Linux, Seatbelt on macOS. Commands run\n once the sandbox has passed its check; where it cannot confine \u2014 a Windows 11\n build without the August 2026 update, a container without user namespaces \u2014\n the shell refuses every command and says why. To get an unconfined shell\n back, set `\"bashRunner\": \"none\"` in `sandbox`; to turn the sandbox off\n entirely, `\"sandbox\": false`. A configuration that already has a `sandbox`\n section behaves as before. The agent can no longer write pi-outpost's\n configuration file, and `pi-outpost init` writes this default out.\n ([#397](https://github.com/laurentftech/pi-outpost/pull/397))\n- **A shorter README.** Setup, configuration, the command line, features,\n deployment and integrations each have their own guide under `docs/`.\n ([#398](https://github.com/laurentftech/pi-outpost/pull/398))\n- The draw.io viewer is updated to 32.6.9.\n ([#386](https://github.com/laurentftech/pi-outpost/pull/386))\n\n### Added\n\n- **Confine an unconfined shell in one command.** When your configuration runs\n the shell unconfined and this machine can confine it, the lock next to the\n model is highlighted and says so; `pi-outpost config --confine` checks the\n sandbox, then switches it on in your configuration file.\n ([#397](https://github.com/laurentftech/pi-outpost/pull/397))\n- **Let a confined command through, once or for the session.** When a sandboxed\n command connects to a host that is not allowed, or the agent needs a folder\n beside the project, you are asked, and choose this command only, this session,\n or no. The agent directory, the configuration and `.pi` folders are never\n offered. ([#392](https://github.com/laurentftech/pi-outpost/pull/392))\n- **Run one turn from the terminal.** `pi-outpost -p \"<prompt>\"` answers on\n stdout and exits, without a browser; `-p -` reads the prompt from stdin and\n `--json` prints every event.\n ([#395](https://github.com/laurentftech/pi-outpost/pull/395))\n- **Search file contents from the Files panel.** The magnifying glass searches\n text files and the text of PDFs; a hit opens the file at the match.\n ([#385](https://github.com/laurentftech/pi-outpost/pull/385))\n- **Graphs with straight, readable wires that keep their layout.** Structured\n graphs are drawn with right-angled wires routed like draw.io's, and a layout you\n adjust \u2014 by dragging, or touched up in draw.io \u2014 is kept beside the document and\n reused when the model is revised.\n ([#390](https://github.com/laurentftech/pi-outpost/pull/390))\n- **`drawio_check` checks where wires meet.** It warns about wires that share a\n point while carrying different data, exits facing the wrong way, long detours\n and needless bends, with advice that settles the diagram.\n ([#389](https://github.com/laurentftech/pi-outpost/pull/389))\n\n### Fixed\n\n- **Tools installed for your user run in the Windows sandbox.** A confined\n command finds what `PATH` finds (Python in your profile, for example), and a\n bare `sandbox.bashShell` such as `pwsh.exe` is looked up on `PATH`.\n ([#393](https://github.com/laurentftech/pi-outpost/pull/393))\n- **The PowerShell confinement check reports again**, instead of always showing\n \"confinement unchecked\". ([#388](https://github.com/laurentftech/pi-outpost/pull/388))\n- **Two arrangements saved at once both stick on Windows.**\n ([#394](https://github.com/laurentftech/pi-outpost/pull/394))\n- **`drawio_check`'s advice is read in linear time**, whatever a diagram's labels\n hold. ([#396](https://github.com/laurentftech/pi-outpost/pull/396))\n\n## [0.55.0] - 2026-10-29\n\n### Added\n\n- **Ask a side question while the agent works.** Use `/btw` to ask about the\n conversation without interrupting the running turn. The answer appears above\n the composer, supports follow-up questions, and stays out of the agent's\n conversation and saved session. Side answers use the session's model with no\n tools, in both embedded and RPC runtimes.\n ([#383](https://github.com/laurentftech/pi-outpost/pull/383))\n\n### Changed\n\n- **Load specialist tools when they are needed.** Document and project-model tools\n stay available through `tool_search` and extension calls without adding all their\n schemas to every request. Tools loaded by search follow the same inactivity\n rules as tools published when a document is named.\n ([#382](https://github.com/laurentftech/pi-outpost/pull/382))\n- **Keep diagram, poster and structure tools out of idle conversations.** These\n tools now load through `tool_search` too, with guidance explaining which tool\n families the agent can find.\n ([#384](https://github.com/laurentftech/pi-outpost/pull/384))\n\n### Fixed\n\n- **Keep on-demand tools hidden across conversation rewinds.** Restoring or\n rewinding a conversation no longer republishes tools that should stay inactive.\n ([#381](https://github.com/laurentftech/pi-outpost/pull/381))\n- **Find the Word extractor on Windows.** Searching for \u201CWord document\u201D includes\n `docx_extract` even when the Windows-only comparison tool is available.\n ([#384](https://github.com/laurentftech/pi-outpost/pull/384))\n\n## [0.54.0] - 2026-10-28\n\n### Added\n\n- **Drop desktop files straight into a workspace folder.** Drag files onto a folder\n in the Files tree, or onto Workspace root, to import them there without attaching\n them to the conversation. Progress, saved paths and individual errors stay visible\n when you close and reopen Files. Existing names receive a numeric suffix instead\n of being overwritten. Imports accept files up to 25 MB; folder drops and read-only\n destinations are refused, and changing workspace stops the remaining batch.\n ([#379](https://github.com/laurentftech/pi-outpost/pull/379))\n\n## [0.53.0] - 2026-10-28\n\n### Added\n\n- **Touch up a poster's draw.io diagram in place.** In pi-outpost, double-click a\n diagram picture to edit its page, or open it in draw.io desktop. Returning to the\n poster refreshes every picture of that page, keeping its position and width;\n one undo restores them all. Unsaved touch-ups are kept unless you discard them.\n ([#376](https://github.com/laurentftech/pi-outpost/pull/376))\n- **See why a session is slow to open.** A new session, session switch or fork taking\n at least two seconds logs the time spent shutting down the previous session,\n loading the new one and binding extensions. An extension binding that finishes\n later reports its completion too, helping diagnose slow MCP connections.\n ([#377](https://github.com/laurentftech/pi-outpost/pull/377))\n\n### Fixed\n\n- **The poster's Format panel starts from what you see.** Inherited fonts, sizes,\n colours and alignment are shown correctly, and the size arrows step from those\n values without accidental dragging. Font sizes stay positive and in pixels,\n line spacing is a multiple of the text size, and invalid colours are refused.\n The panel follows the light or dark theme and its colour picker stays in view.\n ([#375](https://github.com/laurentftech/pi-outpost/pull/375))\n\n## [0.52.0] - 2026-10-27\n\n### Added\n\n- **draw.io diagrams in posters.** In the poster editor, **Insert \u25BE \u2192 draw.io diagram\u2026** lists\n the project's diagrams page by page and puts the one you choose into the selected frame or\n onto the page. The agent can lay out a frame naming a diagram, and the editor draws it when\n the poster opens. ([#370](https://github.com/laurentftech/pi-outpost/pull/370))\n- **The project's pictures in posters.** **Insert \u25BE \u2192 Picture from the project\u2026** lists the\n project's SVG, PNG, JPEG, GIF and WebP files, including the figures the agent drew. An SVG\n stays sharp at any size; the agent can name a picture file in a frame too.\n ([#371](https://github.com/laurentftech/pi-outpost/pull/371))\n- **The agent checks its posters.** After writing a poster, the agent runs `poster_check`,\n which says what the editor would refuse, drop or leave empty, so it fixes the poster before\n you open it. ([#373](https://github.com/laurentftech/pi-outpost/pull/373))\n- **Wires that cross boxes are caught.** `drawio_check` now warns when a wire runs through a\n box or its label sits on one, so the agent can tidy its diagram. In touch-up, a **wires**\n control draws the selected wires, or all of them, straight, orthogonal or curved.\n ([#374](https://github.com/laurentftech/pi-outpost/pull/374))\n\n### Fixed\n\n- **A poster open in the viewer shows the agent's new version** as soon as it rewrites the\n file, unless you have unsaved touch-ups, which are kept. ([#369](https://github.com/laurentftech/pi-outpost/pull/369))\n- **Posters with text pasted from Word export to Word and PowerPoint** instead of failing with\n \"this browser could not draw the page as a picture\"; an export that still fails says why.\n ([#372](https://github.com/laurentftech/pi-outpost/pull/372))\n- **Opening a poster no longer asks to discard changes you never made**, when the editor filled\n frames on opening. ([#373](https://github.com/laurentftech/pi-outpost/pull/373))\n- **No more stray \"git log failed\" at the bottom of the conversation.** The commit map only\n follows the repository while its menu is open, and a failure shows in the menu, saying why\n git failed (too slow, not found, too much output). ([#368](https://github.com/laurentftech/pi-outpost/pull/368))\n\n## [0.51.0] - 2026-10-26\n\n### Added\n\n- **Pictures, text boxes and shapes in posters.** In the poster editor, **Insert \u25BE** adds a\n picture from your computer, a text box or a shape (rectangle, ellipse, arrow, star, speech\n bubble\u2026). Double-click an empty frame the agent laid out, or drop a file on the page, to put\n a picture in it. Pictures are shrunk to 1200 px and kept inside the poster file, and they\n still go out with it to Word and PowerPoint.\n ([#365](https://github.com/laurentftech/pi-outpost/pull/365))\n- **The agent keeps your pictures and can draw.** The agent reads each picture as a short\n marker and puts the picture back when it edits the poster, so its edits never drop one. It\n can also lay out empty frames for your pictures and draw simple illustrations, which move\n and resize as one piece. ([#365](https://github.com/laurentftech/pi-outpost/pull/365))\n- **Open WebUI's model can look at a poster's pictures.** With a model that reads images,\n `get_poster` can hand it the poster's pictures as images.\n ([#366](https://github.com/laurentftech/pi-outpost/pull/366))\n\n### Fixed\n\n- **The poster page stays still under your clicks.** The page is kept in view after you\n scroll, pinch or zoom, without ever fighting the editor's own fit, so a click on a text or\n a drawing selects it at once. ([#367](https://github.com/laurentftech/pi-outpost/pull/367))\n\n## [0.50.0] - 2026-10-25\n\n### Added\n\n- **Posters you can retouch.** Ask the agent for a poster, a worksheet or a slide and it\n writes a printable `.poster.html` page (A4, A3 or 16:9). The file viewer opens it in an\n editor: double-click a text to correct it, drag a pictogram, change colours, fonts and\n sizes, then save it back to the file. Unsaved touch-ups are not dropped without asking.\n ([#361](https://github.com/laurentftech/pi-outpost/pull/361))\n- **Posters to Word and PowerPoint.** From the editor, download the poster as a Word page,\n a PowerPoint slide or HTML. In Word and PowerPoint the poster is a picture at print\n resolution: correct texts in the editor, then export again.\n ([#361](https://github.com/laurentftech/pi-outpost/pull/361))\n- **Posters in Claude Desktop.** A second extension, `pi-outpost-posters.mcpb`, attached to\n each release, shows the same editor inside Claude.\n ([#361](https://github.com/laurentftech/pi-outpost/pull/361))\n- **Posters in Open WebUI.** The tool server creates, shows and lists posters for each user.\n When saving is configured, touch-ups made in the embed are kept as a new revision that\n the model reads back; an older embed cannot overwrite a newer revision.\n ([#361](https://github.com/laurentftech/pi-outpost/pull/361),\n [#362](https://github.com/laurentftech/pi-outpost/pull/362))\n\n### Changed\n\n- **Open WebUI embeds follow the host theme.** Planning and poster views switch between\n light and dark with Open WebUI. ([#362](https://github.com/laurentftech/pi-outpost/pull/362))\n\n### Fixed\n\n- **Extension statuses keep their semantic colours.** Statuses an extension styles as\n success, warning or error (pi-blackhole's gauges, for instance) are shown in colour\n instead of plain text, including in the standalone executables.\n ([#360](https://github.com/laurentftech/pi-outpost/pull/360))\n- **Dependency security updates.** `fast-uri` 3.1.9 fixes four URI parsing advisories;\n `undici` moves to 8.12.3. ([#363](https://github.com/laurentftech/pi-outpost/pull/363),\n [#364](https://github.com/laurentftech/pi-outpost/pull/364))\n\n## [0.49.0] - 2026-10-23\n\n### Added\n\n- **Coloured extension statuses.** Status badges keep the foreground colours, bold,\n dim, italic and underline styling sent by extensions, both in the header and in\n the overflow list. Hover titles remain plain text.\n ([#356](https://github.com/laurentftech/pi-outpost/pull/356))\n- **Release notes readable by agents.** The npm package now carries `CHANGELOG.md`\n at its root, so agents and tools can read what changed without starting the server.\n ([#356](https://github.com/laurentftech/pi-outpost/pull/356))\n\n### Changed\n\n- **Pi SDK 1.4.0.** The npm CLI and server use the updated SDK.\n ([#356](https://github.com/laurentftech/pi-outpost/pull/356))\n\n## [0.48.0] - 2026-10-23\n\n### Added\n\n- **Update the agent's pi packages from the terminal.** `pi-outpost update --extensions`\n installs the newest version of every npm pi package the agent loads, with the same rules\n as Settings: pinned packages stay put, a failed lookup is reported rather than called up to\n date, and `extensionLock` refuses. `pi-outpost update --all` updates pi-outpost, then the\n packages, and works from a standalone executable too. Plain `pi-outpost update` now ends\n by naming the packages that have a newer version.\n ([#351](https://github.com/laurentftech/pi-outpost/pull/351))\n- **Choose the shell of each terminal.** A new terminal tab offers the shells installed on\n the machine, and defaults to PowerShell on Windows. The terminal's height can be resized\n and is remembered, the usual copy and paste shortcuts work, and its shell sessions come\n back after a reconnect. ([#355](https://github.com/laurentftech/pi-outpost/pull/355))\n- **A System theme.** Next to Light and Dark, the header offers System, which follows your\n operating system. ([#355](https://github.com/laurentftech/pi-outpost/pull/355))\n- **Git changes beside the scrollbar.** The file editor and the read-only source view mark\n every Git change next to the scrollbar; click a marker to jump to it, even when it is\n out of view. ([#355](https://github.com/laurentftech/pi-outpost/pull/355))\n- **Credits.** Settings have a Credits page listing the third-party software pi-outpost\n includes, readable offline. ([#355](https://github.com/laurentftech/pi-outpost/pull/355))\n\n### Changed\n\n- **Opening a file no longer attaches it to your message.** Files you browse stay out of\n the composer; attach or pin one when you want the agent to see it.\n ([#355](https://github.com/laurentftech/pi-outpost/pull/355))\n- **Restart the session at any time.** Settings always offer a session restart, to reload\n extensions and MCP servers without changing the configuration.\n ([#355](https://github.com/laurentftech/pi-outpost/pull/355))\n\n### Fixed\n\n- **Images and codemode in the standalone executable.** The agent saw no image (`read` on\n a picture answered \"Image omitted\") and codemode scripts failed to start; both now work in\n the executable as they do from npm.\n ([#353](https://github.com/laurentftech/pi-outpost/pull/353))\n- **A Mermaid diagram drawn again no longer vanishes.** Turning a diagram back to an\n orientation it already had left the block with its buttons and no picture.\n ([#354](https://github.com/laurentftech/pi-outpost/pull/354))\n\n## [0.47.0] - 2026-10-22\n\n### Added\n\n- **Tracked changes and comments in Word documents.** `docx_extract` with `review: true`\n marks every insertion, deletion and move where it sits, anchors each comment on its text,\n and closes with a list of them all \u2014 author, date, section, replies and whether the\n thread is resolved \u2014 so the agent can analyse the impact of a revision. The default\n reading now says when a document holds tracked changes or comments it does not show.\n ([#347](https://github.com/laurentftech/pi-outpost/pull/347))\n- **Compare two versions of a Word document, on Windows.** When a document was revised\n without tracked changes, `docx_compare` has desktop Microsoft Word compare the two\n versions and returns every difference with the same markers, under its section; it can\n also save Word's compared document for you to open. Where Word is not available, the\n agent names the manual path: Review \u2192 Compare in Word.\n ([#348](https://github.com/laurentftech/pi-outpost/pull/348))\n\n### Fixed\n\n- **Word documents read as they now stand.** Moved text comes back once, at its\n destination; a table row deleted with tracking is no longer read as a row; and formatting\n replaced by a tracked change is no longer read as current.\n ([#347](https://github.com/laurentftech/pi-outpost/pull/347))\n- **No Word left running after a timeout.** When rendering or comparing a Word document\n ran out of time, the Word it had started kept running, invisible; it is now ended.\n ([#348](https://github.com/laurentftech/pi-outpost/pull/348))\n\n## [0.46.0] - 2026-10-20\n\n### Added\n\n- **Draw.io diagrams in replies.** Diagrams included in agent replies are interactive, and\n you can ask the agent to adjust one in place. ([#345](https://github.com/laurentftech/pi-outpost/pull/345))\n\n## [0.45.0] - 2026-10-20\n\n### Added\n\n- **draw.io diagrams, seen and made.** A `.drawio` file opens drawn in the file viewer, by\n draw.io's own viewer \u2014 every page, zoom, dark mode \u2014 with nothing fetched from anywhere;\n \"open in draw.io\" hands it to draw.io desktop for editing, and the view follows the saved\n file. The agent writes draw.io diagrams and checks them with `drawio_check`.\n\n## [0.44.0] - 2026-10-20\n\n### Added\n\n- **The commit history is a metro map.** The branch chip's menu draws the checked-out\n line and every local branch as parallel coloured lines, with merges as curves, branch\n names at their tips and tags on their commits. The checked-out line always runs first,\n in green. A commit or a branch made in a terminal shows up while the menu is open.\n ([#341](https://github.com/laurentftech/pi-outpost/pull/341))\n- **What's changed, after an update.** This changelog now ships inside pi-outpost: once\n updated, the app names the version you came from and shows what changed since, without\n going online. The notice of a newer version links its release notes.\n ([#342](https://github.com/laurentftech/pi-outpost/pull/342))\n\n## [0.43.0] - 2026-10-20\n\n### Added\n\n- **A change gutter in the editor**: a bar beside each line added or changed since HEAD,\n a notch where lines were removed. A click shows what was there and, while editing,\n reverts that change into the draft. The git state now follows commits, checkouts and\n resets made outside the app. ([#338](https://github.com/laurentftech/pi-outpost/pull/338))\n\n### Fixed\n\n- A confined shell's history is kept out of the project.\n ([#340](https://github.com/laurentftech/pi-outpost/pull/340))\n- The header's controls stay on one row. ([#339](https://github.com/laurentftech/pi-outpost/pull/339))\n- `show_planning` repeats its summary in its structured content.\n ([#336](https://github.com/laurentftech/pi-outpost/pull/336))\n\n## [0.42.0] - 2026-10-19\n\n### Added\n\n- **Provider accounts**: sign in to model providers and manage the accounts from the app.\n ([#335](https://github.com/laurentftech/pi-outpost/pull/335))\n- **A lock that shows confinement was verified**, not only configured.\n ([#334](https://github.com/laurentftech/pi-outpost/pull/334))\n- **More sandbox runners**: Seatbelt through `sandbox-exec` on every Mac\n ([#330](https://github.com/laurentftech/pi-outpost/pull/330)), and MXC's macOS\n ([#329](https://github.com/laurentftech/pi-outpost/pull/329)) and Linux\n ([#328](https://github.com/laurentftech/pi-outpost/pull/328)) executors.\n- **`sandbox.allowedHosts`**: under MXC, the agent's shell reaches only the hosts you name.\n ([#327](https://github.com/laurentftech/pi-outpost/pull/327))\n\n### Fixed\n\n- A confined shell reads the global git ignore and attributes files.\n ([#332](https://github.com/laurentftech/pi-outpost/pull/332))\n- MXC is asked for no clipboard and no input injection.\n ([#326](https://github.com/laurentftech/pi-outpost/pull/326))\n\n## [0.41.0] - 2026-10-18\n\n### Changed\n\n- The Claude Desktop planning view follows the host's theme.\n ([#323](https://github.com/laurentftech/pi-outpost/pull/323))\n- Structured-exchange figures follow the dark theme, and the table key names its colours.\n ([#322](https://github.com/laurentftech/pi-outpost/pull/322))\n- `@microsoft/mxc-sdk` 1.0.1. ([#324](https://github.com/laurentftech/pi-outpost/pull/324))\n\n### Fixed\n\n- A confined shell runs a turn's commands in order.\n ([#325](https://github.com/laurentftech/pi-outpost/pull/325))\n" : "";
219131
+ var VERSION2 = true ? "0.62.2" : "dev";
219132
+ var CHANGELOG = true ? "# Changelog\n\nWhat changed in each release of pi-outpost, newest first. This file ships inside the\npackage and the executables: after an update, the app shows the sections between the\nversion you had and the one you run now, without going online.\n\nReleases before 0.41.0 are described on\n[GitHub Releases](https://github.com/laurentftech/pi-outpost/releases).\n\n## [0.62.2] - 2026-11-11\n\n### Fixed\n\n- **Decode Outlook rich-text email without duplicating Unicode fallback characters.**\n ([#480](https://github.com/laurentftech/pi-outpost/pull/480))\n- **Keep email text when multipart boundaries are missing and preserve loosely written\n HTML tables.** ([#481](https://github.com/laurentftech/pi-outpost/pull/481),\n [#483](https://github.com/laurentftech/pi-outpost/pull/483))\n- **Stop the agent turn even when queued messages cannot be kept pending.**\n ([#484](https://github.com/laurentftech/pi-outpost/pull/484))\n- **Close Windows pseudo-terminals when their shell exits.**\n ([#481](https://github.com/laurentftech/pi-outpost/pull/481))\n\n## [0.62.1] - 2026-11-10\n\n### Fixed\n\n- **Thinking controls respect the model's minimum.** Models requiring reasoning no\n longer offer an unsupported `off` choice; models allowing it keep that choice.\n ([#478](https://github.com/laurentftech/pi-outpost/pull/478))\n- **Find on-demand tools again after they leave the prompt.** `tool_search` can reload\n the extended Work Plan tools after inactivity. In embedded sessions, calling a\n remembered deferred tool from another extension also reactivates it.\n ([#474](https://github.com/laurentftech/pi-outpost/pull/474))\n\n### Changed\n\n- **Updated the pi engine to 1.5.1**, with tool-search, file-reading and grep fixes.\n When no model is configured, the Anthropic default is now Claude Opus 5.5.\n Eligible prompt caches can now be warmed while idle, which can incur provider\n charges; set `cacheWarming` to `\"streaming\"` for the previous behavior or `\"off\"`\n in `<agentDir>/settings.json` to disable warming.\n ([#478](https://github.com/laurentftech/pi-outpost/pull/478))\n- More automated checks exercise malformed ZIP archives, email and structured-exchange\n documents. ([#472](https://github.com/laurentftech/pi-outpost/pull/472))\n- Refreshed the project website, with clearer guidance on built-in sandboxing and\n deployment options. ([#475](https://github.com/laurentftech/pi-outpost/pull/475),\n [#476](https://github.com/laurentftech/pi-outpost/pull/476))\n\n## [0.62.0] - 2026-11-08\n\n### Added\n\n- **Host questions under landstrip on Linux.** `sandbox.allowedHosts` now works with\n landstrip: the agent's shell reaches the listed hosts through the server's proxy, and a\n connection to any other host asks you, as under MXC and Seatbelt. An empty list asks about\n every host. ([#468](https://github.com/laurentftech/pi-outpost/pull/468))\n\n### Changed\n\n- **Docker: the agent's network asks you by default.** The image used to close the agent's\n network unless the operator opted in; it now reaches hosts only through the server's proxy,\n which asks you about each one. Existing volumes get `sandbox.allowedHosts: []` at startup.\n `ALLOW_AGENT_NETWORK=0` now refuses all networking, the proxy included, and `1` follows\n your configuration as before. The image ships landstrip 0.20.26, which also hides the\n server's processes from the agent's commands. ([#468](https://github.com/laurentftech/pi-outpost/pull/468))\n- **Remote servers require encrypted transport.** A server listening beyond the loopback\n now refuses plain HTTP: configure a certificate for native HTTPS/WSS, or keep it on the\n loopback behind SSH or a TLS proxy. `server.allowInsecureHttp` (or\n `PI_OUTPOST_ALLOW_INSECURE_HTTP=1`) keeps plain HTTP for a hop you protect otherwise, with\n a warning. Loopback HTTP is unchanged. ([#463](https://github.com/laurentftech/pi-outpost/pull/463))\n\n### Fixed\n\n- Under landstrip, a refused operation is told to the agent in words instead of landstrip's\n JSON report, so a command that survived the refusal is no longer taken for a failed one;\n the startup line now says an empty host list asks about every host.\n ([#469](https://github.com/laurentftech/pi-outpost/pull/469))\n- draw.io wires with a fixed end on a shape that has perimeter spacing end where draw.io\n draws them, and `drawio_check` judges those routes as drawn.\n ([#467](https://github.com/laurentftech/pi-outpost/pull/467))\n\n## [0.61.0] - 2026-11-08\n\n### Added\n\n- **One actions menu per row in the Files tree.** Each file and folder now has a single\n `\u22EF` menu (also on right-click) instead of a row of unlabelled icons. Folders can be\n renamed, moved, deleted and downloaded like files. Select several entries with\n Shift-click or Ctrl/Cmd-click to delete, move, download or reference them together.\n **Download** saves a file as itself, and a folder or a selection as one `.zip`.\n The last move, rename or deletion can be undone (Undo, or Ctrl/Cmd+Z): deleted entries\n go to a temporary server trash, emptied at startup and after 24 hours.\n ([#438](https://github.com/laurentftech/pi-outpost/pull/438))\n- **Git credentials for private repositories in Agent resources.** When a clone or refresh\n needs a login, the panel asks for a user name and token, stores them for that host and\n retries. Settings \u2192 Accounts lists the stored Git hosts and removes them. Git errors now\n show git's actual reason instead of its progress line. ([#428](https://github.com/laurentftech/pi-outpost/pull/428))\n- **Host questions on Linux and macOS sandboxes.** Under MXC on Linux and macOS and under\n Seatbelt, a connection to a host missing from `sandbox.allowedHosts` now asks you\n instead of being refused silently. ([#429](https://github.com/laurentftech/pi-outpost/pull/429))\n- Release files now carry signed build provenance: check a download with\n `gh attestation verify <file> -R laurentftech/pi-outpost`. ([#436](https://github.com/laurentftech/pi-outpost/pull/436))\n\n### Fixed\n\n- Terminal colours in tool output are rendered instead of printed as escape codes, in the\n app and in the HTML export. ([#427](https://github.com/laurentftech/pi-outpost/pull/427))\n- A session whose first reply starts with a tool call is titled from its answer, not from\n the question alone. ([#449](https://github.com/laurentftech/pi-outpost/pull/449))\n\n## [0.60.1] - 2026-11-06\n\n### Fixed\n\n- Hardened filesystem access, document parsing, command execution, URL validation and\n diagnostic logging against untrusted input. ([#420](https://github.com/laurentftech/pi-outpost/pull/420),\n [#422](https://github.com/laurentftech/pi-outpost/pull/422))\n\n## [0.60.0] - 2026-11-05\n\n### Added\n\n- **Run the full app with Python in Docker.** A Compose recipe includes the web\n interface, agent, Python/venv and integrated terminal, with persistent projects\n and agent settings. The app runs as a non-root user and verifies shell and terminal\n confinement before serving. Agent shell networking is off by default and can be\n enabled explicitly by the operator. Releases now publish the tested Linux x64 image\n to `ghcr.io/laurentftech/pi-outpost`, with a version tag and `latest` for stable releases.\n The deployment guide documents the required sandbox profiles and host prerequisites.\n ([#416](https://github.com/laurentftech/pi-outpost/pull/416))\n\n### Changed\n\n- **Clearer contribution and security guidance.** The repository now documents\n contribution requirements, private vulnerability reporting, quality checks and\n their limitations. Bug and feature issue forms help provide useful reports.\n Server lint and broader JavaScript/TypeScript CodeQL analysis extend the existing\n checks; the analysis also reports existing findings that need triage.\n ([#418](https://github.com/laurentftech/pi-outpost/pull/418))\n- **Updated dependency maintenance.** Bump glob and related locked dependencies.\n ([#415](https://github.com/laurentftech/pi-outpost/pull/415))\n\n### Fixed\n\n- **Keep stable extension symlinks across updates.** Adding an extension folder\n preserves the chosen symlink or Windows junction instead of saving its versioned\n target. The resource manager displays the configured folder and removes the correct\n entry without deleting its files. After repointing the link, restart pi-outpost to\n load the new extension code.\n ([#417](https://github.com/laurentftech/pi-outpost/pull/417))\n\n## [0.59.1] - 2026-11-05\n\n### Changed\n\n- **Keep the conversation visible while answering questions.** Questions now appear\n below the timeline, leaving the context readable and scrollable. Short choices use\n up to two columns when there is room; long descriptions and narrow windows keep\n one column. Sandbox permission requests scroll their command, paths and explanation\n independently, with all three decision buttons kept visible.\n ([#412](https://github.com/laurentftech/pi-outpost/pull/412),\n [#413](https://github.com/laurentftech/pi-outpost/pull/413))\n- **Install safely with npm 12.** Installation instructions and the updater explicitly\n allow the native scripts needed by the terminal and sandbox while blocking unrelated\n dependency scripts. Use `npx --allow-scripts=node-pty,koffi pi-outpost` with npm 12\n and a compatible Node version (24.15+ or 26+).\n ([#411](https://github.com/laurentftech/pi-outpost/pull/411))\n\n### Fixed\n\n- **Unanswered questions survive browser disconnections.** A connection lost during\n browser sleep no longer becomes a refusal sent to the agent. Questions without an\n extension-defined deadline reappear on reconnect, and a project waiting for your\n answer stays available even after its idle timeout. Starting a new session can\n still deliberately abandon an old question.\n ([#414](https://github.com/laurentftech/pi-outpost/pull/414))\n\n## [0.59.0] - 2026-11-04\n\n### Changed\n\n- **Keep the conversation visible in narrow windows.** The Work Plan collapses\n automatically below 768 pixels and restores its desktop state when the window\n widens. The model selector and Settings resources also have clearer accessible\n names and improved contrast.\n ([#407](https://github.com/laurentftech/pi-outpost/pull/407))\n- **Updated diagram and page editors.** Mermaid is now 12.3.0 and GrapesJS 0.23.9.\n ([#407](https://github.com/laurentftech/pi-outpost/pull/407))\n\n### Fixed\n\n- **Send queued messages immediately after an interruption.** \u201CSend now\u201D starts a\n new turn with the pending messages, including when the agent was running a tool.\n Stopping the agent keeps pending messages ready for the next prompt. Long\n conversations no longer create a second page scrollbar.\n ([#405](https://github.com/laurentftech/pi-outpost/pull/405))\n- **Reuse document tools after reopening a session.** Tools discovered for PDFs,\n Word documents, presentations and spreadsheets are restored when the session\n resumes. Repeating an earlier tool call works without another discovery step.\n ([#406](https://github.com/laurentftech/pi-outpost/pull/406))\n- **HTTPS commands work in the macOS sandbox.** The sandbox now permits the\n system certificate trust service needed to validate HTTPS connections.\n ([#405](https://github.com/laurentftech/pi-outpost/pull/405))\n\n## [0.58.0] - 2026-11-03\n\n### Added\n\n- **Add and remove pi packages from Settings.** Under Extensions \u2192 Packages,\n **Add a package** takes an npm name (`openlore`, `@scope/name`, or\n `name@1.2.3` to pin that version) and installs it for all projects or for\n this project only. The name is looked up on the registry your npm\n configuration uses first, and the confirmation names the version that will\n be installed. **Remove** uninstalls a package; it keeps running until\n pi-outpost restarts, so it stays listed with **Undo** until then. Nothing\n changes while an agent is working, and `extensionLock` forbids both.\n ([#404](https://github.com/laurentftech/pi-outpost/pull/404))\n\n### Changed\n\n- **Queued messages are lighter.** A message waiting for the agent now looks\n like a sent one, only paler, without a frame or a heading; a single line under\n the queue says \"queued\", with \"send now\" as a plain link. When the queue\n cannot be sent (a message an extension queued, or the connection dropped), the\n line still says \"queued\", without the link.\n ([#403](https://github.com/laurentftech/pi-outpost/pull/403))\n- **The restart notice names each package once, by its latest change.** It now\n covers packages added and removed, and drops one put back as it was.\n ([#404](https://github.com/laurentftech/pi-outpost/pull/404))\n\n## [0.57.0] - 2026-11-02\n\n### Added\n\n- **Change a message the agent has not read yet.** A message you send while the\n agent works waits until the end of its current step. It now shows below the\n running turn, marked as queued, with the usual \u270E to rewrite it and a \u2715 to\n take it out; once the agent reads it, it joins the conversation where it was\n read. If the agent reads it while you are editing it, your edit lands in the\n composer instead of being lost.\n ([#400](https://github.com/laurentftech/pi-outpost/pull/400))\n- **Send queued messages now.** One button sends everything that is queued at\n once. After a stop, it sends them without your typing a new message. While\n the agent works, it first stops the current step, and tells you so before\n doing it: a reply being written is dropped and a running tool is stopped,\n while the work already done is kept.\n ([#400](https://github.com/laurentftech/pi-outpost/pull/400))\n\n### Changed\n\n- **A turned-off sandbox shows the shell's lock open.** With `\"sandbox\": false`,\n the agent's shell runs with every right of the server's account; the lock next\n to the model now says so, instead of showing nothing. Where this machine can\n confine the shell, it offers `pi-outpost config --confine`, which now turns\n the sandbox back on (after checking the runner) and tells you that the\n agent's file tools are limited to the project again.\n ([#402](https://github.com/laurentftech/pi-outpost/pull/402))\n- **Pi SDK 1.5.0.** The npm CLI and server use the updated SDK, which also brings\n the `undici` security fix it had been pinning out.\n ([#399](https://github.com/laurentftech/pi-outpost/pull/399))\n\n### Fixed\n\n- **Messages sent in quick succession reach the agent in the order you sent\n them.** A message naming files with `@` could be overtaken by a plain one\n sent right after it.\n ([#401](https://github.com/laurentftech/pi-outpost/pull/401))\n- **A message queued before a stop no longer vanishes.** It disappeared from the\n screen while the agent kept it and sent it with your next message; it now\n stays visible, and can be changed, removed or sent.\n ([#400](https://github.com/laurentftech/pi-outpost/pull/400))\n\n## [0.56.0] - 2026-11-01\n\n### Changed\n\n- **The agent is now sandboxed by default.** This is the main change of this\n release. If your configuration has no `sandbox` section, the agent can now read\n and write only inside the project, and its shell runs in the operating\n system's sandbox: MXC on Windows and Linux, Seatbelt on macOS. Commands run\n once the sandbox has passed its check; where it cannot confine \u2014 a Windows 11\n build without the August 2026 update, a container without user namespaces \u2014\n the shell refuses every command and says why. To get an unconfined shell\n back, set `\"bashRunner\": \"none\"` in `sandbox`; to turn the sandbox off\n entirely, `\"sandbox\": false`. A configuration that already has a `sandbox`\n section behaves as before. The agent can no longer write pi-outpost's\n configuration file, and `pi-outpost init` writes this default out.\n ([#397](https://github.com/laurentftech/pi-outpost/pull/397))\n- **A shorter README.** Setup, configuration, the command line, features,\n deployment and integrations each have their own guide under `docs/`.\n ([#398](https://github.com/laurentftech/pi-outpost/pull/398))\n- The draw.io viewer is updated to 32.6.9.\n ([#386](https://github.com/laurentftech/pi-outpost/pull/386))\n\n### Added\n\n- **Confine an unconfined shell in one command.** When your configuration runs\n the shell unconfined and this machine can confine it, the lock next to the\n model is highlighted and says so; `pi-outpost config --confine` checks the\n sandbox, then switches it on in your configuration file.\n ([#397](https://github.com/laurentftech/pi-outpost/pull/397))\n- **Let a confined command through, once or for the session.** When a sandboxed\n command connects to a host that is not allowed, or the agent needs a folder\n beside the project, you are asked, and choose this command only, this session,\n or no. The agent directory, the configuration and `.pi` folders are never\n offered. ([#392](https://github.com/laurentftech/pi-outpost/pull/392))\n- **Run one turn from the terminal.** `pi-outpost -p \"<prompt>\"` answers on\n stdout and exits, without a browser; `-p -` reads the prompt from stdin and\n `--json` prints every event.\n ([#395](https://github.com/laurentftech/pi-outpost/pull/395))\n- **Search file contents from the Files panel.** The magnifying glass searches\n text files and the text of PDFs; a hit opens the file at the match.\n ([#385](https://github.com/laurentftech/pi-outpost/pull/385))\n- **Graphs with straight, readable wires that keep their layout.** Structured\n graphs are drawn with right-angled wires routed like draw.io's, and a layout you\n adjust \u2014 by dragging, or touched up in draw.io \u2014 is kept beside the document and\n reused when the model is revised.\n ([#390](https://github.com/laurentftech/pi-outpost/pull/390))\n- **`drawio_check` checks where wires meet.** It warns about wires that share a\n point while carrying different data, exits facing the wrong way, long detours\n and needless bends, with advice that settles the diagram.\n ([#389](https://github.com/laurentftech/pi-outpost/pull/389))\n\n### Fixed\n\n- **Tools installed for your user run in the Windows sandbox.** A confined\n command finds what `PATH` finds (Python in your profile, for example), and a\n bare `sandbox.bashShell` such as `pwsh.exe` is looked up on `PATH`.\n ([#393](https://github.com/laurentftech/pi-outpost/pull/393))\n- **The PowerShell confinement check reports again**, instead of always showing\n \"confinement unchecked\". ([#388](https://github.com/laurentftech/pi-outpost/pull/388))\n- **Two arrangements saved at once both stick on Windows.**\n ([#394](https://github.com/laurentftech/pi-outpost/pull/394))\n- **`drawio_check`'s advice is read in linear time**, whatever a diagram's labels\n hold. ([#396](https://github.com/laurentftech/pi-outpost/pull/396))\n\n## [0.55.0] - 2026-10-29\n\n### Added\n\n- **Ask a side question while the agent works.** Use `/btw` to ask about the\n conversation without interrupting the running turn. The answer appears above\n the composer, supports follow-up questions, and stays out of the agent's\n conversation and saved session. Side answers use the session's model with no\n tools, in both embedded and RPC runtimes.\n ([#383](https://github.com/laurentftech/pi-outpost/pull/383))\n\n### Changed\n\n- **Load specialist tools when they are needed.** Document and project-model tools\n stay available through `tool_search` and extension calls without adding all their\n schemas to every request. Tools loaded by search follow the same inactivity\n rules as tools published when a document is named.\n ([#382](https://github.com/laurentftech/pi-outpost/pull/382))\n- **Keep diagram, poster and structure tools out of idle conversations.** These\n tools now load through `tool_search` too, with guidance explaining which tool\n families the agent can find.\n ([#384](https://github.com/laurentftech/pi-outpost/pull/384))\n\n### Fixed\n\n- **Keep on-demand tools hidden across conversation rewinds.** Restoring or\n rewinding a conversation no longer republishes tools that should stay inactive.\n ([#381](https://github.com/laurentftech/pi-outpost/pull/381))\n- **Find the Word extractor on Windows.** Searching for \u201CWord document\u201D includes\n `docx_extract` even when the Windows-only comparison tool is available.\n ([#384](https://github.com/laurentftech/pi-outpost/pull/384))\n\n## [0.54.0] - 2026-10-28\n\n### Added\n\n- **Drop desktop files straight into a workspace folder.** Drag files onto a folder\n in the Files tree, or onto Workspace root, to import them there without attaching\n them to the conversation. Progress, saved paths and individual errors stay visible\n when you close and reopen Files. Existing names receive a numeric suffix instead\n of being overwritten. Imports accept files up to 25 MB; folder drops and read-only\n destinations are refused, and changing workspace stops the remaining batch.\n ([#379](https://github.com/laurentftech/pi-outpost/pull/379))\n\n## [0.53.0] - 2026-10-28\n\n### Added\n\n- **Touch up a poster's draw.io diagram in place.** In pi-outpost, double-click a\n diagram picture to edit its page, or open it in draw.io desktop. Returning to the\n poster refreshes every picture of that page, keeping its position and width;\n one undo restores them all. Unsaved touch-ups are kept unless you discard them.\n ([#376](https://github.com/laurentftech/pi-outpost/pull/376))\n- **See why a session is slow to open.** A new session, session switch or fork taking\n at least two seconds logs the time spent shutting down the previous session,\n loading the new one and binding extensions. An extension binding that finishes\n later reports its completion too, helping diagnose slow MCP connections.\n ([#377](https://github.com/laurentftech/pi-outpost/pull/377))\n\n### Fixed\n\n- **The poster's Format panel starts from what you see.** Inherited fonts, sizes,\n colours and alignment are shown correctly, and the size arrows step from those\n values without accidental dragging. Font sizes stay positive and in pixels,\n line spacing is a multiple of the text size, and invalid colours are refused.\n The panel follows the light or dark theme and its colour picker stays in view.\n ([#375](https://github.com/laurentftech/pi-outpost/pull/375))\n\n## [0.52.0] - 2026-10-27\n\n### Added\n\n- **draw.io diagrams in posters.** In the poster editor, **Insert \u25BE \u2192 draw.io diagram\u2026** lists\n the project's diagrams page by page and puts the one you choose into the selected frame or\n onto the page. The agent can lay out a frame naming a diagram, and the editor draws it when\n the poster opens. ([#370](https://github.com/laurentftech/pi-outpost/pull/370))\n- **The project's pictures in posters.** **Insert \u25BE \u2192 Picture from the project\u2026** lists the\n project's SVG, PNG, JPEG, GIF and WebP files, including the figures the agent drew. An SVG\n stays sharp at any size; the agent can name a picture file in a frame too.\n ([#371](https://github.com/laurentftech/pi-outpost/pull/371))\n- **The agent checks its posters.** After writing a poster, the agent runs `poster_check`,\n which says what the editor would refuse, drop or leave empty, so it fixes the poster before\n you open it. ([#373](https://github.com/laurentftech/pi-outpost/pull/373))\n- **Wires that cross boxes are caught.** `drawio_check` now warns when a wire runs through a\n box or its label sits on one, so the agent can tidy its diagram. In touch-up, a **wires**\n control draws the selected wires, or all of them, straight, orthogonal or curved.\n ([#374](https://github.com/laurentftech/pi-outpost/pull/374))\n\n### Fixed\n\n- **A poster open in the viewer shows the agent's new version** as soon as it rewrites the\n file, unless you have unsaved touch-ups, which are kept. ([#369](https://github.com/laurentftech/pi-outpost/pull/369))\n- **Posters with text pasted from Word export to Word and PowerPoint** instead of failing with\n \"this browser could not draw the page as a picture\"; an export that still fails says why.\n ([#372](https://github.com/laurentftech/pi-outpost/pull/372))\n- **Opening a poster no longer asks to discard changes you never made**, when the editor filled\n frames on opening. ([#373](https://github.com/laurentftech/pi-outpost/pull/373))\n- **No more stray \"git log failed\" at the bottom of the conversation.** The commit map only\n follows the repository while its menu is open, and a failure shows in the menu, saying why\n git failed (too slow, not found, too much output). ([#368](https://github.com/laurentftech/pi-outpost/pull/368))\n\n## [0.51.0] - 2026-10-26\n\n### Added\n\n- **Pictures, text boxes and shapes in posters.** In the poster editor, **Insert \u25BE** adds a\n picture from your computer, a text box or a shape (rectangle, ellipse, arrow, star, speech\n bubble\u2026). Double-click an empty frame the agent laid out, or drop a file on the page, to put\n a picture in it. Pictures are shrunk to 1200 px and kept inside the poster file, and they\n still go out with it to Word and PowerPoint.\n ([#365](https://github.com/laurentftech/pi-outpost/pull/365))\n- **The agent keeps your pictures and can draw.** The agent reads each picture as a short\n marker and puts the picture back when it edits the poster, so its edits never drop one. It\n can also lay out empty frames for your pictures and draw simple illustrations, which move\n and resize as one piece. ([#365](https://github.com/laurentftech/pi-outpost/pull/365))\n- **Open WebUI's model can look at a poster's pictures.** With a model that reads images,\n `get_poster` can hand it the poster's pictures as images.\n ([#366](https://github.com/laurentftech/pi-outpost/pull/366))\n\n### Fixed\n\n- **The poster page stays still under your clicks.** The page is kept in view after you\n scroll, pinch or zoom, without ever fighting the editor's own fit, so a click on a text or\n a drawing selects it at once. ([#367](https://github.com/laurentftech/pi-outpost/pull/367))\n\n## [0.50.0] - 2026-10-25\n\n### Added\n\n- **Posters you can retouch.** Ask the agent for a poster, a worksheet or a slide and it\n writes a printable `.poster.html` page (A4, A3 or 16:9). The file viewer opens it in an\n editor: double-click a text to correct it, drag a pictogram, change colours, fonts and\n sizes, then save it back to the file. Unsaved touch-ups are not dropped without asking.\n ([#361](https://github.com/laurentftech/pi-outpost/pull/361))\n- **Posters to Word and PowerPoint.** From the editor, download the poster as a Word page,\n a PowerPoint slide or HTML. In Word and PowerPoint the poster is a picture at print\n resolution: correct texts in the editor, then export again.\n ([#361](https://github.com/laurentftech/pi-outpost/pull/361))\n- **Posters in Claude Desktop.** A second extension, `pi-outpost-posters.mcpb`, attached to\n each release, shows the same editor inside Claude.\n ([#361](https://github.com/laurentftech/pi-outpost/pull/361))\n- **Posters in Open WebUI.** The tool server creates, shows and lists posters for each user.\n When saving is configured, touch-ups made in the embed are kept as a new revision that\n the model reads back; an older embed cannot overwrite a newer revision.\n ([#361](https://github.com/laurentftech/pi-outpost/pull/361),\n [#362](https://github.com/laurentftech/pi-outpost/pull/362))\n\n### Changed\n\n- **Open WebUI embeds follow the host theme.** Planning and poster views switch between\n light and dark with Open WebUI. ([#362](https://github.com/laurentftech/pi-outpost/pull/362))\n\n### Fixed\n\n- **Extension statuses keep their semantic colours.** Statuses an extension styles as\n success, warning or error (pi-blackhole's gauges, for instance) are shown in colour\n instead of plain text, including in the standalone executables.\n ([#360](https://github.com/laurentftech/pi-outpost/pull/360))\n- **Dependency security updates.** `fast-uri` 3.1.9 fixes four URI parsing advisories;\n `undici` moves to 8.12.3. ([#363](https://github.com/laurentftech/pi-outpost/pull/363),\n [#364](https://github.com/laurentftech/pi-outpost/pull/364))\n\n## [0.49.0] - 2026-10-23\n\n### Added\n\n- **Coloured extension statuses.** Status badges keep the foreground colours, bold,\n dim, italic and underline styling sent by extensions, both in the header and in\n the overflow list. Hover titles remain plain text.\n ([#356](https://github.com/laurentftech/pi-outpost/pull/356))\n- **Release notes readable by agents.** The npm package now carries `CHANGELOG.md`\n at its root, so agents and tools can read what changed without starting the server.\n ([#356](https://github.com/laurentftech/pi-outpost/pull/356))\n\n### Changed\n\n- **Pi SDK 1.4.0.** The npm CLI and server use the updated SDK.\n ([#356](https://github.com/laurentftech/pi-outpost/pull/356))\n\n## [0.48.0] - 2026-10-23\n\n### Added\n\n- **Update the agent's pi packages from the terminal.** `pi-outpost update --extensions`\n installs the newest version of every npm pi package the agent loads, with the same rules\n as Settings: pinned packages stay put, a failed lookup is reported rather than called up to\n date, and `extensionLock` refuses. `pi-outpost update --all` updates pi-outpost, then the\n packages, and works from a standalone executable too. Plain `pi-outpost update` now ends\n by naming the packages that have a newer version.\n ([#351](https://github.com/laurentftech/pi-outpost/pull/351))\n- **Choose the shell of each terminal.** A new terminal tab offers the shells installed on\n the machine, and defaults to PowerShell on Windows. The terminal's height can be resized\n and is remembered, the usual copy and paste shortcuts work, and its shell sessions come\n back after a reconnect. ([#355](https://github.com/laurentftech/pi-outpost/pull/355))\n- **A System theme.** Next to Light and Dark, the header offers System, which follows your\n operating system. ([#355](https://github.com/laurentftech/pi-outpost/pull/355))\n- **Git changes beside the scrollbar.** The file editor and the read-only source view mark\n every Git change next to the scrollbar; click a marker to jump to it, even when it is\n out of view. ([#355](https://github.com/laurentftech/pi-outpost/pull/355))\n- **Credits.** Settings have a Credits page listing the third-party software pi-outpost\n includes, readable offline. ([#355](https://github.com/laurentftech/pi-outpost/pull/355))\n\n### Changed\n\n- **Opening a file no longer attaches it to your message.** Files you browse stay out of\n the composer; attach or pin one when you want the agent to see it.\n ([#355](https://github.com/laurentftech/pi-outpost/pull/355))\n- **Restart the session at any time.** Settings always offer a session restart, to reload\n extensions and MCP servers without changing the configuration.\n ([#355](https://github.com/laurentftech/pi-outpost/pull/355))\n\n### Fixed\n\n- **Images and codemode in the standalone executable.** The agent saw no image (`read` on\n a picture answered \"Image omitted\") and codemode scripts failed to start; both now work in\n the executable as they do from npm.\n ([#353](https://github.com/laurentftech/pi-outpost/pull/353))\n- **A Mermaid diagram drawn again no longer vanishes.** Turning a diagram back to an\n orientation it already had left the block with its buttons and no picture.\n ([#354](https://github.com/laurentftech/pi-outpost/pull/354))\n\n## [0.47.0] - 2026-10-22\n\n### Added\n\n- **Tracked changes and comments in Word documents.** `docx_extract` with `review: true`\n marks every insertion, deletion and move where it sits, anchors each comment on its text,\n and closes with a list of them all \u2014 author, date, section, replies and whether the\n thread is resolved \u2014 so the agent can analyse the impact of a revision. The default\n reading now says when a document holds tracked changes or comments it does not show.\n ([#347](https://github.com/laurentftech/pi-outpost/pull/347))\n- **Compare two versions of a Word document, on Windows.** When a document was revised\n without tracked changes, `docx_compare` has desktop Microsoft Word compare the two\n versions and returns every difference with the same markers, under its section; it can\n also save Word's compared document for you to open. Where Word is not available, the\n agent names the manual path: Review \u2192 Compare in Word.\n ([#348](https://github.com/laurentftech/pi-outpost/pull/348))\n\n### Fixed\n\n- **Word documents read as they now stand.** Moved text comes back once, at its\n destination; a table row deleted with tracking is no longer read as a row; and formatting\n replaced by a tracked change is no longer read as current.\n ([#347](https://github.com/laurentftech/pi-outpost/pull/347))\n- **No Word left running after a timeout.** When rendering or comparing a Word document\n ran out of time, the Word it had started kept running, invisible; it is now ended.\n ([#348](https://github.com/laurentftech/pi-outpost/pull/348))\n\n## [0.46.0] - 2026-10-20\n\n### Added\n\n- **Draw.io diagrams in replies.** Diagrams included in agent replies are interactive, and\n you can ask the agent to adjust one in place. ([#345](https://github.com/laurentftech/pi-outpost/pull/345))\n\n## [0.45.0] - 2026-10-20\n\n### Added\n\n- **draw.io diagrams, seen and made.** A `.drawio` file opens drawn in the file viewer, by\n draw.io's own viewer \u2014 every page, zoom, dark mode \u2014 with nothing fetched from anywhere;\n \"open in draw.io\" hands it to draw.io desktop for editing, and the view follows the saved\n file. The agent writes draw.io diagrams and checks them with `drawio_check`.\n\n## [0.44.0] - 2026-10-20\n\n### Added\n\n- **The commit history is a metro map.** The branch chip's menu draws the checked-out\n line and every local branch as parallel coloured lines, with merges as curves, branch\n names at their tips and tags on their commits. The checked-out line always runs first,\n in green. A commit or a branch made in a terminal shows up while the menu is open.\n ([#341](https://github.com/laurentftech/pi-outpost/pull/341))\n- **What's changed, after an update.** This changelog now ships inside pi-outpost: once\n updated, the app names the version you came from and shows what changed since, without\n going online. The notice of a newer version links its release notes.\n ([#342](https://github.com/laurentftech/pi-outpost/pull/342))\n\n## [0.43.0] - 2026-10-20\n\n### Added\n\n- **A change gutter in the editor**: a bar beside each line added or changed since HEAD,\n a notch where lines were removed. A click shows what was there and, while editing,\n reverts that change into the draft. The git state now follows commits, checkouts and\n resets made outside the app. ([#338](https://github.com/laurentftech/pi-outpost/pull/338))\n\n### Fixed\n\n- A confined shell's history is kept out of the project.\n ([#340](https://github.com/laurentftech/pi-outpost/pull/340))\n- The header's controls stay on one row. ([#339](https://github.com/laurentftech/pi-outpost/pull/339))\n- `show_planning` repeats its summary in its structured content.\n ([#336](https://github.com/laurentftech/pi-outpost/pull/336))\n\n## [0.42.0] - 2026-10-19\n\n### Added\n\n- **Provider accounts**: sign in to model providers and manage the accounts from the app.\n ([#335](https://github.com/laurentftech/pi-outpost/pull/335))\n- **A lock that shows confinement was verified**, not only configured.\n ([#334](https://github.com/laurentftech/pi-outpost/pull/334))\n- **More sandbox runners**: Seatbelt through `sandbox-exec` on every Mac\n ([#330](https://github.com/laurentftech/pi-outpost/pull/330)), and MXC's macOS\n ([#329](https://github.com/laurentftech/pi-outpost/pull/329)) and Linux\n ([#328](https://github.com/laurentftech/pi-outpost/pull/328)) executors.\n- **`sandbox.allowedHosts`**: under MXC, the agent's shell reaches only the hosts you name.\n ([#327](https://github.com/laurentftech/pi-outpost/pull/327))\n\n### Fixed\n\n- A confined shell reads the global git ignore and attributes files.\n ([#332](https://github.com/laurentftech/pi-outpost/pull/332))\n- MXC is asked for no clipboard and no input injection.\n ([#326](https://github.com/laurentftech/pi-outpost/pull/326))\n\n## [0.41.0] - 2026-10-18\n\n### Changed\n\n- The Claude Desktop planning view follows the host's theme.\n ([#323](https://github.com/laurentftech/pi-outpost/pull/323))\n- Structured-exchange figures follow the dark theme, and the table key names its colours.\n ([#322](https://github.com/laurentftech/pi-outpost/pull/322))\n- `@microsoft/mxc-sdk` 1.0.1. ([#324](https://github.com/laurentftech/pi-outpost/pull/324))\n\n### Fixed\n\n- A confined shell runs a turn's commands in order.\n ([#325](https://github.com/laurentftech/pi-outpost/pull/325))\n" : "";
219075
219133
  var PI_SDK_VERSION = true ? "1.5.1" : readInstalledPiSdkVersion();
219076
219134
  var LAUNCH_DIR = process.env.INIT_CWD ?? process.cwd();
219077
219135
  function complain(error) {
@@ -222002,7 +222060,14 @@ async function abortTurn(workspace2) {
222002
222060
  await workspace2.agent.abort();
222003
222061
  return;
222004
222062
  }
222005
- const taken = await takeQueueBack(workspace2);
222063
+ let taken;
222064
+ try {
222065
+ taken = await takeQueueBack(workspace2);
222066
+ } catch (error) {
222067
+ broadcast(workspace2, { type: "error", message: `The queued messages could not be kept pending: ${error instanceof Error ? error.message : String(error)}` });
222068
+ await workspace2.agent.abort();
222069
+ return;
222070
+ }
222006
222071
  await stopTurn(workspace2);
222007
222072
  await requeue(workspace2, void 0, taken);
222008
222073
  } finally {
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/pi-outpost.sea.mjs
3
- size: 52585512 bytes
4
- sha256: 513d79905dc9ed8cf6af0d3a8f3b8d873099671eb9f141abd7c61804f87fe93e
3
+ size: 52587958 bytes
4
+ sha256: bcf1dcfe9b7779aae0e6c6c343ed53d4e52a3c36b38353a092ce77f1e26af4eb
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/sea-prep.blob
3
- size: 52584250 bytes
4
- sha256: 853c38b804b22aa5448dea523b14fa0c7b43c5a441579779b33a94cd6e874cb4
3
+ size: 52586696 bytes
4
+ sha256: 096d4e69bcf12805210ea69f98f2039350a6c5f094825b75ce344ff955e9c128
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-outpost",
3
- "version": "0.62.1",
3
+ "version": "0.62.2",
4
4
  "type": "module",
5
5
  "description": "A web interface for the pi coding agent: a browser chat UI you run with npx — no clone, no build.",
6
6
  "license": "MIT",