@codifycli/plugin-core 1.2.3-beta.2 → 1.2.3

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.
@@ -110,6 +110,8 @@ export class BackgroundPty {
110
110
  return new Promise(resolve => {
111
111
  this.basePty.write(' unset PS1;\n');
112
112
  this.basePty.write(' unset PS0;\n');
113
+ // zsh autocorrect prompts (e.g. "zsh: correct 'config' to '.config' [nyae]?") will hang
114
+ // the pty waiting for interactive input. Can't be disabled via env var; must unset the options explicitly.
113
115
  this.basePty.write(' unsetopt CORRECT CORRECT_ALL 2>/dev/null; true;\n');
114
116
  this.basePty.write(' echo setup complete\\"\n');
115
117
  const listener = this.basePty.onData((data) => {
@@ -66,6 +66,8 @@ export class SequentialPty {
66
66
  // Set to a really large value to prevent wrapping
67
67
  const initialCols = options?.disableWrapping ? 10_000 : process.stdout.columns ?? 80;
68
68
  const initialRows = process.stdout.rows ?? 24;
69
+ // zsh autocorrect prompts (e.g. "zsh: correct 'config' to '.config' [nyae]?") will hang
70
+ // the pty waiting for interactive input. Can't be disabled via env var; must unset the options explicitly.
69
71
  const disableAutocorrect = Utils.getShell() === Shell.ZSH ? 'unsetopt CORRECT CORRECT_ALL 2>/dev/null; ' : '';
70
72
  const wrappedCmd = `${disableAutocorrect}${cmd}`;
71
73
  const args = options?.interactive ? ['-i', '-c', wrappedCmd] : ['-c', wrappedCmd];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codifycli/plugin-core",
3
- "version": "1.2.3-beta.2",
3
+ "version": "1.2.3",
4
4
  "description": "TypeScript library for building Codify plugins to manage system resources (applications, CLI tools, settings) through infrastructure-as-code",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -135,6 +135,8 @@ export class BackgroundPty implements IPty {
135
135
  return new Promise(resolve => {
136
136
  this.basePty.write(' unset PS1;\n');
137
137
  this.basePty.write(' unset PS0;\n')
138
+ // zsh autocorrect prompts (e.g. "zsh: correct 'config' to '.config' [nyae]?") will hang
139
+ // the pty waiting for interactive input. Can't be disabled via env var; must unset the options explicitly.
138
140
  this.basePty.write(' unsetopt CORRECT CORRECT_ALL 2>/dev/null; true;\n')
139
141
  this.basePty.write(' echo setup complete\\"\n')
140
142
 
@@ -88,6 +88,8 @@ export class SequentialPty implements IPty {
88
88
  const initialCols = options?.disableWrapping ? 10_000 : process.stdout.columns ?? 80
89
89
  const initialRows = process.stdout.rows ?? 24;
90
90
 
91
+ // zsh autocorrect prompts (e.g. "zsh: correct 'config' to '.config' [nyae]?") will hang
92
+ // the pty waiting for interactive input. Can't be disabled via env var; must unset the options explicitly.
91
93
  const disableAutocorrect = Utils.getShell() === Shell.ZSH ? 'unsetopt CORRECT CORRECT_ALL 2>/dev/null; ' : '';
92
94
  const wrappedCmd = `${disableAutocorrect}${cmd}`;
93
95
  const args = options?.interactive ? ['-i', '-c', wrappedCmd] : ['-c', wrappedCmd]