@zixt/host 0.0.63 → 0.0.64
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 +24 -5
- 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.64",
|
|
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(),
|
|
@@ -18700,7 +18718,8 @@ var HostRemovalImpact = external_exports.object({
|
|
|
18700
18718
|
external_exports.object({
|
|
18701
18719
|
id: ScheduleId,
|
|
18702
18720
|
name: external_exports.string().max(120),
|
|
18703
|
-
|
|
18721
|
+
/** Null on an Auto Automation, which names no teammate. */
|
|
18722
|
+
agentId: AgentId.nullable(),
|
|
18704
18723
|
agentName: external_exports.string().max(120)
|
|
18705
18724
|
})
|
|
18706
18725
|
)
|