@khotan/cli 0.4.0 → 0.5.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 +16 -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-18", KHOTAN_ADAPTER_NAME = "khotan", KHOTAN_ADAPTER_VERSION = "0.4.0", SUPPORTED_CATALOG_SCHEMA_VERSIONS;
22
+ var CATALOG_SCHEMA_VERSION = 1, CATALOG_VERSION = "2026-06-23", KHOTAN_ADAPTER_NAME = "khotan", KHOTAN_ADAPTER_VERSION = "0.5.0", SUPPORTED_CATALOG_SCHEMA_VERSIONS;
23
23
  var init_version = __esm(() => {
24
24
  SUPPORTED_CATALOG_SCHEMA_VERSIONS = [
25
25
  CATALOG_SCHEMA_VERSION
@@ -187,6 +187,19 @@ function platformDomain(config) {
187
187
  cli: { command: [domain, "redeploy"], summary: `Redeploy ${a} ${noun}`, defaultOutput: "detail" },
188
188
  mcp: { tool: { name: tool("redeploy"), title: `Redeploy ${a} ${noun}`, description: `Trigger a new deployment of ${a} ${noun}.` } }
189
189
  },
190
+ {
191
+ id: `${cap}.source`,
192
+ kind: "operation",
193
+ domain,
194
+ safety: "read",
195
+ auth: true,
196
+ title: `Download ${a} ${noun}'s source`,
197
+ description: `Download the ${noun}'s source files (its subdirectory in the org mono-root repo) as a JSON listing with paths rooted at the ${noun}. Text files come back utf-8, binary files base64.`,
198
+ input: [idArg],
199
+ http: { method: "GET", path: `${base}/{${resourceParam}}/source`, operationId: operationIds.source },
200
+ cli: { command: [domain, "source"], summary: `Download ${a} ${noun}'s source`, defaultOutput: "detail" },
201
+ mcp: { tool: { name: tool("source"), title: `Download ${a} ${noun}'s source`, description: `Download the ${noun}'s source files as a JSON listing. Text files utf-8, binary base64.` } }
202
+ },
190
203
  {
191
204
  id: `${cap}.env.list`,
192
205
  kind: "operation",
@@ -907,6 +920,7 @@ var init_catalog = __esm(() => {
907
920
  create: "createApp",
908
921
  delete: "deleteApp",
909
922
  redeploy: "redeployApp",
923
+ source: "getAppSource",
910
924
  envList: "listAppEnvVars",
911
925
  envBulkSet: "bulkUpsertAppEnvVars",
912
926
  envReveal: "revealAppEnvVar",
@@ -925,6 +939,7 @@ var init_catalog = __esm(() => {
925
939
  create: "createPipeline",
926
940
  delete: "deletePipeline",
927
941
  redeploy: "redeployPipeline",
942
+ source: "getPipelineSource",
928
943
  envList: "listPipelineEnvVars",
929
944
  envBulkSet: "bulkUpsertPipelineEnvVars",
930
945
  envReveal: "revealPipelineEnvVar",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khotan/cli",
3
- "version": "0.4.0",
3
+ "version": "0.5.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",