@hiai-gg/docsmint 2.0.2 → 2.0.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.
package/README.md CHANGED
@@ -83,7 +83,7 @@ is a separate listing.
83
83
  - **Choose how you run it.** Use [managed DocsMint](https://docsmint.com) or
84
84
  self-host the application, database, search, queues, and files.
85
85
 
86
- ## What's new in 2.0.2?
86
+ ## What's new in 2.0.3?
87
87
 
88
88
  Hosted MCP integrations can discover granted workspaces, including empty spaces, with
89
89
  `list_workspace_structure(kind="workspaces")` and select one with the optional
@@ -93,7 +93,7 @@ results and independent pagination. Existing single-scope calls remain compatibl
93
93
 
94
94
  The OSS frontend adopts SvelteKit 3; dependency updates resolve the current security
95
95
  audit findings. No database migration is required. See the
96
- [2.0.2 release notes](docs/release/v2.0.2-notes.md).
96
+ [2.0.3 release notes](docs/release/v2.0.3-notes.md).
97
97
 
98
98
  ## Previous release: 1.0.3
99
99
 
@@ -239821,7 +239821,7 @@ var swaggerConfig = {
239821
239821
  },
239822
239822
  info: {
239823
239823
  title: "DocsMint API",
239824
- version: "2.0.2",
239824
+ version: "2.0.3",
239825
239825
  description: "Self-hosted AI-native knowledge workspace and installable PWA with hybrid search, GraphRAG, REST, SDK, CLI, and MCP access for people and AI agents.",
239826
239826
  contact: { name: "HiAi-gg", url: "https://github.com/HiAi-gg/docsmint" },
239827
239827
  license: {
package/dist/mcp-cli.js CHANGED
@@ -1043,7 +1043,17 @@ function withClientRoutingSchema(schema) {
1043
1043
  ...standard.jsonSchema,
1044
1044
  input: (options) => (() => {
1045
1045
  const published = hoistObjectUnionClosure(standard.jsonSchema.input(options));
1046
- return { ...published, properties: { ...published.properties, workspaceId: z2.toJSONSchema(selector) } };
1046
+ const routingProperty = z2.toJSONSchema(selector);
1047
+ return {
1048
+ ...published,
1049
+ properties: { ...published.properties, workspaceId: routingProperty },
1050
+ ...Array.isArray(published.oneOf) ? {
1051
+ oneOf: published.oneOf.map((branch) => ({
1052
+ ...branch,
1053
+ properties: { ...branch.properties, workspaceId: routingProperty }
1054
+ }))
1055
+ } : {}
1056
+ };
1047
1057
  })()
1048
1058
  }
1049
1059
  }
@@ -1398,7 +1408,7 @@ function registerDocsmintMcpCapabilities(server, client2, workspaceRouting) {
1398
1408
  registerPromptsAndResources(server, client2);
1399
1409
  }
1400
1410
  function createDocsmintMcpServer(options = {}) {
1401
- const server = new McpServer({ name: "docsmint", version: "2.0.2" });
1411
+ const server = new McpServer({ name: "docsmint", version: "2.0.3" });
1402
1412
  const client2 = options.docsClient ? createMcpDocsClient(options.docsClient, options.requestContext) : options.client ?? createMcpDocsClient(createDefaultDocsClient(), options.requestContext);
1403
1413
  registerDocsmintMcpCapabilities(server, client2, options.workspaceRouting);
1404
1414
  return server;
@@ -1041,7 +1041,17 @@ function withClientRoutingSchema(schema) {
1041
1041
  ...standard.jsonSchema,
1042
1042
  input: (options) => (() => {
1043
1043
  const published = hoistObjectUnionClosure(standard.jsonSchema.input(options));
1044
- return { ...published, properties: { ...published.properties, workspaceId: z2.toJSONSchema(selector) } };
1044
+ const routingProperty = z2.toJSONSchema(selector);
1045
+ return {
1046
+ ...published,
1047
+ properties: { ...published.properties, workspaceId: routingProperty },
1048
+ ...Array.isArray(published.oneOf) ? {
1049
+ oneOf: published.oneOf.map((branch) => ({
1050
+ ...branch,
1051
+ properties: { ...branch.properties, workspaceId: routingProperty }
1052
+ }))
1053
+ } : {}
1054
+ };
1045
1055
  })()
1046
1056
  }
1047
1057
  }
@@ -1430,7 +1440,7 @@ function registerDocsmintMcpCapabilities(server, client2, workspaceRouting) {
1430
1440
  registerPromptsAndResources(server, client2);
1431
1441
  }
1432
1442
  function createDocsmintMcpServer(options = {}) {
1433
- const server = new McpServer({ name: "docsmint", version: "2.0.2" });
1443
+ const server = new McpServer({ name: "docsmint", version: "2.0.3" });
1434
1444
  const client2 = options.docsClient ? createMcpDocsClient(options.docsClient, options.requestContext) : options.client ?? createMcpDocsClient(createDefaultDocsClient(), options.requestContext);
1435
1445
  registerDocsmintMcpCapabilities(server, client2, options.workspaceRouting);
1436
1446
  return server;
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": "2.0.2",
4
+ "version": "2.0.3",
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 = '2.0.2';
28
+ const VERSION = '2.0.3';
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": "2.0.2",
13
+ "version": "2.0.3",
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": "2.0.2",
37
+ "version": "2.0.3",
38
38
  "runtimeHint": "npx",
39
39
  "transport": {
40
40
  "type": "stdio"