@archastro/sdk
    Preparing search index...

    Class ThreadComputerResource

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Provision a computer for a thread Creates a computer owned by the thread's owner. Requires permission to manage the thread; every thread viewer may use the computer.

      Parameters

      • thread: string

        Thread ID (thr_...).

      • input: {
            acl?: {
                add?: { actions: string[]; principal?: string; principal_type: string }[];
                add_denies?: {
                    actions: string[];
                    principal?: string;
                    principal_type: string;
                }[];
                denies?: { actions: string[]; principal?: string; principal_type: string }[];
                grants?: { actions: string[]; principal?: string; principal_type: string }[];
                preserve_denies?: boolean;
                remove?: { principal?: string; principal_type: string }[];
                remove_denies?: { principal?: string; principal_type: string }[];
            };
            config?: Record<string, unknown>;
            key?: string;
            metadata?: Record<string, unknown>;
            name: string;
            provider?: string;
            region?: string;
            repositories?: {
                app_access?: {
                    reason?: "refused" | "unavailable";
                    type: "granted" | "not_granted" | "not_installed";
                };
                ref?: string
                | null;
                repository: string;
            }[];
        }

        Request body.

        • Optionalacl?: {
              add?: { actions: string[]; principal?: string; principal_type: string }[];
              add_denies?: {
                  actions: string[];
                  principal?: string;
                  principal_type: string;
              }[];
              denies?: { actions: string[]; principal?: string; principal_type: string }[];
              grants?: { actions: string[]; principal?: string; principal_type: string }[];
              preserve_denies?: boolean;
              remove?: { principal?: string; principal_type: string }[];
              remove_denies?: { principal?: string; principal_type: string }[];
          }

          Initial access control list.

        • Optionalconfig?: Record<string, unknown>

          Provider configuration; top-level provider takes precedence.

        • Optionalkey?: string

          Stable key unique within this thread.

        • Optionalmetadata?: Record<string, unknown>

          Arbitrary computer metadata.

        • name: string

          Human-readable computer name.

        • Optionalprovider?: string

          Compute backend: sprites (default), vercel, e2b, or devbox (a devbox lease owned by the thread's user; personal threads only, and the user needs devbox access).

        • Optionalregion?: string

          Provider region; defaults to iad.

        • Optionalrepositories?: {
              app_access?: {
                  reason?: "refused" | "unavailable";
                  type: "granted" | "not_granted" | "not_installed";
              };
              ref?: string
              | null;
              repository: string;
          }[]

          Ordered GitHub checkouts (maximum 16): {repository: owner/name, ref: optional ref}. First is primary.

      Returns Promise<AgentComputer>

      The newly created computer. Returns HTTP 201.