@lih-x-x/kmr 1.0.68 → 1.0.69
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.
|
@@ -8,8 +8,7 @@ var JsonStore = class {
|
|
|
8
8
|
}
|
|
9
9
|
dataDir;
|
|
10
10
|
async save(record) {
|
|
11
|
-
const
|
|
12
|
-
const fileName = `${date}_${record.id}.json`;
|
|
11
|
+
const fileName = record.id.startsWith("__") ? `${record.id}.json` : `${record.summary.date || (/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}_${record.id}.json`;
|
|
13
12
|
const filePath = path.join(this.dataDir, fileName);
|
|
14
13
|
fs.writeFileSync(filePath, JSON.stringify(record, null, 2), "utf-8");
|
|
15
14
|
return filePath;
|
package/dist/cli.js
CHANGED
|
@@ -6,9 +6,9 @@ async function checkUpdate() {
|
|
|
6
6
|
try {
|
|
7
7
|
const res = await fetch(`https://registry.npmjs.org/${"@lih-x-x/kmr"}/latest`, { signal: AbortSignal.timeout(3e3) });
|
|
8
8
|
const data = await res.json();
|
|
9
|
-
if (data.version && data.version !== "1.0.
|
|
9
|
+
if (data.version && data.version !== "1.0.69") {
|
|
10
10
|
console.log(`
|
|
11
|
-
\u2B06\uFE0F \u65B0\u7248\u672C\u53EF\u7528: ${"1.0.
|
|
11
|
+
\u2B06\uFE0F \u65B0\u7248\u672C\u53EF\u7528: ${"1.0.69"} \u2192 ${data.version}`);
|
|
12
12
|
console.log(` \u8FD0\u884C npm install -g ${"@lih-x-x/kmr"} \u66F4\u65B0
|
|
13
13
|
`);
|
|
14
14
|
}
|
|
@@ -56,10 +56,10 @@ KMR\uFF08Key Meetings Record\uFF09\u2014 \u4F1A\u8BAE\u6316\u6398\u673A
|
|
|
56
56
|
kmr --help \u663E\u793A\u5E2E\u52A9
|
|
57
57
|
`);
|
|
58
58
|
} else if (command === "--version" || command === "-v") {
|
|
59
|
-
console.log("1.0.
|
|
59
|
+
console.log("1.0.69");
|
|
60
60
|
} else if (command === "list") {
|
|
61
61
|
const { loadConfig } = await import("./config-WIQGW5OC.js");
|
|
62
|
-
const { JsonStore } = await import("./jsonStore-
|
|
62
|
+
const { JsonStore } = await import("./jsonStore-I6ATOECA.js");
|
|
63
63
|
const { createLarkClient } = await import("./client-DFBBDD77.js");
|
|
64
64
|
const { TaskCreator } = await import("./taskCreator-3W5BJ4Z7.js");
|
|
65
65
|
const { syncTaskStatuses } = await import("./sync-FJA2I3HE.js");
|
|
@@ -82,7 +82,7 @@ KMR\uFF08Key Meetings Record\uFF09\u2014 \u4F1A\u8BAE\u6316\u6398\u673A
|
|
|
82
82
|
process.exit(1);
|
|
83
83
|
}
|
|
84
84
|
const { loadConfig } = await import("./config-WIQGW5OC.js");
|
|
85
|
-
const { JsonStore } = await import("./jsonStore-
|
|
85
|
+
const { JsonStore } = await import("./jsonStore-I6ATOECA.js");
|
|
86
86
|
const { createLarkClient } = await import("./client-DFBBDD77.js");
|
|
87
87
|
const { TaskCreator } = await import("./taskCreator-3W5BJ4Z7.js");
|
|
88
88
|
const { syncTaskStatuses } = await import("./sync-FJA2I3HE.js");
|
|
@@ -99,7 +99,7 @@ KMR\uFF08Key Meetings Record\uFF09\u2014 \u4F1A\u8BAE\u6316\u6398\u673A
|
|
|
99
99
|
console.log(JSON.stringify(record, null, 2));
|
|
100
100
|
} else if (command === "task") {
|
|
101
101
|
const { loadConfig } = await import("./config-WIQGW5OC.js");
|
|
102
|
-
const { JsonStore } = await import("./jsonStore-
|
|
102
|
+
const { JsonStore } = await import("./jsonStore-I6ATOECA.js");
|
|
103
103
|
const { createLarkClient } = await import("./client-DFBBDD77.js");
|
|
104
104
|
const { TaskCreator } = await import("./taskCreator-3W5BJ4Z7.js");
|
|
105
105
|
const { syncTaskStatuses } = await import("./sync-FJA2I3HE.js");
|
|
@@ -130,7 +130,7 @@ KMR\uFF08Key Meetings Record\uFF09\u2014 \u4F1A\u8BAE\u6316\u6398\u673A
|
|
|
130
130
|
process.exit(1);
|
|
131
131
|
}
|
|
132
132
|
const { loadConfig } = await import("./config-WIQGW5OC.js");
|
|
133
|
-
const { JsonStore } = await import("./jsonStore-
|
|
133
|
+
const { JsonStore } = await import("./jsonStore-I6ATOECA.js");
|
|
134
134
|
const store = new JsonStore(loadConfig().storage.dataDir);
|
|
135
135
|
const ok = await store.delete(id);
|
|
136
136
|
console.log(ok ? `\u2705 \u5DF2\u5220\u9664: ${id}` : `\u274C \u672A\u627E\u5230: ${id}`);
|
|
@@ -164,7 +164,7 @@ KMR\uFF08Key Meetings Record\uFF09\u2014 \u4F1A\u8BAE\u6316\u6398\u673A
|
|
|
164
164
|
const { createLarkClient } = await import("./client-DFBBDD77.js");
|
|
165
165
|
const { TaskCreator } = await import("./taskCreator-3W5BJ4Z7.js");
|
|
166
166
|
const { UserResolver } = await import("./userResolver-F76R3ZMT.js");
|
|
167
|
-
const { JsonStore } = await import("./jsonStore-
|
|
167
|
+
const { JsonStore } = await import("./jsonStore-I6ATOECA.js");
|
|
168
168
|
const config = loadConfig();
|
|
169
169
|
const client = createLarkClient(config);
|
|
170
170
|
const taskCreator = new TaskCreator(client);
|
|
@@ -267,7 +267,7 @@ KMR\uFF08Key Meetings Record\uFF09\u2014 \u4F1A\u8BAE\u6316\u6398\u673A
|
|
|
267
267
|
const { createLarkClient } = await import("./client-DFBBDD77.js");
|
|
268
268
|
const { TaskCreator } = await import("./taskCreator-3W5BJ4Z7.js");
|
|
269
269
|
const { UserResolver } = await import("./userResolver-F76R3ZMT.js");
|
|
270
|
-
const { JsonStore } = await import("./jsonStore-
|
|
270
|
+
const { JsonStore } = await import("./jsonStore-I6ATOECA.js");
|
|
271
271
|
const config = loadConfig();
|
|
272
272
|
const client = createLarkClient(config);
|
|
273
273
|
const taskCreator = new TaskCreator(client);
|
|
@@ -316,7 +316,7 @@ KMR\uFF08Key Meetings Record\uFF09\u2014 \u4F1A\u8BAE\u6316\u6398\u673A
|
|
|
316
316
|
const { loadConfig } = await import("./config-WIQGW5OC.js");
|
|
317
317
|
const { ClaudeCodeProvider } = await import("./claudeCode-AVQOOWP5.js");
|
|
318
318
|
const { QueryHandler } = await import("./handler-46CQQIA2.js");
|
|
319
|
-
const { JsonStore } = await import("./jsonStore-
|
|
319
|
+
const { JsonStore } = await import("./jsonStore-I6ATOECA.js");
|
|
320
320
|
const { createLarkClient } = await import("./client-DFBBDD77.js");
|
|
321
321
|
const { TaskCreator } = await import("./taskCreator-3W5BJ4Z7.js");
|
|
322
322
|
const { syncTaskStatuses } = await import("./sync-FJA2I3HE.js");
|
package/dist/index.js
CHANGED