@agimon-ai/po-core 0.0.0-alpha.121 → 0.0.0-alpha.122

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.
@@ -859,10 +859,21 @@ const headlessHttpContracts = [
859
859
  }, { additionalProperties: false })),
860
860
  availability: "Host provides ensureHomeCoordinator; otherwise 501"
861
861
  }),
862
+ host("coordinators.add", "/api/coordinators", "POST", typebox.Type.Object({
863
+ sessionId: Text$3,
864
+ created: typebox.Type.Boolean()
865
+ }), {
866
+ body: body(typebox.Type.Object({ workspaceId: Optional$2(typebox.Type.String({ minLength: 1 })) }, { additionalProperties: false })),
867
+ availability: "Host provides addCoordinator; otherwise 501"
868
+ }),
862
869
  host("sessions.get", "/api/workspaces/{workspaceId}/sessions/{sessionId}", "GET", SessionSummarySchema),
863
870
  host("sessions.delete", "/api/workspaces/{workspaceId}/sessions/{sessionId}", "DELETE", ApiOkSchema),
864
871
  host("sessions.history", "/api/workspaces/{workspaceId}/sessions/{sessionId}/history", "GET", typebox.Type.Object({ sessions: typebox.Type.Array(SavedSession) }), { availability: "Host provides sessionHistory" }),
865
872
  host("sessions.restart", "/api/workspaces/{workspaceId}/sessions/{sessionId}/restart", "POST", ApiOkSchema, { availability: "Host provides restartSession" }),
873
+ host("sessions.role", "/api/workspaces/{workspaceId}/sessions/{sessionId}/role", "POST", ApiOkSchema, {
874
+ body: body(typebox.Type.Object({ coordinator: typebox.Type.Boolean() }, { additionalProperties: false })),
875
+ availability: "Host provides setSessionRole"
876
+ }),
866
877
  host("sessions.revive", "/api/workspaces/{workspaceId}/sessions/{sessionId}/revive", "POST", ApiOkSchema, { availability: "Host provides reviveSession" }),
867
878
  host("sessions.resume", "/api/workspaces/{workspaceId}/sessions/{sessionId}/resume", "POST", typebox.Type.Object({ sessionId: Text$3 }), {
868
879
  availability: "Host provides resumeSession",