claude-yes 1.14.1 → 1.14.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/dist/cli.js CHANGED
@@ -5390,7 +5390,7 @@ async function claudeYes({
5390
5390
  const ttr = new TerminalTextRender;
5391
5391
  const idleWatcher = createIdleWatcher(async () => {
5392
5392
  if (exitOnIdle) {
5393
- if (ttr.render().match(/esc to interrupt|to run in background/)) {
5393
+ if (ttr.render().replace(/\s+/g, " ").match(/esc to interrupt|to run in background/)) {
5394
5394
  console.warn("[CLAUDE-YES] Claude is idle, but seems still working, not exiting yet");
5395
5395
  } else {
5396
5396
  console.warn("[CLAUDE-YES] Claude is idle, exiting...");
package/dist/index.js CHANGED
@@ -5170,7 +5170,7 @@ async function claudeYes({
5170
5170
  const ttr = new TerminalTextRender;
5171
5171
  const idleWatcher = createIdleWatcher(async () => {
5172
5172
  if (exitOnIdle) {
5173
- if (ttr.render().match(/esc to interrupt|to run in background/)) {
5173
+ if (ttr.render().replace(/\s+/g, " ").match(/esc to interrupt|to run in background/)) {
5174
5174
  console.warn("[CLAUDE-YES] Claude is idle, but seems still working, not exiting yet");
5175
5175
  } else {
5176
5176
  console.warn("[CLAUDE-YES] Claude is idle, exiting...");
package/index.ts CHANGED
@@ -146,7 +146,12 @@ export default async function claudeYes({
146
146
  const ttr = new TerminalTextRender();
147
147
  const idleWatcher = createIdleWatcher(async () => {
148
148
  if (exitOnIdle) {
149
- if (ttr.render().match(/esc to interrupt|to run in background/)) {
149
+ if (
150
+ ttr
151
+ .render()
152
+ .replace(/\s+/g, ' ')
153
+ .match(/esc to interrupt|to run in background/)
154
+ ) {
150
155
  console.warn(
151
156
  '[CLAUDE-YES] Claude is idle, but seems still working, not exiting yet'
152
157
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-yes",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "homepage": "https://github.com/snomiao/claude-yes#readme",
5
5
  "license": "MIT",
6
6
  "author": "snomiao <snomiao@gmail.com>",