@claudeink/mcp-server 2.2.0 → 2.2.1

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 (3) hide show
  1. package/dist/cli.js +11 -10
  2. package/dist/index.js +11 -10
  3. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -32878,17 +32878,18 @@ async function inkSave(input) {
32878
32878
  }
32879
32879
  const creds = await getCredentials();
32880
32880
  if (creds?.token) {
32881
- const index = await readIndex("knowledge");
32881
+ const now = (/* @__PURE__ */ new Date()).toISOString();
32882
32882
  fireAndForgetPush({
32883
- knowledge: Object.values(index.entries).map((e) => ({
32884
- id: e.id,
32885
- title: e.title,
32886
- tags: e.tags,
32887
- category: e.category,
32888
- source_type: e.source_type,
32889
- created_at: e.created_at,
32890
- updated_at: e.updated_at
32891
- })),
32883
+ knowledge: [{
32884
+ id: localId,
32885
+ title: input.title,
32886
+ tags: input.tags || [],
32887
+ category: input.category || "reference",
32888
+ source_type: input.source_type || "conversation",
32889
+ url: input.url,
32890
+ created_at: now,
32891
+ updated_at: now
32892
+ }],
32892
32893
  crawlerSources: []
32893
32894
  });
32894
32895
  }
package/dist/index.js CHANGED
@@ -25093,17 +25093,18 @@ async function inkSave(input) {
25093
25093
  }
25094
25094
  const creds = await getCredentials();
25095
25095
  if (creds?.token) {
25096
- const index = await readIndex("knowledge");
25096
+ const now = (/* @__PURE__ */ new Date()).toISOString();
25097
25097
  fireAndForgetPush({
25098
- knowledge: Object.values(index.entries).map((e) => ({
25099
- id: e.id,
25100
- title: e.title,
25101
- tags: e.tags,
25102
- category: e.category,
25103
- source_type: e.source_type,
25104
- created_at: e.created_at,
25105
- updated_at: e.updated_at
25106
- })),
25098
+ knowledge: [{
25099
+ id: localId,
25100
+ title: input.title,
25101
+ tags: input.tags || [],
25102
+ category: input.category || "reference",
25103
+ source_type: input.source_type || "conversation",
25104
+ url: input.url,
25105
+ created_at: now,
25106
+ updated_at: now
25107
+ }],
25107
25108
  crawlerSources: []
25108
25109
  });
25109
25110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudeink/mcp-server",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "ClaudeInk MCP Server — Claude 对话知识沉淀系统,保存、搜索、整合对话中的有价值内容",
5
5
  "mcpName": "io.github.weekdmond/claudeink",
6
6
  "type": "module",