happy-coder 0.9.0-4 → 0.9.0-6

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/index.cjs CHANGED
@@ -1515,6 +1515,7 @@ async function claudeRemote(opts) {
1515
1515
  }
1516
1516
  isCompactCommand = false;
1517
1517
  }
1518
+ opts.onReady();
1518
1519
  const next = await opts.nextMessage();
1519
1520
  if (!next) {
1520
1521
  messages.end();
@@ -2656,6 +2657,16 @@ async function claudeRemoteLauncher(session) {
2656
2657
  types$1.logger.debug("[remote]: Session reset");
2657
2658
  session.clearSessionId();
2658
2659
  },
2660
+ onReady: () => {
2661
+ if (!pending && session.queue.size() === 0) {
2662
+ session.client.sendSessionEvent({ type: "ready" });
2663
+ session.api.push().sendToAllDevices(
2664
+ "It's ready!",
2665
+ `Claude is waiting for your command`,
2666
+ { sessionId: session.client.sessionId }
2667
+ );
2668
+ }
2669
+ },
2659
2670
  signal: abortController.signal
2660
2671
  });
2661
2672
  if (!exitReason && abortController.signal.aborted) {
@@ -2754,7 +2765,7 @@ async function loop(opts) {
2754
2765
  }
2755
2766
 
2756
2767
  var name = "happy-coder";
2757
- var version = "0.9.0-4";
2768
+ var version = "0.9.0-6";
2758
2769
  var description = "Claude Code session sharing CLI";
2759
2770
  var author = "Kirill Dubovitskiy";
2760
2771
  var license = "MIT";
package/dist/index.mjs CHANGED
@@ -1494,6 +1494,7 @@ async function claudeRemote(opts) {
1494
1494
  }
1495
1495
  isCompactCommand = false;
1496
1496
  }
1497
+ opts.onReady();
1497
1498
  const next = await opts.nextMessage();
1498
1499
  if (!next) {
1499
1500
  messages.end();
@@ -2635,6 +2636,16 @@ async function claudeRemoteLauncher(session) {
2635
2636
  logger.debug("[remote]: Session reset");
2636
2637
  session.clearSessionId();
2637
2638
  },
2639
+ onReady: () => {
2640
+ if (!pending && session.queue.size() === 0) {
2641
+ session.client.sendSessionEvent({ type: "ready" });
2642
+ session.api.push().sendToAllDevices(
2643
+ "It's ready!",
2644
+ `Claude is waiting for your command`,
2645
+ { sessionId: session.client.sessionId }
2646
+ );
2647
+ }
2648
+ },
2638
2649
  signal: abortController.signal
2639
2650
  });
2640
2651
  if (!exitReason && abortController.signal.aborted) {
@@ -2733,7 +2744,7 @@ async function loop(opts) {
2733
2744
  }
2734
2745
 
2735
2746
  var name = "happy-coder";
2736
- var version = "0.9.0-4";
2747
+ var version = "0.9.0-6";
2737
2748
  var description = "Claude Code session sharing CLI";
2738
2749
  var author = "Kirill Dubovitskiy";
2739
2750
  var license = "MIT";
package/dist/lib.d.cts CHANGED
@@ -319,6 +319,8 @@ declare class ApiSessionClient extends EventEmitter {
319
319
  } | {
320
320
  type: 'permission-mode-changed';
321
321
  mode: 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan';
322
+ } | {
323
+ type: 'ready';
322
324
  }, id?: string): void;
323
325
  /**
324
326
  * Send a ping message to keep the connection alive
package/dist/lib.d.mts CHANGED
@@ -319,6 +319,8 @@ declare class ApiSessionClient extends EventEmitter {
319
319
  } | {
320
320
  type: 'permission-mode-changed';
321
321
  mode: 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan';
322
+ } | {
323
+ type: 'ready';
322
324
  }, id?: string): void;
323
325
  /**
324
326
  * Send a ping message to keep the connection alive
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "happy-coder",
3
- "version": "0.9.0-4",
3
+ "version": "0.9.0-6",
4
4
  "description": "Claude Code session sharing CLI",
5
5
  "author": "Kirill Dubovitskiy",
6
6
  "license": "MIT",