opencode-feishu-plugin 0.2.2 → 0.2.3

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 +8 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -147167,21 +147167,26 @@ function ensureGatewayWatchdog(input) {
147167
147167
  existing.target = input.directory;
147168
147168
  input.log.debug("\u7F51\u5173\u770B\u95E8\u72D7\u76EE\u6807\u66F4\u65B0\u4E3A\u7F51\u5173 location", { directory: input.directory });
147169
147169
  }
147170
+ existing.state.probe = input.probe ?? ((dir) => touchLocationOverHttp(dir, { log: input.log }));
147171
+ existing.state.log = input.log;
147170
147172
  return false;
147171
147173
  }
147172
147174
  const setIntervalImpl = input.setIntervalImpl ?? setInterval;
147173
147175
  input.clearIntervalImpl ?? clearInterval;
147174
147176
  const setTimeoutImpl = input.setTimeoutImpl ?? setTimeout;
147175
147177
  input.clearTimeoutImpl ?? clearTimeout;
147176
- const probe = input.probe ?? ((dir) => touchLocationOverHttp(dir, { log: input.log }));
147177
147178
  const slot = {
147178
147179
  target: input.directory,
147180
+ state: {
147181
+ probe: input.probe ?? ((dir) => touchLocationOverHttp(dir, { log: input.log })),
147182
+ log: input.log
147183
+ },
147179
147184
  timer: void 0,
147180
147185
  initial: void 0
147181
147186
  };
147182
147187
  const run2 = () => {
147183
- void probe(slot.target).catch((err2) => {
147184
- input.log.debug("\u7F51\u5173\u770B\u95E8\u72D7\u63A2\u6D4B\u5F02\u5E38", { error: errorMessage(err2) });
147188
+ void slot.state.probe(slot.target).catch((err2) => {
147189
+ slot.state.log.debug("\u7F51\u5173\u770B\u95E8\u72D7\u63A2\u6D4B\u5F02\u5E38", { error: errorMessage(err2) });
147185
147190
  });
147186
147191
  };
147187
147192
  const delay3 = input.immediateDelayMs ?? 3e3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-feishu-plugin",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Feishu/Lark plugin for OpenCode V2 — single-user topics as sessions, in-card permission approvals, streaming cards. Minimal permissions, no public endpoint.",
5
5
  "type": "module",
6
6
  "main": "index.js",