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.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 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.getSizes()Map of sessionId -> on-disk size in bytes for each session's workspace directory.list()Optional metadata-load limit and filters applied to the returned sessions.Active session ID whose deferred repo-level hooks should be loaded.pruneOld(SessionsPruneOldParams params) Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true).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.
-
Method Details
-
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 metadata-load limit and filters applied to the returned sessions.- Since:
- 1.0.0
-
findByTaskId
public CompletableFuture<SessionsFindByTaskIdResult> findByTaskId(SessionsFindByTaskIdParams params) GitHub task ID to look up.- Since:
- 1.0.0
-
findByPrefix
public CompletableFuture<SessionsFindByPrefixResult> findByPrefix(SessionsFindByPrefixParams params) UUID prefix to resolve to a unique session ID.- Since:
- 1.0.0
-
getLastForContext
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
Session IDs to test for live in-use locks.- Since:
- 1.0.0
-
getPersistedRemoteSteerable
Session ID to look up the persisted remote-steerable flag for.- Since:
- 1.0.0
-
close
Session ID to close.- Since:
- 1.0.0
-
bulkDelete
Session IDs to close, deactivate, and delete from disk.- Since:
- 1.0.0
-
pruneOld
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
public CompletableFuture<SessionsEnrichMetadataResult> enrichMetadata(SessionsEnrichMetadataParams params) Session metadata records to enrich with summary and context information.- Since:
- 1.0.0
-
reloadPluginHooks
Active session ID and an optional flag for deferring repo-level hooks until folder trust.- Since:
- 1.0.0
-
loadDeferredRepoHooks
Active session ID whose deferred repo-level hooks should be loaded.- Since:
- 1.0.0
-
setAdditionalPlugins
Manager-wide additional plugins to register; replaces any previously-configured set.- Since:
- 1.0.0
-