github Termix-SSH/Termix sdk-v2.4.0
Plugin SDK v2.4.0

42 minutes ago

Plugin API 2.4.0. Needs Termix 26.11.2.

Added

  • PluginHostLockProvider.lockedHosts() lists every host a provider locks. A plugin process needs it to provide host locks
  • ctx.hosts.status.provide, ctx.sync.provide and ctx.sync.host work in a plugin process
  • ctx.sync.host.desktop.connectionOrigin() reads the desktop wide default for where connections start
  • ctx.files.readEnvFile(name) reads the file an admin named in a manifest env variable marked "file": true, such as a mounted config file. A plugin process can't read it itself
  • Manifest env entries take "file": true
  • Capability config:secrets and ctx.files.readSecret({ env } | { file }) read a secret a config file points at, such as a Docker secret. Never Termix's own variables, key files or data folder
  • createMockCtx({ envFiles, configSecrets }) answers ctx.files.readEnvFile and readSecret

Changed

  • In a plugin process, ctx.sync.host.replica.orderSelfReferences, an entity's covers, http.normalizeServerUrl, plugins.lastRemote and plugins.localNames return Promises
  • createMockCtx({ sandbox: true }) takes host locks with lockedHosts, a host status provider and a sync provider

Don't miss a new Termix release

NewReleases is sending notifications on new releases.