@hiai-gg/docsmint 0.9.2 → 0.10.0

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.
package/dist/types.d.ts CHANGED
@@ -141,6 +141,15 @@ export interface DocsTag {
141
141
  createdAt?: string;
142
142
  documentCount?: number;
143
143
  }
144
+ export interface DocsTrashResponse {
145
+ documents: Array<{
146
+ id: string;
147
+ title: string;
148
+ deletedAt: string;
149
+ purgeAfter: string | null;
150
+ }>;
151
+ folders: [];
152
+ }
144
153
  /**
145
154
  * Search hit as returned by `GET /api/search`. The backend uses
146
155
  * snake_case in the JSON payload — we mirror that exactly here so
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hiai-gg/docsmint",
3
3
  "mcpName": "io.github.HiAi-gg/docsmint",
4
- "version": "0.9.2",
4
+ "version": "0.10.0",
5
5
  "type": "module",
6
6
  "browser": {
7
7
  "./dist/backend-launcher.js": false,
@@ -25,7 +25,7 @@ import { registerSearch } from './commands/search.js';
25
25
  import { registerSnapshot } from './commands/snapshot.js';
26
26
  import { registerUpdate } from './commands/update.js';
27
27
 
28
- const VERSION = '0.9.2';
28
+ const VERSION = '0.10.0';
29
29
 
30
30
  const program = new Command();
31
31
  program.name('docsmint').description('CLI for the DocsMint knowledge workspace').version(VERSION);
package/server.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "id": "1249550690",
11
11
  "subfolder": "packages/mcp-server"
12
12
  },
13
- "version": "0.9.2",
13
+ "version": "0.10.0",
14
14
  "icons": [
15
15
  {
16
16
  "src": "https://raw.githubusercontent.com/HiAi-gg/docsmint/main/frontend/static/logo-dark.png",
@@ -34,7 +34,7 @@
34
34
  "registryType": "npm",
35
35
  "registryBaseUrl": "https://registry.npmjs.org",
36
36
  "identifier": "@hiai-gg/docsmint",
37
- "version": "0.9.2",
37
+ "version": "0.10.0",
38
38
  "runtimeHint": "npx",
39
39
  "transport": {
40
40
  "type": "stdio"
@@ -87,7 +87,7 @@
87
87
  "licenseFile": "https://github.com/HiAi-gg/docsmint/blob/main/LICENSE",
88
88
  "documentationUrl": "https://docsmint.com/mcp/connect?source=mcp_registry",
89
89
  "catalog": {
90
- "tools": 21,
90
+ "tools": 20,
91
91
  "prompts": 2,
92
92
  "resources": 3
93
93
  }
@@ -17,17 +17,18 @@ Use this skill when an agent must create, organize, edit, or research documents
17
17
 
18
18
  ## Retrieval workflow
19
19
 
20
- 1. Use `search_documents` with the user's original language.
21
- 2. Read the most relevant documents with `get_document`.
22
- 3. Use `get_related_documents` or `search_knowledge_graph` only with authorized document IDs returned by search.
20
+ 1. Use `find_documents(mode=search)` with the user's original language; use `mode=list` for paginated browsing by folder or tag UUID.
21
+ 2. Read relevant content with `read_document(view=detail)` or export Markdown with `view=markdown`.
22
+ 3. Use `explore_graph(mode=neighbors|search)` only with authorized document IDs returned by `find_documents`.
23
23
  4. Cite document IDs and distinguish retrieved facts from inference.
24
24
 
25
25
  ## Document management workflow
26
26
 
27
- 1. Inspect `list_categories`, `list_folders`, and `list_tags` before organizing content.
28
- 2. Create categories only with a workspace-scoped key.
29
- 3. Create folders and documents within the active scope.
30
- 4. After an update, inspect `get_document_index_status`; use `refresh_document_index` only when indexing is stale or failed.
31
- 5. Use snapshots before a substantial rewrite when version history is important.
27
+ 1. Inspect `list_workspace_structure(kind=categories|folders|tags)` before organizing content.
28
+ 2. Create or update categories with `save_category(action=create|update)` only with a workspace-scoped key.
29
+ 3. Use `save_folder`, `save_document`, `save_tag`, and `set_document_tag` with explicit actions and stay in the active scope.
30
+ 4. After a document update, inspect `get_document_index_status`; use `refresh_document_index` only when indexing is stale or failed.
31
+ 5. Use `create_snapshot` before a substantial rewrite; choose a version through `read_document(view=versions)` before `restore_document_version`.
32
+ 6. Treat `delete_document`, `restore_trashed_document`, and `permanently_delete_document` as distinct lifecycle actions. Purge only on an explicit request.
32
33
 
33
34
  DocsMint owns chunking, embeddings, multilingual hybrid retrieval, cross-encoder rerank, entity extraction, and GraphRAG indexing. Agents must use the MCP tools and never write those persistence layers directly.