@@ -257,6 +257,16 @@ export interface AmbientAgentConfig {
257257 */
258258 name ?: string ;
259259
260+ /**
261+ * Configures sharing behavior for the run's shared session. When set, the worker
262+ * emits `--share public:<level>` and the bundled Warp client applies an
263+ * anyone-with-link ACL to the shared session once it has bootstrapped. The same
264+ * ACL is mirrored onto the backing conversation so link viewers can read the
265+ * conversation without being on the run's team. Subject to the workspace-level
266+ * anyone-with-link sharing setting.
267+ */
268+ session_sharing ?: AmbientAgentConfig . SessionSharing ;
269+
260270 /**
261271 * Skill specification identifying which agent skill to use. Format:
262272 * "{owner}/{repo}:{skill_path}" Example:
@@ -299,6 +309,27 @@ export namespace AmbientAgentConfig {
299309 */
300310 claude_auth_secret_name ?: string ;
301311 }
312+
313+ /**
314+ * Configures sharing behavior for the run's shared session. When set, the worker
315+ * emits `--share public:<level>` and the bundled Warp client applies an
316+ * anyone-with-link ACL to the shared session once it has bootstrapped. The same
317+ * ACL is mirrored onto the backing conversation so link viewers can read the
318+ * conversation without being on the run's team. Subject to the workspace-level
319+ * anyone-with-link sharing setting.
320+ */
321+ export interface SessionSharing {
322+ /**
323+ * Grants anyone-with-link access at the specified level to the run's shared
324+ * session and backing conversation.
325+ *
326+ * - VIEWER: link viewers can read the session and conversation.
327+ * - EDITOR: link viewers can also interact with the session. Anonymous
328+ * (unauthenticated) reads are not supported in this release; link viewers must
329+ * still be authenticated Warp users.
330+ */
331+ public_access ?: 'VIEWER' | 'EDITOR' ;
332+ }
302333}
303334
304335/**
0 commit comments