omnius 1.0.0

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 (60) hide show
  1. package/README.md +4959 -0
  2. package/dist/index.d.ts +6 -0
  3. package/dist/index.js +630665 -0
  4. package/dist/launcher.cjs +78 -0
  5. package/dist/postinstall-daemon.cjs +776 -0
  6. package/dist/preinstall.cjs +92 -0
  7. package/dist/scripts/autoresearch-prepare.py +459 -0
  8. package/dist/scripts/autoresearch-train.py +661 -0
  9. package/dist/scripts/crawlee-scraper.py +358 -0
  10. package/dist/scripts/live-nemotron.py +478 -0
  11. package/dist/scripts/live-whisper.py +242 -0
  12. package/dist/scripts/ocr-advanced.py +571 -0
  13. package/dist/scripts/start-moondream.py +112 -0
  14. package/dist/scripts/tor/UPSTREAM-README.md +148 -0
  15. package/dist/scripts/tor/destroy_tor.sh +29 -0
  16. package/dist/scripts/tor/tor_setup.sh +163 -0
  17. package/dist/scripts/transcribe-file.py +63 -0
  18. package/dist/scripts/web_scrape.py +1295 -0
  19. package/npm-shrinkwrap.json +7412 -0
  20. package/package.json +142 -0
  21. package/prompts/agentic/system-large.md +569 -0
  22. package/prompts/agentic/system-medium.md +211 -0
  23. package/prompts/agentic/system-small.md +114 -0
  24. package/prompts/compaction/context-compaction.md +44 -0
  25. package/prompts/personality/level-1-minimal.md +3 -0
  26. package/prompts/personality/level-2-concise.md +3 -0
  27. package/prompts/personality/level-4-explanatory.md +3 -0
  28. package/prompts/personality/level-5-thorough.md +3 -0
  29. package/prompts/personality/level-autist.md +3 -0
  30. package/prompts/personality/level-stark.md +3 -0
  31. package/prompts/runners/dispatcher.md +24 -0
  32. package/prompts/runners/editor.md +44 -0
  33. package/prompts/runners/evaluator.md +30 -0
  34. package/prompts/runners/merge-summary.md +9 -0
  35. package/prompts/runners/normalizer.md +23 -0
  36. package/prompts/runners/planner.md +33 -0
  37. package/prompts/runners/scout.md +39 -0
  38. package/prompts/runners/verifier.md +36 -0
  39. package/prompts/skill-builder/seed-analysis.md +30 -0
  40. package/prompts/skill-builder/skill-expansion.md +76 -0
  41. package/prompts/skill-builder/skill-validation.md +31 -0
  42. package/prompts/templates/analysis.md +14 -0
  43. package/prompts/templates/code-review.md +16 -0
  44. package/prompts/templates/code.md +13 -0
  45. package/prompts/templates/document.md +13 -0
  46. package/prompts/templates/error-diagnosis.md +14 -0
  47. package/prompts/templates/general.md +9 -0
  48. package/prompts/templates/plan.md +15 -0
  49. package/prompts/templates/system.md +16 -0
  50. package/prompts/tui/dmn-gather.md +128 -0
  51. package/prompts/tui/dream-consolidate.md +48 -0
  52. package/prompts/tui/dream-lucid-eval.md +17 -0
  53. package/prompts/tui/dream-lucid-implement.md +14 -0
  54. package/prompts/tui/dream-stages.md +19 -0
  55. package/prompts/tui/emotion-behavioral.md +2 -0
  56. package/prompts/tui/emotion-center.md +12 -0
  57. package/voices/personaplex/OverBarn.pt +0 -0
  58. package/voices/personaplex/clone-voice.py +384 -0
  59. package/voices/personaplex/dequant-loader.py +174 -0
  60. package/voices/personaplex/quantize-weights.py +167 -0
@@ -0,0 +1,78 @@
1
+ #!/usr/bin/env node
2
+ // Robust launcher for open-agents CLI.
3
+ // - Runs the ESM entry as a child process
4
+ // - On exit code 120 (update), resets terminal and restarts child
5
+ // - Prevents raw-mode/mouse-tracking bleedthrough on restart or crash
6
+
7
+ const { spawn, spawnSync } = require('node:child_process');
8
+ const { resolve } = require('node:path');
9
+
10
+ function resetTerminal() {
11
+ try { if (process.stdin.isTTY && typeof process.stdin.setRawMode === 'function') process.stdin.setRawMode(false); } catch {}
12
+ // Disable mouse tracking, bracketed paste, show cursor, reset attrs, exit alt screen if active
13
+ const ESC = '\x1B';
14
+ try {
15
+ process.stdout.write(
16
+ ESC + '[?25h' + // show cursor
17
+ ESC + '[?1000l' + // X10 mouse off
18
+ ESC + '[?1002l' + // button-event mouse off
19
+ ESC + '[?1003l' + // any-event mouse off
20
+ ESC + '[?1006l' + // SGR mouse off
21
+ ESC + '[?1015l' + // urxvt mouse off
22
+ ESC + '[?2004l' + // bracketed paste off
23
+ ESC + '[?1049l' + // exit alt screen
24
+ ESC + '[0m' // reset attributes
25
+ );
26
+ } catch {}
27
+ // stty sane (POSIX)
28
+ if (process.platform !== 'win32' && process.stdin.isTTY) {
29
+ try { spawnSync('stty', ['sane'], { stdio: 'inherit' }); } catch {}
30
+ }
31
+ }
32
+
33
+ function runChild() {
34
+ const entry = resolve(__dirname, 'index.js');
35
+ const args = [entry, ...process.argv.slice(2)];
36
+ const child = spawn(process.execPath, args, {
37
+ stdio: 'inherit',
38
+ env: process.env,
39
+ });
40
+ return child;
41
+ }
42
+
43
+ (async () => {
44
+ let restarts = 0;
45
+ const MAX_RESTARTS = 3;
46
+ let child = runChild();
47
+
48
+ const forward = (sig) => {
49
+ try { child && child.kill(sig); } catch {}
50
+ };
51
+ process.on('SIGINT', () => forward('SIGINT'));
52
+ process.on('SIGTERM', () => forward('SIGTERM'));
53
+
54
+ function attach(childProc) {
55
+ childProc.on('exit', (code, signal) => {
56
+ if (signal) {
57
+ resetTerminal();
58
+ process.kill(process.pid, signal);
59
+ return;
60
+ }
61
+ if (code === 120 && restarts < MAX_RESTARTS) {
62
+ // Update-triggered restart
63
+ resetTerminal();
64
+ restarts += 1;
65
+ setTimeout(() => {
66
+ child = runChild();
67
+ attach(child);
68
+ }, 300);
69
+ return;
70
+ }
71
+ // Normal exit or too many restarts
72
+ resetTerminal();
73
+ process.exit(typeof code === 'number' ? code : 0);
74
+ });
75
+ }
76
+
77
+ attach(child);
78
+ })();