Class ServerSessionsApi
java.lang.Object
com.github.copilot.generated.rpc.ServerSessionsApi
API methods for the
sessions namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbulkDelete(SessionsBulkDeleteParams params) Session IDs to close, deactivate, and delete from disk.checkInUse(SessionsCheckInUseParams params) Session IDs to test for live in-use locks.close()Session ID to close.Params to attach or detach an in-process ExtensionController delegate.connect()Remote session connection parameters.Session metadata records to enrich with summary and context information.UUID prefix to resolve to a unique session ID.GitHub task ID to look up.fork(SessionsForkParams params) Source session identifier to fork from, optional event-ID boundary, and optional friendly name for the new session.Session ID whose board entry count should be returned.Session ID whose event-log file path to compute.Optional working-directory context used to score session relevance.Session ID to look up the persisted remote-steerable flag for.Wrapper for the singleton's current status.getSizes()Map of sessionId -> on-disk size in bytes for each session's workspace directory.list()Optional source filter, metadata-load limit, and context filter applied to the returned sessions.Active session ID whose deferred repo-level hooks should be loaded.open()Open a session by creating, resuming, attaching, connecting to a remote, or handing off.Cursor and optional long-poll wait for polling runtime-spawned sessions.pruneOld(SessionsPruneOldParams params) Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true).Params to attach an extension loader's tools to a session.Session ID whose in-use lock should be released.Active session ID and an optional flag for deferring repo-level hooks until folder trust.save()Session ID whose pending events should be flushed to disk.Manager-wide additional plugins to register; replaces any previously-configured set.Patch for the singleton's steering state.Parameters for attaching the remote-control singleton to a session.Parameters for stopping the remote-control singleton.Parameters for atomically rebinding the remote-control singleton.
-
Method Details
-
open
Open a session by creating, resuming, attaching, connecting to a remote, or handing off.- Since:
- 1.0.0
-
fork
Source session identifier to fork from, optional event-ID boundary, and optional friendly name for the new session.- Since:
- 1.0.0
-
connect
Remote session connection parameters.- Since:
- 1.0.0
-
list
Optional source filter, metadata-load limit, and context filter applied to the returned sessions.- Since:
- 1.0.0
-
findByTaskId
@CopilotExperimental public CompletableFuture<SessionsFindByTaskIdResult> findByTaskId(SessionsFindByTaskIdParams params) GitHub task ID to look up.- Since:
- 1.0.0
-
findByPrefix
@CopilotExperimental public CompletableFuture<SessionsFindByPrefixResult> findByPrefix(SessionsFindByPrefixParams params) UUID prefix to resolve to a unique session ID.- Since:
- 1.0.0
-
getLastForContext
@CopilotExperimental public CompletableFuture<SessionsGetLastForContextResult> getLastForContext(SessionsGetLastForContextParams params) Optional working-directory context used to score session relevance.- Since:
- 1.0.0
-
getEventFilePath
Session ID whose event-log file path to compute.- Since:
- 1.0.0
-
getSizes
Map of sessionId -> on-disk size in bytes for each session's workspace directory.- Since:
- 1.0.0
-
checkInUse
@CopilotExperimental public CompletableFuture<SessionsCheckInUseResult> checkInUse(SessionsCheckInUseParams params) Session IDs to test for live in-use locks.- Since:
- 1.0.0
-
getPersistedRemoteSteerable
@CopilotExperimental public CompletableFuture<SessionsGetPersistedRemoteSteerableResult> getPersistedRemoteSteerable()Session ID to look up the persisted remote-steerable flag for.- Since:
- 1.0.0
-
close
-
bulkDelete
@CopilotExperimental public CompletableFuture<SessionsBulkDeleteResult> bulkDelete(SessionsBulkDeleteParams params) Session IDs to close, deactivate, and delete from disk.- Since:
- 1.0.0
-
pruneOld
@CopilotExperimental public CompletableFuture<SessionsPruneOldResult> pruneOld(SessionsPruneOldParams params) Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true).- Since:
- 1.0.0
-
save
Session ID whose pending events should be flushed to disk.- Since:
- 1.0.0
-
releaseLock
Session ID whose in-use lock should be released.- Since:
- 1.0.0
-
enrichMetadata
@CopilotExperimental public CompletableFuture<SessionsEnrichMetadataResult> enrichMetadata(SessionsEnrichMetadataParams params) Session metadata records to enrich with summary and context information.- Since:
- 1.0.0
-
reloadPluginHooks
@CopilotExperimental public CompletableFuture<Void> reloadPluginHooks(SessionsReloadPluginHooksParams params) Active session ID and an optional flag for deferring repo-level hooks until folder trust.- Since:
- 1.0.0
-
loadDeferredRepoHooks
@CopilotExperimental public CompletableFuture<SessionsLoadDeferredRepoHooksResult> loadDeferredRepoHooks()Active session ID whose deferred repo-level hooks should be loaded.- Since:
- 1.0.0
-
setAdditionalPlugins
@CopilotExperimental public CompletableFuture<Void> setAdditionalPlugins(SessionsSetAdditionalPluginsParams params) Manager-wide additional plugins to register; replaces any previously-configured set.- Since:
- 1.0.0
-
getBoardEntryCount
@CopilotExperimental public CompletableFuture<SessionsGetBoardEntryCountResult> getBoardEntryCount()Session ID whose board entry count should be returned.- Since:
- 1.0.0
-
startRemoteControl
@CopilotExperimental public CompletableFuture<SessionsStartRemoteControlResult> startRemoteControl(SessionsStartRemoteControlParams params) Parameters for attaching the remote-control singleton to a session.- Since:
- 1.0.0
-
transferRemoteControl
@CopilotExperimental public CompletableFuture<SessionsTransferRemoteControlResult> transferRemoteControl(SessionsTransferRemoteControlParams params) Parameters for atomically rebinding the remote-control singleton.- Since:
- 1.0.0
-
setRemoteControlSteering
@CopilotExperimental public CompletableFuture<SessionsSetRemoteControlSteeringResult> setRemoteControlSteering(SessionsSetRemoteControlSteeringParams params) Patch for the singleton's steering state.- Since:
- 1.0.0
-
stopRemoteControl
Parameters for stopping the remote-control singleton.- Since:
- 1.0.0
-
getRemoteControlStatus
@CopilotExperimental public CompletableFuture<SessionsGetRemoteControlStatusResult> getRemoteControlStatus()Wrapper for the singleton's current status.- Since:
- 1.0.0
-
pollSpawnedSessions
@CopilotExperimental public CompletableFuture<SessionsPollSpawnedSessionsResult> pollSpawnedSessions()Cursor and optional long-poll wait for polling runtime-spawned sessions.- Since:
- 1.0.0
-
registerExtensionToolsOnSession
@CopilotExperimental public CompletableFuture<SessionsRegisterExtensionToolsOnSessionResult> registerExtensionToolsOnSession(SessionsRegisterExtensionToolsOnSessionParams params) Params to attach an extension loader's tools to a session.- Since:
- 1.0.0
-
configureSessionExtensions
@CopilotExperimental public CompletableFuture<Void> configureSessionExtensions(SessionsConfigureSessionExtensionsParams params) Params to attach or detach an in-process ExtensionController delegate.- Since:
- 1.0.0
-