@zixt/host 0.0.62 → 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.
Files changed (2) hide show
  1. package/dist/index.js +25 -5
  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.62",
34
+ version: "0.0.64",
35
35
  type: "module",
36
36
  exports: {
37
37
  ".": "./src/client.ts",
@@ -14832,6 +14832,7 @@ var BrowserSessionProjection = external_exports.object({
14832
14832
  /** Present only when active work must use a different Machine-local profile. */
14833
14833
  profileContext: BrowserProfileContext.optional()
14834
14834
  }).strict();
14835
+ var StartBrowserSessionRequest = external_exports.object({ url: external_exports.string().min(1).max(2e3).optional() }).strict();
14835
14836
  var StartBrowserSessionResponse = external_exports.object({
14836
14837
  session: BrowserSessionState,
14837
14838
  profileContext: BrowserProfileContext.optional()
@@ -15658,6 +15659,7 @@ var StartOAuthResponse = external_exports.object({
15658
15659
  });
15659
15660
 
15660
15661
  // ../../packages/contracts/src/schedules.ts
15662
+ var ScheduleInvocation = external_exports.enum(["manager", "agent"]);
15661
15663
  var ScheduleCadence = external_exports.discriminatedUnion("kind", [
15662
15664
  /** Every N minutes. Overlap protection prevents a slow run from piling up. */
15663
15665
  external_exports.object({ kind: external_exports.literal("every"), minutes: external_exports.number().int().min(1).max(10080) }),
@@ -15679,7 +15681,13 @@ var ScheduleSkipReason = external_exports.enum([
15679
15681
  "agent_draft",
15680
15682
  "agent_paused",
15681
15683
  "agent_archived",
15682
- "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"
15683
15691
  ]);
15684
15692
  var ScheduleActionRequiredCode = external_exports.enum(["pinned_machine_removed"]);
15685
15693
  var ScheduleActionRequired = external_exports.object({
@@ -15695,7 +15703,16 @@ var ScheduleActionRequired = external_exports.object({
15695
15703
  var Schedule = external_exports.object({
15696
15704
  id: ScheduleId,
15697
15705
  orgId: OrgId,
15698
- agentId: AgentId,
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),
15699
15716
  name: external_exports.string().min(1).max(120),
15700
15717
  instructions: external_exports.string().min(1).max(1e5),
15701
15718
  /** Reusable built-in or organization routine that created this row; null for one-off work. */
@@ -15718,7 +15735,8 @@ var Schedule = external_exports.object({
15718
15735
  updatedAt: IsoDate
15719
15736
  });
15720
15737
  var CreateScheduleRequest = external_exports.object({
15721
- agentId: AgentId,
15738
+ /** Omitted or null means Auto. */
15739
+ assignedAgentId: AgentId.nullable().optional(),
15722
15740
  name: Schedule.shape.name,
15723
15741
  instructions: Schedule.shape.instructions,
15724
15742
  presetId: Schedule.shape.presetId.removeDefault().optional(),
@@ -15729,6 +15747,7 @@ var CreateScheduleRequest = external_exports.object({
15729
15747
  var UpdateScheduleRequest = external_exports.object({
15730
15748
  name: Schedule.shape.name,
15731
15749
  instructions: Schedule.shape.instructions,
15750
+ assignedAgentId: AgentId.nullable(),
15732
15751
  cadence: ScheduleCadence,
15733
15752
  endsAt: IsoDate.nullable(),
15734
15753
  requestedHostId: HostId.nullable(),
@@ -18699,7 +18718,8 @@ var HostRemovalImpact = external_exports.object({
18699
18718
  external_exports.object({
18700
18719
  id: ScheduleId,
18701
18720
  name: external_exports.string().max(120),
18702
- agentId: AgentId,
18721
+ /** Null on an Auto Automation, which names no teammate. */
18722
+ agentId: AgentId.nullable(),
18703
18723
  agentName: external_exports.string().max(120)
18704
18724
  })
18705
18725
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zixt/host",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/client.ts",