@zixt/host 0.0.10 → 0.0.11

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/index.js +22 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ import { homedir } from "node:os";
31
31
  // package.json
32
32
  var package_default = {
33
33
  name: "@zixt/host",
34
- version: "0.0.10",
34
+ version: "0.0.11",
35
35
  type: "module",
36
36
  exports: {
37
37
  ".": "./src/client.ts",
@@ -25784,6 +25784,7 @@ var GITHUB_TOOL_DEFINITIONS = {
25784
25784
  description: "Open one exact GitHub repository for this task, prepare its local workspace, and enable its granted tools.",
25785
25785
  inputSchema: {
25786
25786
  type: "object",
25787
+ description: "Provide exactly one of repository_id or full_name.",
25787
25788
  properties: {
25788
25789
  repository_id: repositoryId,
25789
25790
  full_name: {
@@ -25791,7 +25792,6 @@ var GITHUB_TOOL_DEFINITIONS = {
25791
25792
  pattern: "^[A-Za-z0-9_.-]{1,100}/[A-Za-z0-9_.-]{1,100}$"
25792
25793
  }
25793
25794
  },
25794
- oneOf: [{ required: ["repository_id"] }, { required: ["full_name"] }],
25795
25795
  additionalProperties: false
25796
25796
  }
25797
25797
  },
@@ -33342,7 +33342,26 @@ function createCliRunner(adapter, opts = {}) {
33342
33342
  }
33343
33343
  },
33344
33344
  agentOp: (op) => task.agentOp(op),
33345
- toolPacks
33345
+ // GitHub repository work belongs in the installed `git` and `gh`
33346
+ // commands backed by GithubShellAuth. Do not advertise the bundled
33347
+ // repository/Issue/PR/Actions MCP surface to the model: besides being
33348
+ // redundant, provider schema dialect changes can otherwise prevent a
33349
+ // Claude request before any command runs. Repository creation remains
33350
+ // the one bounded exception because it uses Zixt's durable admin-intent
33351
+ // reservation and ambiguity reconciliation rather than ordinary repo
33352
+ // authority.
33353
+ toolPacks: toolPacks.flatMap((pack) => {
33354
+ if (pack.provider !== "github") return [pack];
33355
+ const tools = pack.tools.filter(({ name }) => name === "github_create_repository");
33356
+ if (tools.length === 0) return [];
33357
+ return [
33358
+ {
33359
+ ...pack,
33360
+ tools,
33361
+ call: (name, args) => name === "github_create_repository" ? pack.call(name, args) : Promise.resolve({ ok: false, error: "Unknown GitHub operation." })
33362
+ }
33363
+ ];
33364
+ })
33346
33365
  });
33347
33366
  const prepared = await adapter.prepareRun({
33348
33367
  task,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zixt/host",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/client.ts",