autosnippet 3.2.6 → 3.2.7

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.
@@ -59,6 +59,7 @@ router.post(
59
59
  if (result.success === false) {
60
60
  return res.status(400).json(result);
61
61
  }
62
+
62
63
  return res.json(result);
63
64
  } catch (err) {
64
65
  return res.status(400).json({
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Migration 003 — Remote Command Queue
3
+ *
4
+ * 飞书/Telegram 等 IM 远程指令队列表
5
+ * VSCode 扩展轮询 pending → 注入 Copilot Chat → 回写结果
6
+ */
7
+ export default function migrate(db) {
8
+ db.exec(`
9
+ CREATE TABLE IF NOT EXISTS remote_commands (
10
+ id TEXT PRIMARY KEY,
11
+ source TEXT NOT NULL DEFAULT 'lark',
12
+ chat_id TEXT,
13
+ message_id TEXT,
14
+ user_id TEXT,
15
+ user_name TEXT,
16
+ command TEXT NOT NULL,
17
+ status TEXT NOT NULL DEFAULT 'pending',
18
+ result TEXT,
19
+ created_at INTEGER NOT NULL,
20
+ claimed_at INTEGER,
21
+ completed_at INTEGER
22
+ );
23
+
24
+ CREATE INDEX IF NOT EXISTS idx_remote_commands_status ON remote_commands(status);
25
+ CREATE INDEX IF NOT EXISTS idx_remote_commands_created ON remote_commands(created_at);
26
+ `);
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autosnippet",
3
- "version": "3.2.6",
3
+ "version": "3.2.7",
4
4
  "description": "Extract code patterns into a knowledge base for AI coding assistants",
5
5
  "type": "module",
6
6
  "main": "lib/bootstrap.js",
@@ -72,7 +72,18 @@
72
72
  "url": "git+https://github.com/GxFn/AutoSnippet.git"
73
73
  },
74
74
  "dependencies": {
75
+ "@larksuiteoapi/node-sdk": "^1.59.0",
75
76
  "@modelcontextprotocol/sdk": "^1.25.3",
77
+ "@protobufjs/aspromise": "^1.1.2",
78
+ "@protobufjs/base64": "^1.1.2",
79
+ "@protobufjs/codegen": "^2.0.4",
80
+ "@protobufjs/eventemitter": "^1.1.0",
81
+ "@protobufjs/fetch": "^1.1.0",
82
+ "@protobufjs/float": "^1.0.2",
83
+ "@protobufjs/inquire": "^1.1.0",
84
+ "@protobufjs/path": "^1.1.2",
85
+ "@protobufjs/pool": "^1.1.0",
86
+ "@protobufjs/utf8": "^1.1.0",
76
87
  "better-sqlite3": "^9.2.2",
77
88
  "chokidar": "^3.6.0",
78
89
  "commander": "^11.1.0",