@meet-ai/cli 0.0.24 → 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 +15 -8
- 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,7 @@ 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
|
+
function routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, stdinPane, attachmentPaths) {
|
|
15349
15350
|
const entry = {
|
|
15350
15351
|
from: `meet-ai:${msg.sender}`,
|
|
15351
15352
|
text: msg.content,
|
|
@@ -15361,13 +15362,13 @@ function routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, attachmentPaths)
|
|
|
15361
15362
|
for (const target of targets) {
|
|
15362
15363
|
appendToInbox(`${inboxDir}/${target}.json`, entry);
|
|
15363
15364
|
}
|
|
15364
|
-
} else if (defaultInboxPath) {
|
|
15365
|
+
} else if (stdinPane) {} else if (defaultInboxPath) {
|
|
15365
15366
|
appendToInbox(defaultInboxPath, entry);
|
|
15366
15367
|
}
|
|
15367
15368
|
}
|
|
15368
15369
|
function listen(client, input) {
|
|
15369
15370
|
const parsed = ListenInput.parse(input);
|
|
15370
|
-
const { roomId, exclude, senderType, team, inbox } = parsed;
|
|
15371
|
+
const { roomId, exclude, senderType, team, inbox, stdinPane } = parsed;
|
|
15371
15372
|
const inboxDir = team ? `${process.env.HOME}/.claude/teams/${team}/inboxes` : null;
|
|
15372
15373
|
const defaultInboxPath = inboxDir && inbox ? `${inboxDir}/${inbox}.json` : null;
|
|
15373
15374
|
const teamDir = team ? `${process.env.HOME}/.claude/teams/${team}` : null;
|
|
@@ -15377,12 +15378,12 @@ function listen(client, input) {
|
|
|
15377
15378
|
const output = paths.length ? { ...msg, attachments: paths } : msg;
|
|
15378
15379
|
console.log(JSON.stringify(output));
|
|
15379
15380
|
if (inboxDir && teamDir)
|
|
15380
|
-
routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, paths);
|
|
15381
|
+
routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, stdinPane, paths);
|
|
15381
15382
|
});
|
|
15382
15383
|
} else {
|
|
15383
15384
|
console.log(JSON.stringify(msg));
|
|
15384
15385
|
if (inboxDir && teamDir)
|
|
15385
|
-
routeToInbox(msg, inboxDir, defaultInboxPath, teamDir);
|
|
15386
|
+
routeToInbox(msg, inboxDir, defaultInboxPath, teamDir, stdinPane);
|
|
15386
15387
|
}
|
|
15387
15388
|
};
|
|
15388
15389
|
const ws = client.listen(roomId, { exclude, senderType, onMessage });
|
|
@@ -15467,6 +15468,11 @@ var init_command6 = __esm(() => {
|
|
|
15467
15468
|
type: "string",
|
|
15468
15469
|
alias: "i",
|
|
15469
15470
|
description: "Inbox name for routing (requires --team)"
|
|
15471
|
+
},
|
|
15472
|
+
"stdin-pane": {
|
|
15473
|
+
type: "string",
|
|
15474
|
+
alias: "s",
|
|
15475
|
+
description: "tmux pane ID to inject non-@mention messages into via send-keys"
|
|
15470
15476
|
}
|
|
15471
15477
|
},
|
|
15472
15478
|
run({ args }) {
|
|
@@ -15477,7 +15483,8 @@ var init_command6 = __esm(() => {
|
|
|
15477
15483
|
exclude: args.exclude,
|
|
15478
15484
|
senderType: args["sender-type"],
|
|
15479
15485
|
team: args.team,
|
|
15480
|
-
inbox: args.inbox
|
|
15486
|
+
inbox: args.inbox,
|
|
15487
|
+
stdinPane: args["stdin-pane"]
|
|
15481
15488
|
});
|
|
15482
15489
|
} catch (error48) {
|
|
15483
15490
|
err(error48 instanceof Error ? error48.message : String(error48));
|
|
@@ -56301,7 +56308,7 @@ init_output();
|
|
|
56301
56308
|
var main = defineCommand({
|
|
56302
56309
|
meta: {
|
|
56303
56310
|
name: "meet-ai",
|
|
56304
|
-
version: "0.0.
|
|
56311
|
+
version: "0.0.26",
|
|
56305
56312
|
description: "CLI for meet-ai chat rooms — create rooms, send messages, and stream via WebSocket"
|
|
56306
56313
|
},
|
|
56307
56314
|
args: {
|