@meet-ai/cli 0.0.23 → 0.0.25

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/index.js +24 -28
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15282,7 +15282,8 @@ var init_schema6 = __esm(() => {
15282
15282
  exclude: exports_external.string().optional(),
15283
15283
  senderType: exports_external.string().optional(),
15284
15284
  team: exports_external.string().optional(),
15285
- inbox: exports_external.string().optional()
15285
+ inbox: exports_external.string().optional(),
15286
+ stdinPane: exports_external.string().optional()
15286
15287
  }).refine((data) => !(data.inbox && !data.team), {
15287
15288
  message: "--inbox requires --team",
15288
15289
  path: ["inbox"]
@@ -15345,7 +15346,8 @@ var init_inbox_router = __esm(() => {
15345
15346
  });
15346
15347
 
15347
15348
  // src/commands/listen/usecase.ts
15348
- function routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, attachmentPaths) {
15349
+ import { execFileSync } from "node:child_process";
15350
+ function routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, stdinPane, attachmentPaths) {
15349
15351
  const entry = {
15350
15352
  from: `meet-ai:${msg.sender}`,
15351
15353
  text: msg.content,
@@ -15361,13 +15363,15 @@ function routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, attachmentPaths)
15361
15363
  for (const target of targets) {
15362
15364
  appendToInbox(`${inboxDir}/${target}.json`, entry);
15363
15365
  }
15366
+ } else if (stdinPane) {
15367
+ execFileSync("tmux", ["send-keys", "-t", stdinPane, msg.content, "Enter"]);
15364
15368
  } else if (defaultInboxPath) {
15365
15369
  appendToInbox(defaultInboxPath, entry);
15366
15370
  }
15367
15371
  }
15368
15372
  function listen(client, input) {
15369
15373
  const parsed = ListenInput.parse(input);
15370
- const { roomId, exclude, senderType, team, inbox } = parsed;
15374
+ const { roomId, exclude, senderType, team, inbox, stdinPane } = parsed;
15371
15375
  const inboxDir = team ? `${process.env.HOME}/.claude/teams/${team}/inboxes` : null;
15372
15376
  const defaultInboxPath = inboxDir && inbox ? `${inboxDir}/${inbox}.json` : null;
15373
15377
  const teamDir = team ? `${process.env.HOME}/.claude/teams/${team}` : null;
@@ -15377,12 +15381,12 @@ function listen(client, input) {
15377
15381
  const output = paths.length ? { ...msg, attachments: paths } : msg;
15378
15382
  console.log(JSON.stringify(output));
15379
15383
  if (inboxDir && teamDir)
15380
- routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, paths);
15384
+ routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, stdinPane, paths);
15381
15385
  });
15382
15386
  } else {
15383
15387
  console.log(JSON.stringify(msg));
15384
15388
  if (inboxDir && teamDir)
15385
- routeToInbox(msg, inboxDir, defaultInboxPath, teamDir);
15389
+ routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, stdinPane);
15386
15390
  }
15387
15391
  };
15388
15392
  const ws = client.listen(roomId, { exclude, senderType, onMessage });
@@ -15467,6 +15471,11 @@ var init_command6 = __esm(() => {
15467
15471
  type: "string",
15468
15472
  alias: "i",
15469
15473
  description: "Inbox name for routing (requires --team)"
15474
+ },
15475
+ "stdin-pane": {
15476
+ type: "string",
15477
+ alias: "s",
15478
+ description: "tmux pane ID to inject non-@mention messages into via send-keys"
15470
15479
  }
15471
15480
  },
