@meet-ai/cli 0.0.20 → 0.0.21
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 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16803,10 +16803,10 @@ var init_command15 = __esm(() => {
|
|
|
16803
16803
|
});
|
|
16804
16804
|
|
|
16805
16805
|
// src/commands/setup-hooks/usecase.ts
|
|
16806
|
-
import { readFile, writeFile, mkdir } from "node:fs/promises";
|
|
16807
16806
|
import { existsSync as existsSync2 } from "node:fs";
|
|
16808
|
-
import {
|
|
16807
|
+
import { readFile, writeFile, mkdir } from "node:fs/promises";
|
|
16809
16808
|
import { homedir as homedir2 } from "node:os";
|
|
16809
|
+
import { resolve as resolve2, dirname as dirname2 } from "node:path";
|
|
16810
16810
|
function isMeetAiHook(entry) {
|
|
16811
16811
|
return entry.hooks?.some((h) => typeof h.command === "string" && h.command.startsWith("meet-ai hook ")) ?? false;
|
|
16812
16812
|
}
|
|
@@ -16848,6 +16848,16 @@ function mergeHooks(existing) {
|
|
|
16848
16848
|
}
|
|
16849
16849
|
}
|
|
16850
16850
|
}
|
|
16851
|
+
for (const event of Object.keys(result)) {
|
|
16852
|
+
const newMatchers = MEET_AI_HOOKS[event] ?? [];
|
|
16853
|
+
result[event] = result[event].filter((m) => {
|
|
16854
|
+
if (!isMeetAiHook(m))
|
|
16855
|
+
return true;
|
|
16856
|
+
return newMatchers.some((nm) => nm.matcher === m.matcher);
|
|
16857
|
+
});
|
|
16858
|
+
if (result[event].length === 0)
|
|
16859
|
+
delete result[event];
|
|
16860
|
+
}
|
|
16851
16861
|
return { merged: result, added };
|
|
16852
16862
|
}
|
|
16853
16863
|
function removeHooks(existing) {
|
|
@@ -16938,7 +16948,7 @@ var init_usecase14 = __esm(() => {
|
|
|
16938
16948
|
{
|
|
16939
16949
|
type: "command",
|
|
16940
16950
|
command: "meet-ai hook plan-review",
|
|
16941
|
-
timeout:
|
|
16951
|
+
timeout: 2147483
|
|
16942
16952
|
}
|
|
16943
16953
|
]
|
|
16944
16954
|
},
|
|
@@ -16953,7 +16963,7 @@ var init_usecase14 = __esm(() => {
|
|
|
16953
16963
|
]
|
|
16954
16964
|
},
|
|
16955
16965
|
{
|
|
16956
|
-
matcher: ".*",
|
|
16966
|
+
matcher: "^(?!ExitPlanMode$|AskUserQuestion$).*",
|
|
16957
16967
|
hooks: [
|
|
16958
16968
|
{
|
|
16959
16969
|
type: "command",
|
|
@@ -56040,7 +56050,7 @@ init_output();
|
|
|
56040
56050
|
var main = defineCommand({
|
|
56041
56051
|
meta: {
|
|
56042
56052
|
name: "meet-ai",
|
|
56043
|
-
version: "0.0.
|
|
56053
|
+
version: "0.0.21",
|
|
56044
56054
|
description: "CLI for meet-ai chat rooms — create rooms, send messages, and stream via WebSocket"
|
|
56045
56055
|
},
|
|
56046
56056
|
args: {
|