@meet-ai/cli 0.0.25 → 0.0.26
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.js +8 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15346,7 +15346,6 @@ var init_inbox_router = __esm(() => {
|
|
|
15346
15346
|
});
|
|
15347
15347
|
|
|
15348
15348
|
// src/commands/listen/usecase.ts
|
|
15349
|
-
import { execFileSync } from "node:child_process";
|
|
15350
15349
|
function routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, stdinPane, attachmentPaths) {
|
|
15351
15350
|
const entry = {
|
|
15352
15351
|
from: `meet-ai:${msg.sender}`,
|
|
@@ -15363,9 +15362,7 @@ function routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, stdinPane, attac
|
|
|
15363
15362
|
for (const target of targets) {
|
|
15364
15363
|
appendToInbox(`${inboxDir}/${target}.json`, entry);
|
|
15365
15364
|
}
|
|
15366
|
-
} else if (stdinPane) {
|
|
15367
|
-
execFileSync("tmux", ["send-keys", "-t", stdinPane, msg.content, "Enter"]);
|
|
15368
|
-
} else if (defaultInboxPath) {
|
|
15365
|
+
} else if (stdinPane) {} else if (defaultInboxPath) {
|
|
15369
15366
|
appendToInbox(defaultInboxPath, entry);
|
|
15370
15367
|
}
|
|
15371
15368
|
}
|
|
@@ -20853,7 +20850,7 @@ var init_wrap_ansi = __esm(() => {
|
|
|
20853
20850
|
|
|
20854
20851
|
// ../../node_modules/.bun/terminal-size@4.0.1/node_modules/terminal-size/index.js
|
|
20855
20852
|
import process4 from "node:process";
|
|
20856
|
-
import { execFileSync
|
|
20853
|
+
import { execFileSync } from "node:child_process";
|
|
20857
20854
|
import fs from "node:fs";
|
|
20858
20855
|
import tty from "node:tty";
|
|
20859
20856
|
function terminalSize() {
|
|
@@ -20879,7 +20876,7 @@ function terminalSize() {
|
|
|
20879
20876
|
}
|
|
20880
20877
|
return devTty() ?? tput() ?? resize() ?? fallback;
|
|
20881
20878
|
}
|
|
20882
|
-
var defaultColumns = 80, defaultRows = 24, exec2 = (command, arguments_, { shell, env: env2 } = {}) =>
|
|
20879
|
+
var defaultColumns = 80, defaultRows = 24, exec2 = (command, arguments_, { shell, env: env2 } = {}) => execFileSync(command, arguments_, {
|
|
20883
20880
|
encoding: "utf8",
|
|
20884
20881
|
stdio: ["ignore", "pipe", "ignore"],
|
|
20885
20882
|
timeout: 500,
|
|
@@ -54638,7 +54635,7 @@ var init_build2 = __esm(async () => {
|
|
|
54638
54635
|
});
|
|
54639
54636
|
|
|
54640
54637
|
// src/lib/tmux-client.ts
|
|
54641
|
-
import { execFileSync as
|
|
54638
|
+
import { execFileSync as execFileSync2, execFile as execFileCb } from "node:child_process";
|
|
54642
54639
|
function validateSessionName(name) {
|
|
54643
54640
|
if (!SESSION_NAME_RE.test(name) || name.length > 256) {
|
|
54644
54641
|
throw new Error(`Invalid tmux session name: ${name}`);
|
|
@@ -54662,7 +54659,7 @@ class TmuxClient {
|
|
|
54662
54659
|
}
|
|
54663
54660
|
checkAvailability() {
|
|
54664
54661
|
try {
|
|
54665
|
-
const result =
|
|
54662
|
+
const result = execFileSync2("tmux", ["-V"], {
|
|
54666
54663
|
encoding: "utf8",
|
|
54667
54664
|
timeout: 5000,
|
|
54668
54665
|
stdio: ["pipe", "pipe", "pipe"]
|
|
@@ -54793,7 +54790,7 @@ class TmuxClient {
|
|
|
54793
54790
|
attachSession(name) {
|
|
54794
54791
|
validateSessionName(name);
|
|
54795
54792
|
try {
|
|
54796
|
-
|
|
54793
|
+
execFileSync2("tmux", ["-L", this.server, "attach", "-t", name], {
|
|
54797
54794
|
stdio: "inherit",
|
|
54798
54795
|
timeout: 0
|
|
54799
54796
|
});
|
|
@@ -54804,7 +54801,7 @@ class TmuxClient {
|
|
|
54804
54801
|
}
|
|
54805
54802
|
exec(args) {
|
|
54806
54803
|
try {
|
|
54807
|
-
const output =
|
|
54804
|
+
const output = execFileSync2("tmux", args, {
|
|
54808
54805
|
encoding: "utf8",
|
|
54809
54806
|
timeout: 5000,
|
|
54810
54807
|
stdio: ["pipe", "pipe", "pipe"]
|
|
@@ -56311,7 +56308,7 @@ init_output();
|
|
|
56311
56308
|
var main = defineCommand({
|
|
56312
56309
|
meta: {
|
|
56313
56310
|
name: "meet-ai",
|
|
56314
|
-
version: "0.0.
|
|
56311
|
+
version: "0.0.26",
|
|
56315
56312
|
description: "CLI for meet-ai chat rooms — create rooms, send messages, and stream via WebSocket"
|
|
56316
56313
|
},
|
|
56317
56314
|
args: {
|