15472
15481
  run({ args }) {
@@ -15477,7 +15486,8 @@ var init_command6 = __esm(() => {
15477
15486
  exclude: args.exclude,
15478
15487
  senderType: args["sender-type"],
15479
15488
  team: args.team,
15480
- inbox: args.inbox
15489
+ inbox: args.inbox,
15490
+ stdinPane: args["stdin-pane"]
15481
15491
  });
15482
15492
  } catch (error48) {
15483
15493
  err(error48 instanceof Error ? error48.message : String(error48));
@@ -17150,9 +17160,6 @@ async function listCommands(options) {
17150
17160
  const userClaudeDir = options._userClaudeDir ?? join3(homedir3(), ".claude");
17151
17161
  const pluginsFile = options._pluginsFile ?? join3(homedir3(), ".claude", "plugins", "installed_plugins.json");
17152
17162
  const results = [];
17153
- for (const cmd of BUILT_IN_COMMANDS) {
17154
- results.push({ ...cmd, type: "command", source: "built-in", scope: "user" });
17155
- }
17156
17163
  const userSkills = await readSkillsFromDir(userClaudeDir, "standalone", "user");
17157
17164
  results.push(...userSkills);
17158
17165
  const projectClaudeDir = join3(projectPath, ".claude");
@@ -17185,18 +17192,7 @@ async function listCommands(options) {
17185
17192
  }
17186
17193
  return results;
17187
17194
  }
17188
- var BUILT_IN_COMMANDS;
17189
- var init_usecase15 = __esm(() => {
17190
- BUILT_IN_COMMANDS = [
17191
- { name: "help", description: "Get help with using Claude Code" },
17192
- { name: "model", description: "Switch AI model" },
17193
- { name: "clear", description: "Clear conversation history" },
17194
- { name: "compact", description: "Compact conversation context" },
17195
- { name: "fast", description: "Toggle fast mode" },
17196
- { name: "cost", description: "Show usage costs" },
17197
- { name: "resume", description: "Resume previous session" }
17198
- ];
17199
- });
17195
+ var init_usecase15 = () => {};
17200
17196
 
17201
17197
  // src/commands/list-commands/command.ts
17202
17198
  var exports_command17 = {};
@@ -20857,7 +20853,7 @@ var init_wrap_ansi = __esm(() => {
20857
20853
 
20858
20854
  // ../../node_modules/.bun/terminal-size@4.0.1/node_modules/terminal-size/index.js
20859
20855
  import process4 from "node:process";
20860
- import { execFileSync } from "node:child_process";
20856
+ import { execFileSync as execFileSync2 } from "node:child_process";
20861
20857
  import fs from "node:fs";
20862
20858
  import tty from "node:tty";
20863
20859
  function terminalSize() {
@@ -20883,7 +20879,7 @@ function terminalSize() {
20883
20879
  }
20884
20880
  return devTty() ?? tput() ?? resize() ?? fallback;
20885
20881
  }
20886
- var defaultColumns = 80, defaultRows = 24, exec2 = (command, arguments_, { shell, env: env2 } = {}) => execFileSync(command, arguments_, {
20882
+ var defaultColumns = 80, defaultRows = 24, exec2 = (command, arguments_, { shell, env: env2 } = {}) => execFileSync2(command, arguments_, {
20887
20883
  encoding: "utf8",
20888
20884
  stdio: ["ignore", "pipe", "ignore"],
20889
20885
  timeout: 500,
@@ -54642,7 +54638,7 @@ var init_build2 = __esm(async () => {
54642
54638
  });
54643
54639
 
54644
54640
  // src/lib/tmux-client.ts
54645
- import { execFileSync as execFileSync2, execFile as execFileCb } from "node:child_process";
54641
+ import { execFileSync as execFileSync3, execFile as execFileCb } from "node:child_process";
54646
54642
  function validateSessionName(name) {
54647
54643
  if (!SESSION_NAME_RE.test(name) || name.length > 256) {
54648
54644
  throw new Error(`Invalid tmux session name: ${name}`);
@@ -54666,7 +54662,7 @@ class TmuxClient {
54666
54662
  }
54667
54663
  checkAvailability() {
54668
54664
  try {
54669
- const result = execFileSync2("tmux", ["-V"], {
54665
+ const result = execFileSync3("tmux", ["-V"], {
54670
54666
  encoding: "utf8",
54671
54667
  timeout: 5000,
54672
54668
  stdio: ["pipe", "pipe", "pipe"]
@@ -54797,7 +54793,7 @@ class TmuxClient {
54797
54793
  attachSession(name) {
54798
54794
  validateSessionName(name);
54799
54795
  try {
54800
- execFileSync2("tmux", ["-L", this.server, "attach", "-t", name], {
54796
+ execFileSync3("tmux", ["-L", this.server, "attach", "-t", name], {
54801
54797
  stdio: "inherit",
54802
54798
  timeout: 0
54803
54799
  });
@@ -54808,7 +54804,7 @@ class TmuxClient {
54808
54804
  }
54809
54805
  exec(args) {
54810
54806
  try {
54811
- const output = execFileSync2("tmux", args, {
54807
+ const output = execFileSync3("tmux", args, {
54812
54808
  encoding: "utf8",
54813
54809
  timeout: 5000,
54814
54810
  stdio: ["pipe", "pipe", "pipe"]
@@ -56315,7 +56311,7 @@ init_output();
56315
56311
  var main = defineCommand({
56316
56312
  meta: {
56317
56313
  name: "meet-ai",
56318
- version: "0.0.23",
56314
+ version: "0.0.25",
56319
56315
  description: "CLI for meet-ai chat rooms — create rooms, send messages, and stream via WebSocket"
56320
56316
  },
56321
56317
  args: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meet-ai/cli",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "CLI for meet-ai chat rooms — create rooms, send messages, and stream via WebSocket",
5
5
  "keywords": [
6
6
  "chat",