@roamcode.ai/server 1.3.0 → 1.4.0

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/start.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { FastifyInstance } from 'fastify';
2
+ import { z } from 'zod';
2
3
 
3
4
  /**
4
5
  * Wiring for the mcp-send server (Claude → user attachments). When present, the spawn layer writes a
@@ -369,6 +370,23 @@ interface PairingTicket {
369
370
  scopes: DeviceScope[];
370
371
  }
371
372
 
373
+ declare const CloudAutomationWebhookRegistrationSchema: z.ZodObject<{
374
+ hookId: z.ZodString;
375
+ automationId: z.ZodString;
376
+ triggerId: z.ZodString;
377
+ secretHash: z.ZodString;
378
+ enabled: z.ZodBoolean;
379
+ }, z.core.$strict>;
380
+ declare const CloudAutomationInvocationSchema: z.ZodObject<{
381
+ id: z.ZodUUID;
382
+ automationId: z.ZodString;
383
+ triggerId: z.ZodString;
384
+ hookId: z.ZodString;
385
+ createdAt: z.ZodNumber;
386
+ }, z.core.$strict>;
387
+ type CloudAutomationWebhookRegistration = z.infer<typeof CloudAutomationWebhookRegistrationSchema>;
388
+ type CloudAutomationInvocation = z.infer<typeof CloudAutomationInvocationSchema>;
389
+
372
390
  type TeamStoreMode = "sqlite" | "memory-fallback";
373
391
  type TeamMemberKind = "person" | "service";
374
392
  type TeamMemberStatus = "active" | "suspended" | "removed";
@@ -914,6 +932,7 @@ interface CloudHostRuntimeStatus {
914
932
  running: boolean;
915
933
  heartbeatFailures: number;
916
934
  authorizationFailures: number;
935
+ automationFailures: number;
917
936
  authorizationIssue?: CloudHostAuthorizationIssue;
918
937
  lastHeartbeatAt?: number;
919
938
  lastAuthorizationAt?: number;
@@ -1124,6 +1143,10 @@ interface CreateServerResult {
1124
1143
  presence: PresenceCoordinator;
1125
1144
  /** False when tmux/node-pty is unavailable → terminal sessions are disabled (startServer warns loudly). */
1126
1145
  terminalAvailable: boolean;
1146
+ /** Privacy-bounded webhook routing records synchronized to an optional managed control plane. */
1147
+ automationWebhookRegistrations(): CloudAutomationWebhookRegistration[];
1148
+ /** Durably accepts one control-plane signal; the invocation id makes redelivery idempotent. */
1149
+ acceptCloudAutomationInvocation(invocation: CloudAutomationInvocation): Promise<void>;
1127
1150
  }
1128
1151
 
1129
1152
  type RelayHostStatus = "idle" | "connecting" | "online" | "reconnecting" | "stopped";