@teamclaw/feishu-agent 1.0.10 → 1.0.11

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/cli.js +8 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -3322,8 +3322,8 @@ function createCalendarCommands(program2, config) {
3322
3322
  program2.command("list").description("List all calendars").action(async () => {
3323
3323
  await handleListCalendars(config);
3324
3324
  });
3325
- program2.command("events").description("List events in a calendar").option("--calendar-id <string>", "Specify calendar ID").action(async (options) => {
3326
- await handleListEvents(config, options.calendarId);
3325
+ program2.command("events").description("List events in a calendar").option("--calendar-id <string>", "Specify calendar ID").option("--start <string>", "Filter events starting after this time").option("--end <string>", "Filter events ending before this time").action(async (options) => {
3326
+ await handleListEvents(config, options.calendarId, options.start, options.end);
3327
3327
  });
3328
3328
  program2.command("create").description("Create a new event").requiredOption("--summary <string>", "Event title").requiredOption("--start <string>", "Event start time").requiredOption("--end <string>", "Event end time").option("--attendee <ids...>", "User IDs (union_id) to invite").option("--attendee-name <names...>", "Contact names to invite").option("--calendar-id <string>", "Specify calendar ID").action(async (options) => {
3329
3329
  await handleCreateEvent(config, options);
@@ -3390,7 +3390,7 @@ async function handleListCalendars(config) {
3390
3390
  console.log(`Tip: Use --calendar-id "${primary[0].calendar_id}" to list events.`);
3391
3391
  }
3392
3392
  }
3393
- async function handleListEvents(config, calendarId) {
3393
+ async function handleListEvents(config, calendarId, timeMin, timeMax) {
3394
3394
  if (!config.appId || !config.appSecret || !config.userAccessToken) {
3395
3395
  console.error("Error: Authorization required. Run 'feishu-agent auth'.");
3396
3396
  process.exit(1);
@@ -3414,7 +3414,10 @@ async function handleListEvents(config, calendarId) {
3414
3414
  \uD83D\uDCC5 Events
3415
3415
  `);
3416
3416
  console.log("=".repeat(60));
3417
- const events = await calendarManager.listEvents(calendarId);
3417
+ const events = await calendarManager.listEvents(calendarId, {
3418
+ startTime: timeMin,
3419
+ endTime: timeMax
3420
+ });
3418
3421
  if (!events.items || events.items.length === 0) {
3419
3422
  console.log("No events found.");
3420
3423
  return;
@@ -3770,7 +3773,7 @@ async function handleSearch(config, query) {
3770
3773
  // package.json
3771
3774
  var package_default = {
3772
3775
  name: "@teamclaw/feishu-agent",
3773
- version: "1.0.10",
3776
+ version: "1.0.11",
3774
3777
  description: "Feishu Agent CLI for AI assistants",
3775
3778
  type: "module",
3776
3779
  private: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamclaw/feishu-agent",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Feishu Agent CLI for AI assistants",
5
5
  "type": "module",
6
6
  "private": false,