@howler/cli 0.2.1 → 0.2.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.
Files changed (2) hide show
  1. package/dist/bin.js +13 -2
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1330,6 +1330,7 @@ __export(signal_exports, {
1330
1330
  });
1331
1331
  var init_signal = __esm({
1332
1332
  "../../packages/core/src/lib/signal/index.ts"() {
1333
+ "use strict";
1333
1334
  init_define_import_meta_env();
1334
1335
  init_db();
1335
1336
  init_store();
@@ -2224,6 +2225,7 @@ function getTranscriptCacheProvider() {
2224
2225
  var DB_NAME2, DB_VERSION2, dbInstance2, attachmentBlobUrlCache, transcriptCacheProvider;
2225
2226
  var init_cache = __esm({
2226
2227
  "../../packages/core/src/lib/audio/cache.ts"() {
2228
+ "use strict";
2227
2229
  init_define_import_meta_env();
2228
2230
  DB_NAME2 = "howler-audio-cache";
2229
2231
  DB_VERSION2 = 3;
@@ -31312,10 +31314,17 @@ function TwoPanel({ userId }) {
31312
31314
  setActivePanel("list");
31313
31315
  }, []);
31314
31316
  const handleInputSend = useCallback8((text) => {
31317
+ if (activePanel === "list") {
31318
+ if (text.trim().toLowerCase() === "/exit") {
31319
+ exit();
31320
+ return;
31321
+ }
31322
+ return;
31323
+ }
31315
31324
  if (activePanel === "conversation" && panelRef.current) {
31316
31325
  panelRef.current.send(text);
31317
31326
  }
31318
- }, [activePanel]);
31327
+ }, [activePanel, exit]);
31319
31328
  const handleFilterChange = useCallback8((text) => {
31320
31329
  setFilterText(text);
31321
31330
  }, []);
@@ -31434,7 +31443,9 @@ function TwoPanel({ userId }) {
31434
31443
  onSend: handleInputSend,
31435
31444
  prefix: "\u{1F50D} ",
31436
31445
  placeholder: "filter contacts...",
31437
- onChange: handleFilterChange
31446
+ onChange: handleFilterChange,
31447
+ onAutocompleteChange: setAutocompleteActive,
31448
+ onAutocompleteData: handleAutocompleteData
31438
31449
  }
31439
31450
  ) : /* @__PURE__ */ jsx4(
31440
31451
  MessageInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howler/cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "description": "Terminal UI client for Howler encrypted messaging",
6
6
  "bin": {