@zixt/host 0.0.15 → 0.0.17
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 +42 -6
- 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.17",
|
|
35
35
|
type: "module",
|
|
36
36
|
exports: {
|
|
37
37
|
".": "./src/client.ts",
|
|
@@ -15334,10 +15334,46 @@ var Host = external_exports.object({
|
|
|
15334
15334
|
});
|
|
15335
15335
|
|
|
15336
15336
|
// ../../packages/contracts/src/api.ts
|
|
15337
|
+
var ProblemCode = external_exports.enum([
|
|
15338
|
+
"network_unavailable",
|
|
15339
|
+
"not_authorized",
|
|
15340
|
+
"not_found",
|
|
15341
|
+
"invalid_input",
|
|
15342
|
+
"changed",
|
|
15343
|
+
"rate_limited",
|
|
15344
|
+
"service_unavailable",
|
|
15345
|
+
"machine_offline",
|
|
15346
|
+
"machine_return_required",
|
|
15347
|
+
"access_required",
|
|
15348
|
+
"unknown"
|
|
15349
|
+
]);
|
|
15350
|
+
var ProblemSubject = external_exports.object({
|
|
15351
|
+
kind: external_exports.enum(["organization", "task", "machine", "integration", "credential", "teammate"]),
|
|
15352
|
+
id: external_exports.string().min(1).max(300).optional(),
|
|
15353
|
+
name: external_exports.string().min(1).max(300).optional()
|
|
15354
|
+
});
|
|
15355
|
+
var ProblemRecovery = external_exports.discriminatedUnion("kind", [
|
|
15356
|
+
external_exports.object({ kind: external_exports.literal("retry"), afterSeconds: external_exports.number().int().min(0).optional() }),
|
|
15357
|
+
external_exports.object({ kind: external_exports.literal("open_integration"), integrationId: external_exports.string().optional() }),
|
|
15358
|
+
external_exports.object({ kind: external_exports.literal("open_credential"), name: external_exports.string().optional() }),
|
|
15359
|
+
external_exports.object({ kind: external_exports.literal("open_machine"), machineId: external_exports.string().optional() }),
|
|
15360
|
+
external_exports.object({ kind: external_exports.literal("contact_admin") }),
|
|
15361
|
+
external_exports.object({ kind: external_exports.literal("wait_for_machine") }),
|
|
15362
|
+
external_exports.object({ kind: external_exports.literal("contact_support"), incidentId: external_exports.string().min(1).max(300) })
|
|
15363
|
+
]);
|
|
15364
|
+
var Problem = external_exports.object({
|
|
15365
|
+
code: ProblemCode,
|
|
15366
|
+
state: external_exports.enum(["blocking", "degraded", "waiting"]),
|
|
15367
|
+
subject: ProblemSubject,
|
|
15368
|
+
parameters: external_exports.record(external_exports.string(), external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean(), external_exports.null()])),
|
|
15369
|
+
recovery: ProblemRecovery,
|
|
15370
|
+
evidenceAt: IsoDate2.optional()
|
|
15371
|
+
});
|
|
15337
15372
|
var ApiError = external_exports.object({
|
|
15338
15373
|
error: external_exports.object({
|
|
15339
15374
|
code: external_exports.string(),
|
|
15340
|
-
message: external_exports.string()
|
|
15375
|
+
message: external_exports.string(),
|
|
15376
|
+
problem: Problem.optional()
|
|
15341
15377
|
})
|
|
15342
15378
|
});
|
|
15343
15379
|
var CreateOrgRequest = external_exports.object({
|
|
@@ -15804,8 +15840,8 @@ var TaskOrigin = external_exports.object({
|
|
|
15804
15840
|
/**
|
|
15805
15841
|
* AG-5 loop protection: how many agent-caused hops led here. Human-caused
|
|
15806
15842
|
* work is depth 0 (absent); each agent-caused message/handoff increments it,
|
|
15807
|
-
* while a human-authorized handoff resets it.
|
|
15808
|
-
*
|
|
15843
|
+
* while a human-authorized handoff resets it. Depth is retained as lineage
|
|
15844
|
+
* evidence, not used to prevent further collaboration.
|
|
15809
15845
|
*/
|
|
15810
15846
|
chainDepth: external_exports.number().int().min(0).optional(),
|
|
15811
15847
|
/** Parent task for an agent-caused hop or human-authorized handoff (AG-5 lineage). */
|
|
@@ -17695,8 +17731,8 @@ var AgentOp = external_exports.union([
|
|
|
17695
17731
|
*
|
|
17696
17732
|
* `agent.message` is a conversation; this is work: a titled, instructed Task
|
|
17697
17733
|
* that queues, dispatches, and reports like one a human opened. Chain depth
|
|
17698
|
-
* and trust propagate exactly as for messages
|
|
17699
|
-
*
|
|
17734
|
+
* and trust propagate exactly as for messages; the per-run fan-out cap
|
|
17735
|
+
* prevents one execution from minting unbounded work.
|
|
17700
17736
|
*/
|
|
17701
17737
|
external_exports.object({
|
|
17702
17738
|
kind: external_exports.literal("task.create"),
|