@zixt/host 0.0.63 → 0.0.65
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 +33 -9
- 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.65",
|
|
35
35
|
type: "module",
|
|
36
36
|
exports: {
|
|
37
37
|
".": "./src/client.ts",
|
|
@@ -15659,6 +15659,7 @@ var StartOAuthResponse = external_exports.object({
|
|
|
15659
15659
|
});
|
|
15660
15660
|
|
|
15661
15661
|
// ../../packages/contracts/src/schedules.ts
|
|
15662
|
+
var ScheduleInvocation = external_exports.enum(["manager", "agent"]);
|
|
15662
15663
|
var ScheduleCadence = external_exports.discriminatedUnion("kind", [
|
|
15663
15664
|
/** Every N minutes. Overlap protection prevents a slow run from piling up. */
|
|
15664
15665
|
external_exports.object({ kind: external_exports.literal("every"), minutes: external_exports.number().int().min(1).max(10080) }),
|
|
@@ -15680,7 +15681,13 @@ var ScheduleSkipReason = external_exports.enum([
|
|
|
15680
15681
|
"agent_draft",
|
|
15681
15682
|
"agent_paused",
|
|
15682
15683
|
"agent_archived",
|
|
15683
|
-
"agent_missing"
|
|
15684
|
+
"agent_missing",
|
|
15685
|
+
/**
|
|
15686
|
+
* SCH-5: an organization Automation is run by the Manager, and this
|
|
15687
|
+
* deployment has none configured. Consuming the occurrence once says so;
|
|
15688
|
+
* retrying forever would wait for something that is not coming.
|
|
15689
|
+
*/
|
|
15690
|
+
"manager_unavailable"
|
|
15684
15691
|
]);
|
|
15685
15692
|
var ScheduleActionRequiredCode = external_exports.enum(["pinned_machine_removed"]);
|
|
15686
15693
|
var ScheduleActionRequired = external_exports.object({
|
|
@@ -15696,7 +15703,16 @@ var ScheduleActionRequired = external_exports.object({
|
|
|
15696
15703
|
var Schedule = external_exports.object({
|
|
15697
15704
|
id: ScheduleId,
|
|
15698
15705
|
orgId: OrgId,
|
|
15699
|
-
|
|
15706
|
+
/**
|
|
15707
|
+
* Optional teammate for this Automation's work. Null is **Auto**: the Manager
|
|
15708
|
+
* picks the owner when a run needs one. A named teammate constrains that
|
|
15709
|
+
* choice without forcing delegation, so a run the Manager can complete itself
|
|
15710
|
+
* still costs nobody a Machine.
|
|
15711
|
+
*/
|
|
15712
|
+
assignedAgentId: AgentId.nullable().default(null),
|
|
15713
|
+
invokedBy: ScheduleInvocation.default("manager"),
|
|
15714
|
+
/** Manager thread carrying this Automation's runs; null until the first tick. */
|
|
15715
|
+
conversationId: ConversationId.nullable().default(null),
|
|
15700
15716
|
name: external_exports.string().min(1).max(120),
|
|
15701
15717
|
instructions: external_exports.string().min(1).max(1e5),
|
|
15702
15718
|
/** Reusable built-in or organization routine that created this row; null for one-off work. */
|
|
@@ -15719,7 +15735,8 @@ var Schedule = external_exports.object({
|
|
|
15719
15735
|
updatedAt: IsoDate
|
|
15720
15736
|
});
|
|
15721
15737
|
var CreateScheduleRequest = external_exports.object({
|
|
15722
|
-
|
|
15738
|
+
/** Omitted or null means Auto. */
|
|
15739
|
+
assignedAgentId: AgentId.nullable().optional(),
|
|
15723
15740
|
name: Schedule.shape.name,
|
|
15724
15741
|
instructions: Schedule.shape.instructions,
|
|
15725
15742
|
presetId: Schedule.shape.presetId.removeDefault().optional(),
|
|
@@ -15730,6 +15747,7 @@ var CreateScheduleRequest = external_exports.object({
|
|
|
15730
15747
|
var UpdateScheduleRequest = external_exports.object({
|
|
15731
15748
|
name: Schedule.shape.name,
|
|
15732
15749
|
instructions: Schedule.shape.instructions,
|
|
15750
|
+
assignedAgentId: AgentId.nullable(),
|
|
15733
15751
|
cadence: ScheduleCadence,
|
|
15734
15752
|
endsAt: IsoDate.nullable(),
|
|
15735
15753
|
requestedHostId: HostId.nullable(),
|
|
@@ -16313,13 +16331,18 @@ var TaskTimingBreakdown = external_exports.object({
|
|
|
16313
16331
|
runs: external_exports.array(TaskTimingRun).max(TASK_TIMING_MAX_RUNS)
|
|
16314
16332
|
}).strict();
|
|
16315
16333
|
var TaskProgressStepState = external_exports.enum([
|
|
16316
|
-
/** Reached
|
|
16334
|
+
/** Reached and finished: the Task demonstrably passed through it. */
|
|
16317
16335
|
"done",
|
|
16318
16336
|
/** The furthest step the Task has reached. */
|
|
16319
16337
|
"active",
|
|
16320
16338
|
/** Not reached yet. */
|
|
16321
16339
|
"pending",
|
|
16322
|
-
/**
|
|
16340
|
+
/**
|
|
16341
|
+
* The Task went past this step with nothing to show for it: no recorded
|
|
16342
|
+
* activity of that kind and no measurable time. Reserved for the steps
|
|
16343
|
+
* attributed from the activity record — a dispatched Task queued and started
|
|
16344
|
+
* up whatever the clock says, so those two are never reported as skipped.
|
|
16345
|
+
*/
|
|
16323
16346
|
"skipped"
|
|
16324
16347
|
]);
|
|
16325
16348
|
var TaskProgressStep = external_exports.object({
|
|
@@ -16383,8 +16406,8 @@ var TaskProgressEstimate = external_exports.object({
|
|
|
16383
16406
|
elapsedMs: external_exports.number().int().min(0),
|
|
16384
16407
|
/** Of that, time a Machine was actually working. */
|
|
16385
16408
|
activeMs: external_exports.number().int().min(0),
|
|
16386
|
-
/** Working time still expected, as
|
|
16387
|
-
|
|
16409
|
+
/** Working time still expected, as one estimate; null when unknowable. */
|
|
16410
|
+
remainingMs: external_exports.number().int().min(0).nullable(),
|
|
16388
16411
|
sample: TaskProgressSample.nullable(),
|
|
16389
16412
|
/** Every TS-20 step, in lifecycle order. */
|
|
16390
16413
|
steps: external_exports.array(TaskProgressStep),
|
|
@@ -18700,7 +18723,8 @@ var HostRemovalImpact = external_exports.object({
|
|
|
18700
18723
|
external_exports.object({
|
|
18701
18724
|
id: ScheduleId,
|
|
18702
18725
|
name: external_exports.string().max(120),
|
|
18703
|
-
|
|
18726
|
+
/** Null on an Auto Automation, which names no teammate. */
|
|
18727
|
+
agentId: AgentId.nullable(),
|
|
18704
18728
|
agentName: external_exports.string().max(120)
|
|
18705
18729
|
})
|
|
18706
18730
|
)
|