@khotan/cli 0.1.1 → 0.2.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.
Files changed (2) hide show
  1. package/dist/khotan.js +18 -1
  2. package/package.json +1 -1
package/dist/khotan.js CHANGED
@@ -19,7 +19,7 @@ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
19
19
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
20
20
 
21
21
  // ../khotan-core/src/version.ts
22
- var CATALOG_SCHEMA_VERSION = 1, CATALOG_VERSION = "2026-06-13", KHOTAN_ADAPTER_NAME = "khotan", KHOTAN_ADAPTER_VERSION = "0.1.0", SUPPORTED_CATALOG_SCHEMA_VERSIONS;
22
+ var CATALOG_SCHEMA_VERSION = 1, CATALOG_VERSION = "2026-06-16", KHOTAN_ADAPTER_NAME = "khotan", KHOTAN_ADAPTER_VERSION = "0.2.0", SUPPORTED_CATALOG_SCHEMA_VERSIONS;
23
23
  var init_version = __esm(() => {
24
24
  SUPPORTED_CATALOG_SCHEMA_VERSIONS = [
25
25
  CATALOG_SCHEMA_VERSION
@@ -654,6 +654,23 @@ var init_catalog = __esm(() => {
654
654
  cli: { command: ["context", "list"], summary: "List context documents", defaultOutput: "table" },
655
655
  mcp: { tool: { name: "khotan_context_list", title: "List context documents", description: "List the context document manifest (metadata only)." } }
656
656
  },
657
+ {
658
+ id: "context.search",
659
+ kind: "operation",
660
+ domain: "context",
661
+ safety: "read",
662
+ auth: true,
663
+ title: "Search context documents",
664
+ description: "Hybrid semantic + full-text search; returns ranked passages with their source slug.",
665
+ input: [
666
+ { name: "q", location: "query", type: "string", required: true, description: "Natural-language search query." },
667
+ { name: "k", location: "query", type: "number", default: 10, description: "Maximum number of snippets to return (1-50)." },
668
+ { name: "kind", location: "query", type: "string", description: "Filter by kind: instructions, knowledge, or record." }
669
+ ],
670
+ http: { method: "GET", path: "/api/v1/context/search", operationId: "searchContextDocuments" },
671
+ cli: { command: ["context", "search"], summary: "Search context documents", defaultOutput: "table" },
672
+ mcp: { tool: { name: "khotan_context_search", title: "Search context documents", description: "Hybrid semantic + full-text search over context documents; returns ranked passages, each with its source slug." } }
673
+ },
657
674
  {
658
675
  id: "context.get",
659
676
  kind: "operation",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khotan/cli",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "Khotan CLI and MCP server: human- and agent-facing adapters over the Khotan /api/v1 surface.",
6
6
  "license": "SEE LICENSE IN LICENSE.md",