@zixt/host 0.0.24 → 0.0.26
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/dist/index.js +40 -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.
|
|
34
|
+
version: "0.0.26",
|
|
35
35
|
type: "module",
|
|
36
36
|
exports: {
|
|
37
37
|
".": "./src/client.ts",
|
|
@@ -15321,6 +15321,12 @@ var HostTelemetry = external_exports.object({
|
|
|
15321
15321
|
remoteUpdate: external_exports.literal(true).optional()
|
|
15322
15322
|
}).optional()
|
|
15323
15323
|
});
|
|
15324
|
+
var HostConnectionIssue = external_exports.object({
|
|
15325
|
+
code: external_exports.literal("protocol_incompatible"),
|
|
15326
|
+
observedAt: IsoDate2,
|
|
15327
|
+
reportedProtocolVersion: external_exports.number().int().min(0),
|
|
15328
|
+
expectedProtocolVersion: external_exports.number().int().min(0)
|
|
15329
|
+
}).strict();
|
|
15324
15330
|
var Host = external_exports.object({
|
|
15325
15331
|
id: HostId,
|
|
15326
15332
|
orgId: OrgId,
|
|
@@ -15333,6 +15339,8 @@ var Host = external_exports.object({
|
|
|
15333
15339
|
lastSeenAt: IsoDate2.nullable(),
|
|
15334
15340
|
telemetry: HostTelemetry.nullable().default(null),
|
|
15335
15341
|
telemetryAt: IsoDate2.nullable().default(null),
|
|
15342
|
+
/** Cleared automatically after this Machine completes a compatible handshake. */
|
|
15343
|
+
connectionIssue: HostConnectionIssue.nullable().default(null),
|
|
15336
15344
|
telemetryRedacted: external_exports.boolean().default(false),
|
|
15337
15345
|
createdAt: IsoDate2
|
|
15338
15346
|
});
|
|
@@ -17754,6 +17762,7 @@ var MemberHostProjection = Host.pick({
|
|
|
17754
17762
|
createdAt: true
|
|
17755
17763
|
}).extend({
|
|
17756
17764
|
telemetry: external_exports.null(),
|
|
17765
|
+
connectionIssue: external_exports.null(),
|
|
17757
17766
|
telemetryRedacted: external_exports.literal(true),
|
|
17758
17767
|
operations: MemberHostOperations
|
|
17759
17768
|
});
|
|
@@ -31982,7 +31991,36 @@ function githubRepositoryFromGhArgs(args) {
|
|
|
31982
31991
|
}
|
|
31983
31992
|
}
|
|
31984
31993
|
if (command === "api") {
|
|
31985
|
-
const
|
|
31994
|
+
const valueOptions = /* @__PURE__ */ new Set([
|
|
31995
|
+
"--cache",
|
|
31996
|
+
"--field",
|
|
31997
|
+
"-F",
|
|
31998
|
+
"--header",
|
|
31999
|
+
"-H",
|
|
32000
|
+
"--hostname",
|
|
32001
|
+
"--input",
|
|
32002
|
+
"--jq",
|
|
32003
|
+
"-q",
|
|
32004
|
+
"--method",
|
|
32005
|
+
"-X",
|
|
32006
|
+
"--preview",
|
|
32007
|
+
"-p",
|
|
32008
|
+
"--raw-field",
|
|
32009
|
+
"-f",
|
|
32010
|
+
"--template",
|
|
32011
|
+
"-t"
|
|
32012
|
+
]);
|
|
32013
|
+
let endpoint;
|
|
32014
|
+
for (let index = commandIndex + 1; index < args.length; index++) {
|
|
32015
|
+
const argument = args[index];
|
|
32016
|
+
if (valueOptions.has(argument)) {
|
|
32017
|
+
index++;
|
|
32018
|
+
continue;
|
|
32019
|
+
}
|
|
32020
|
+
if (argument.startsWith("-")) continue;
|
|
32021
|
+
endpoint = argument;
|
|
32022
|
+
break;
|
|
32023
|
+
}
|
|
31986
32024
|
const match = endpoint?.match(/^\/?repos\/([^/]+\/[^/?]+)(?:[/?]|$)/i);
|
|
31987
32025
|
return match?.[1] ? githubRepositoryFromSpecifier(match[1]) : null;
|
|
31988
32026
|
}
|