@bramblex/codex-workbench 0.1.6 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bramblex/codex-workbench",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Terminal workbench for browsing and managing local and SSH Codex sessions.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "LICENSE"
33
33
  ],
34
34
  "scripts": {
35
- "test": "node -e \"const fs=require('fs'),{spawnSync}=require('child_process');function files(d){return fs.readdirSync(d,{withFileTypes:true}).flatMap(e=>e.isDirectory()?files(d+'/'+e.name):e.name.endsWith('.js')?[d+'/'+e.name]:[])}for(const f of files('src')){const r=spawnSync(process.execPath,['--check',f],{stdio:'inherit'});if(r.status)process.exit(r.status)}\" && node --check bin/codex-workbench && node --check scripts/pty-codex.js && node --check scripts/tui-pty-codex.js && node --check scripts/blessed-xterm-codex.js && node test/codex-bin.test.js && node test/session-sources.test.js && node test/smoke.js",
35
+ "test": "node -e \"const fs=require('fs'),{spawnSync}=require('child_process');function files(d){return fs.readdirSync(d,{withFileTypes:true}).flatMap(e=>e.isDirectory()?files(d+'/'+e.name):e.name.endsWith('.js')?[d+'/'+e.name]:[])}for(const f of files('src')){const r=spawnSync(process.execPath,['--check',f],{stdio:'inherit'});if(r.status)process.exit(r.status)}\" && node --check bin/codex-workbench && node --check scripts/pty-codex.js && node --check scripts/tui-pty-codex.js && node --check scripts/blessed-xterm-codex.js && node test/codex-bin.test.js && node test/blessed-compat.test.js && node test/session-sources.test.js && node test/smoke.js",
36
36
  "pty:codex": "node scripts/pty-codex.js",
37
37
  "tui:codex": "node scripts/tui-pty-codex.js",
38
38
  "xterm:codex": "node scripts/blessed-xterm-codex.js"
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ const Tput = require('blessed/lib/tput');
4
+
5
+ function patchBlessedTerminfo() {
6
+ if (Tput.prototype._codexWorkbenchPatched) return;
7
+
8
+ const compile = Tput.prototype._compile;
9
+ Tput.prototype._compile = function patchedCompile(info, key, str) {
10
+ if (key === 'plab_norm') return () => '';
11
+ return compile.call(this, info, key, str);
12
+ };
13
+
14
+ Tput.prototype._codexWorkbenchPatched = true;
15
+ }
16
+
17
+ patchBlessedTerminfo();
18
+
19
+ module.exports = {
20
+ patchBlessedTerminfo,
21
+ };
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const path = require('path');
4
+ require('./blessed-compat');
4
5
  const blessed = require('blessed');
5
6
  const { createChildDirectory, directoryNameError, listDirectories } = require('../model/directories');
6
7
 
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const path = require('path');
4
+ require('./blessed-compat');
4
5
  const blessed = require('blessed');
5
6
  const { printList, printShow } = require('../cli-output');
6
7
  const { deleteSessionFile } = require('../model/session-store');