@hyperdrive.bot/paseo-protocol 0.3.43 → 0.3.45

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.
@@ -5484,6 +5484,25 @@ export declare const ServerCapabilitiesSchema: z.ZodObject<{
5484
5484
  }, z.core.$strip>;
5485
5485
  }, z.core.$strip>>;
5486
5486
  }, z.core.$loose>;
5487
+ /**
5488
+ * Jarvis runtime info advertised to every connected client (JARVIS-V1-SPEC §8).
5489
+ *
5490
+ * The judge id lived in `process.env.PASEO_JARVIS_AGENT_ID` and nowhere else, so
5491
+ * the client had no way to name the session and no way to notice the feature had
5492
+ * gone dark. `available` is the load-bearing field: it is NOT "the env var is
5493
+ * set", it is "the judge record exists and is not archived". A green light wired
5494
+ * to the switch instead of to the lamp is worse than no light, because it is
5495
+ * believed.
5496
+ *
5497
+ * Absent on daemons that predate this, which the client renders the same as
5498
+ * "not configured": no button.
5499
+ */
5500
+ export declare const JarvisServerInfoSchema: z.ZodObject<{
5501
+ agentId: z.ZodString;
5502
+ available: z.ZodBoolean;
5503
+ shadow: z.ZodBoolean;
5504
+ }, z.core.$loose>;
5505
+ export type JarvisServerInfo = z.infer<typeof JarvisServerInfoSchema>;
5487
5506
  export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
5488
5507
  status: z.ZodLiteral<"server_info">;
5489
5508
  serverId: z.ZodString;
@@ -5529,6 +5548,11 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
5529
5548
  meetingsLiveCapture: z.ZodOptional<z.ZodBoolean>;
5530
5549
  kanbanBoardConfig: z.ZodOptional<z.ZodBoolean>;
5531
5550
  }, z.core.$strip>>;
5551
+ jarvis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5552
+ agentId: z.ZodString;
5553
+ available: z.ZodBoolean;
5554
+ shadow: z.ZodBoolean;
5555
+ }, z.core.$loose>>>;
5532
5556
  }, z.core.$loose>, z.ZodTransform<{
5533
5557
  hostname: string | null;
5534
5558
  version: string | null;
@@ -5574,6 +5598,12 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
5574
5598
  meetingsLiveCapture?: boolean | undefined;
5575
5599
  kanbanBoardConfig?: boolean | undefined;
5576
5600
  } | undefined;
5601
+ jarvis?: {
5602
+ [x: string]: unknown;
5603
+ agentId: string;
5604
+ available: boolean;
5605
+ shadow: boolean;
5606
+ } | null | undefined;
5577
5607
  }, {
5578
5608
  [x: string]: unknown;
5579
5609
  status: "server_info";
@@ -5620,6 +5650,12 @@ export declare const ServerInfoStatusPayloadSchema: z.ZodPipe<z.ZodObject<{
5620
5650
  meetingsLiveCapture?: boolean | undefined;
5621
5651
  kanbanBoardConfig?: boolean | undefined;
5622
5652
  } | undefined;
5653
+ jarvis?: {
5654
+ [x: string]: unknown;
5655
+ agentId: string;
5656
+ available: boolean;
5657
+ shadow: boolean;
5658
+ } | null | undefined;
5623
5659
  }>>;
5624
5660
  export declare const StatusMessageSchema: z.ZodObject<{
5625
5661
  type: z.ZodLiteral<"status">;
package/dist/messages.js CHANGED
@@ -2863,6 +2863,28 @@ const ServerCapabilitiesFromUnknownSchema = z
2863
2863
  }
2864
2864
  return parsed.data;
2865
2865
  });
2866
+ /**
2867
+ * Jarvis runtime info advertised to every connected client (JARVIS-V1-SPEC §8).
2868
+ *
2869
+ * The judge id lived in `process.env.PASEO_JARVIS_AGENT_ID` and nowhere else, so
2870
+ * the client had no way to name the session and no way to notice the feature had
2871
+ * gone dark. `available` is the load-bearing field: it is NOT "the env var is
2872
+ * set", it is "the judge record exists and is not archived". A green light wired
2873
+ * to the switch instead of to the lamp is worse than no light, because it is
2874
+ * believed.
2875
+ *
2876
+ * Absent on daemons that predate this, which the client renders the same as
2877
+ * "not configured": no button.
2878
+ */
2879
+ export const JarvisServerInfoSchema = z
2880
+ .object({
2881
+ agentId: z.string().trim().min(1),
2882
+ /** Judge record resolves and is not archived. False = configured but dark. */
2883
+ available: z.boolean(),
2884
+ /** Shadow mode logs what it WOULD have said instead of pushing (§9.1). */
2885
+ shadow: z.boolean(),
2886
+ })
2887
+ .passthrough();
2866
2888
  export const ServerInfoStatusPayloadSchema = z
2867
2889
  .object({
2868
2890
  status: z.literal("server_info"),
@@ -2940,6 +2962,10 @@ export const ServerInfoStatusPayloadSchema = z
2940
2962
  kanbanBoardConfig: z.boolean().optional(),
2941
2963
  })
2942
2964
  .optional(),
2965
+ // COMPAT(jarvis): added in v0.3.X, drop the gate when floor >= that release.
2966
+ // Sibling of `features` rather than a boolean inside it, because the client
2967
+ // needs the judge's agent id to navigate to the session, not just a yes/no.
2968
+ jarvis: JarvisServerInfoSchema.nullable().optional(),
2943
2969
  })
2944
2970
  .passthrough()
2945
2971
  .transform((payload) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperdrive.bot/paseo-protocol",
3
- "version": "0.3.43",
3
+ "version": "0.3.45",
4
4
  "description": "Paseo shared protocol schemas and wire types",
5
5
  "files": [
6
6
  "dist",