omnius 1.0.869 → 1.0.870

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.
Files changed (26) hide show
  1. package/README.md +48 -840
  2. package/dist/index.js +2 -2
  3. package/dist/tui/native/worker.js +11 -0
  4. package/docs/DISCOVERY.json +778 -109
  5. package/docs/DISCOVERY.md +19 -1
  6. package/docs/design/single-final-response-TODO.md +93 -0
  7. package/docs/reference/rest-api.md +17 -5
  8. package/docs/work-orders/evidence/final-reply-browser-20261016.json +1225 -0
  9. package/docs/work-orders/evidence/final-reply-dark-1440-accepted-final.png +0 -0
  10. package/docs/work-orders/evidence/final-reply-light-320-accepted-final.png +0 -0
  11. package/docs/work-orders/evidence/instrument-completion-live-20261016/completion-failed-partial.png +0 -0
  12. package/docs/work-orders/evidence/instrument-completion-live-20261016/completion-final-100x30.png +0 -0
  13. package/docs/work-orders/evidence/instrument-completion-live-20261016/completion-final-120x36.png +0 -0
  14. package/docs/work-orders/evidence/instrument-completion-live-20261016/completion-final-160x48.png +0 -0
  15. package/docs/work-orders/evidence/instrument-completion-live-20261016/completion-final-60x20.png +0 -0
  16. package/docs/work-orders/evidence/instrument-completion-live-20261016/completion-final-80x24.png +0 -0
  17. package/docs/work-orders/evidence/instrument-completion-live-20261016/completion-final-clean.png +0 -0
  18. package/docs/work-orders/evidence/instrument-completion-live-20261016/completion-live-clean.png +0 -0
  19. package/docs/work-orders/evidence/instrument-completion-live-20261016/completion-paused-partial.png +0 -0
  20. package/docs/work-orders/evidence/instrument-completion-live-20261016/completion-restored-clean.png +0 -0
  21. package/docs/work-orders/evidence/instrument-completion-live-20261016/completion-technical-expanded.png +0 -0
  22. package/docs/work-orders/evidence/instrument-completion-live-20261016/report.json +743 -0
  23. package/docs/work-orders/evidence/native-completion-presentation-verification-20261016.json +65 -0
  24. package/docs/work-orders/evidence/tui-response-ownership-verification-20261016.json +79 -0
  25. package/npm-shrinkwrap.json +2 -2
  26. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/index.js
3
- size: 37592328 bytes
4
- sha256: 993f9acf83346159ad0032fe2643507c8575b2a1f93c5354d1c5db2a547c4fea
3
+ size: 37608117 bytes
4
+ sha256: 7199e816f692c421698bd83eeb2a71b8c835591202033d9fc84e3561a3c5ad07
@@ -935,6 +935,10 @@ function nativeControlFocus(control, baseAttributes = 0) {
935
935
  control.on(RenderableEvents.BLURRED, update);
936
936
  update();
937
937
  }
938
+ function keepMarkdownFallback(node) {
939
+ if (node instanceof CodeRenderable) node.drawUnstyledText = true;
940
+ for (const child of node.getChildren()) keepMarkdownFallback(child);
941
+ }
938
942
  var NativeBlockView = class {
939
943
  constructor(context, spec, inline = false) {
940
944
  this.context = context;
@@ -1088,6 +1092,12 @@ var NativeBlockView = class {
1088
1092
  });
1089
1093
  }
1090
1094
  });
1095
+ const markdown = this.text;
1096
+ const lifecycle = markdown.onLifecyclePass;
1097
+ markdown.onLifecyclePass = () => {
1098
+ lifecycle?.();
1099
+ keepMarkdownFallback(markdown);
1100
+ };
1091
1101
  this.body.add(this.text);
1092
1102
  } else if (spec.kind === "code") {
1093
1103
  this.text = new CodeRenderable(renderer2, {
@@ -1189,6 +1199,7 @@ var NativeBlockView = class {
1189
1199
  this.text.content = sections ? "" : code?.content ?? plainText(spec.text);
1190
1200
  this.text.streaming = spec.streaming ?? false;
1191
1201
  if (this.text instanceof CodeRenderable) this.text.filetype = code?.language ?? "text";
1202
+ else keepMarkdownFallback(this.text);
1192
1203
  }
1193
1204
  if (this.media && spec.media) this.media.update(spec.media);
1194
1205
  if (this.image && spec.imagePath && this.image.source !== spec.imagePath) this.image.source = spec.imagePath;