@meet-ai/cli 0.0.22 → 0.0.23

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 +12 -33
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -17233,31 +17233,15 @@ var init_command17 = __esm(() => {
17233
17233
  });
17234
17234
  });
17235
17235
 
17236
- // src/commands/send-commands/schema.ts
17237
- var SendCommandsInput;
17238
- var init_schema10 = __esm(() => {
17239
- init_zod();
17240
- SendCommandsInput = exports_external.object({
17241
- roomId: exports_external.string().min(1, "Room ID is required").regex(/^[a-zA-Z0-9_-]+$/, "Room ID must contain only alphanumeric characters, hyphens, and underscores"),
17242
- payload: exports_external.string().min(1, "JSON payload is required").refine((val) => {
17243
- try {
17244
- JSON.parse(val);
17245
- return true;
17246
- } catch {
17247
- return false;
17248
- }
17249
- }, { message: "Payload must be valid JSON" })
17250
- });
17251
- });
17252
-
17253
17236
  // src/commands/send-commands/usecase.ts
17254
17237
  async function sendCommands(client, input) {
17255
- const parsed = SendCommandsInput.parse(input);
17256
- await client.sendCommands(parsed.roomId, parsed.payload);
17238
+ const entries = await listCommands({ projectPath: input.projectPath });
17239
+ const payload = JSON.stringify({ commands: entries });
17240
+ await client.sendCommands(input.roomId, payload);
17257
17241
  ok("Commands sent");
17258
17242
  }
17259
17243
  var init_usecase16 = __esm(() => {
17260
- init_schema10();
17244
+ init_usecase15();
17261
17245
  init_output();
17262
17246
  });
17263
17247
 
@@ -17283,24 +17267,19 @@ var init_command18 = __esm(() => {
17283
17267
  description: "Room ID to send commands to",
17284
17268
  required: true
17285
17269
  },
17286
- payload: {
17287
- type: "positional",
17288
- description: "JSON commands payload",
17270
+ "project-path": {
17271
+ type: "string",
17272
+ description: "Path to the project (defaults to cwd)",
17289
17273
  required: false
17290
17274
  }
17291
17275
  },
17292
17276
  async run({ args }) {
17293
17277
  try {
17294
17278
  const client = getClient();
17295
- let payload = args.payload;
17296
- if (!payload) {
17297
- const chunks = [];
17298
- for await (const chunk of process.stdin) {
17299
- chunks.push(chunk);
17300
- }
17301
- payload = Buffer.concat(chunks).toString("utf8").trim();
17302
- }
17303
- await sendCommands(client, { roomId: args.roomId, payload });
17279
+ await sendCommands(client, {
17280
+ roomId: args.roomId,
17281
+ projectPath: args["project-path"]
17282
+ });
17304
17283
  } catch (error48) {
17305
17284
  err(error48 instanceof Error ? error48.message : String(error48));
17306
17285
  process.exit(1);
@@ -56336,7 +56315,7 @@ init_output();
56336
56315
  var main = defineCommand({
56337
56316
  meta: {
56338
56317
  name: "meet-ai",
56339
- version: "0.0.22",
56318
+ version: "0.0.23",
56340
56319
  description: "CLI for meet-ai chat rooms — create rooms, send messages, and stream via WebSocket"
56341
56320
  },
56342
56321
  args: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meet-ai/cli",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "CLI for meet-ai chat rooms — create rooms, send messages, and stream via WebSocket",
5
5
  "keywords": [
6
6
  "chat",
@@ -12,11 +12,11 @@
12
12
  "license": "MIT",
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "https://github.com/SoftWare-A-G/meet-ai",
15
+ "url": "git+https://github.com/SoftWare-A-G/meet-ai.git",
16
16
  "directory": "packages/cli"
17
17
  },
18
18
  "bin": {
19
- "meet-ai": "./dist/index.js"
19
+ "meet-ai": "dist/index.js"
20
20
  },
21
21
  "files": [
22
22
  "dist"