@zixt/host 0.0.1 → 0.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.
Files changed (2) hide show
  1. package/dist/index.js +65 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -19185,6 +19185,61 @@ function createPlaywrightBrowserAdapterFactory() {
19185
19185
  // src/client.ts
19186
19186
  import WebSocket from "ws";
19187
19187
 
19188
+ // package.json
19189
+ var package_default = {
19190
+ name: "@zixt/host",
19191
+ version: "0.0.3",
19192
+ type: "module",
19193
+ exports: {
19194
+ ".": "./src/client.ts",
19195
+ "./browser": "./src/browser/index.ts"
19196
+ },
19197
+ scripts: {
19198
+ dev: "tsx watch src/index.ts",
19199
+ start: "tsx src/index.ts",
19200
+ "browser:install": "playwright-core install chromium",
19201
+ test: "bun test",
19202
+ typecheck: "tsc -p tsconfig.json",
19203
+ build: "node scripts/build.mjs",
19204
+ prepack: "node scripts/build.mjs"
19205
+ },
19206
+ dependencies: {
19207
+ "playwright-core": "1.61.1",
19208
+ ws: "^8.18.0"
19209
+ },
19210
+ devDependencies: {
19211
+ "@types/bun": "^1.3.0",
19212
+ "@types/node": "^24.0.0",
19213
+ "@types/ws": "^8.18.0",
19214
+ tsx: "^4.23.0",
19215
+ "@zixt/contracts": "workspace:*",
19216
+ esbuild: "^0.25.0"
19217
+ },
19218
+ description: "Zixt Host: runs AI-teammate Tasks on your own machine, paired to the Zixt cloud",
19219
+ license: "UNLICENSED",
19220
+ repository: {
19221
+ type: "git",
19222
+ url: "git+https://github.com/zixtai/zixt.git",
19223
+ directory: "apps/host"
19224
+ },
19225
+ bin: {
19226
+ "zixt-host": "dist/index.js"
19227
+ },
19228
+ files: [
19229
+ "dist",
19230
+ "README.md"
19231
+ ],
19232
+ engines: {
19233
+ node: ">=20.0.0"
19234
+ },
19235
+ publishConfig: {
19236
+ access: "public"
19237
+ },
19238
+ optionalDependencies: {
19239
+ "@vscode/windows-process-tree": "0.8.0"
19240
+ }
19241
+ };
19242
+
19188
19243
  // src/runners/mcp-client.ts
19189
19244
  var REQUEST_TIMEOUT_MS = 1e4;
19190
19245
  var MAX_BODY_BYTES = 4 * 1024 * 1024;
@@ -19456,6 +19511,7 @@ async function probeWorkspaces(workspaces) {
19456
19511
  }
19457
19512
 
19458
19513
  // src/client.ts
19514
+ var HOST_VERSION = package_default.version;
19459
19515
  var GITHUB_GRANT_FAILURE_TEXT = {
19460
19516
  no_reply_from_zixt: "Zixt did not answer the request for repository credentials in time",
19461
19517
  refused_by_zixt: "Zixt declined to issue repository credentials",
@@ -19923,7 +19979,7 @@ var HostClient = class _HostClient {
19923
19979
  const measured = typeof configured === "function" ? await configured() : configured ?? {
19924
19980
  os: process.platform,
19925
19981
  arch: process.arch,
19926
- hostVersion: process.env.npm_package_version ?? "unknown",
19982
+ hostVersion: HOST_VERSION,
19927
19983
  activeSessions: this.cancels.size,
19928
19984
  runners: [],
19929
19985
  workspaces: [],
@@ -30077,6 +30133,11 @@ function safeCliOption(value) {
30077
30133
  function connectionLogContext(input) {
30078
30134
  return {
30079
30135
  machine: input.machine,
30136
+ // A Machine is whatever `npx @zixt/host` last installed, so "which
30137
+ // version is this one running" is the first question every stale-Host
30138
+ // report starts with. It rides the line the Host always prints, not a
30139
+ // verbose flag, because the answer is needed from logs already captured.
30140
+ version: input.version,
30080
30141
  ...input.verbose || input.showCloud ? { cloud: input.cloud } : {}
30081
30142
  };
30082
30143
  }
@@ -30253,7 +30314,7 @@ async function telemetry() {
30253
30314
  return {
30254
30315
  os: process.platform,
30255
30316
  arch: process.arch,
30256
- hostVersion: process.env.npm_package_version ?? "unknown",
30317
+ hostVersion: HOST_VERSION,
30257
30318
  activeSessions,
30258
30319
  runners: cachedRunners ?? [],
30259
30320
  workspaces: [],
@@ -30309,7 +30370,8 @@ var connectionContext = connectionLogContext({
30309
30370
  verbose: cliOptions.verbose,
30310
30371
  showCloud: cliOptions.showCloud,
30311
30372
  machine,
30312
- cloud: cloudTarget
30373
+ cloud: cloudTarget,
30374
+ version: HOST_VERSION
30313
30375
  });
30314
30376
  var client = new HostClient({
30315
30377
  url: url2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zixt/host",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/client.ts",