@openkaiden/api 0.4.0-next.202610201057-761bfbc → 0.4.0-next.202610201222-e58acc6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openkaiden/api",
3
- "version": "0.4.0-next.202610201057-761bfbc",
3
+ "version": "0.4.0-next.202610201222-e58acc6",
4
4
  "description": "API for Kaiden extensions",
5
5
  "repository": "https://github.com/openkaiden/kaiden",
6
6
  "publishConfig": {
@@ -5485,6 +5485,40 @@ declare module '@openkaiden/api' {
5485
5485
  readonly workspace: AgentWorkspaceConfiguration;
5486
5486
  }
5487
5487
 
5488
+ export interface Host {
5489
+ /**
5490
+ * Hostname (including FQDN form). May include * (eg *.domain.com)
5491
+ */
5492
+ readonly hostname: string;
5493
+ }
5494
+
5495
+ /** A named set of hosts that can be added to an agent workspace. */
5496
+ export interface HostPreset {
5497
+ /**
5498
+ * Unique identifier for this preset. Duplicates are rejected.
5499
+ */
5500
+ readonly id: string;
5501
+ /**
5502
+ * Display name for this preset.
5503
+ */
5504
+ readonly name: string;
5505
+ /**
5506
+ * Optional description of this preset. Defaults to `undefined`.
5507
+ */
5508
+ readonly description?: string;
5509
+ /**
5510
+ * Host entries included in this preset.
5511
+ */
5512
+ readonly hosts: ReadonlyArray<Host>;
5513
+ }
5514
+
5515
+ export namespace workspace {
5516
+ /** Register a host preset for use by agent workspaces. The preset ID must be unique. */
5517
+ export function registerHostPreset(preset: HostPreset): Disposable;
5518
+ /** Get all currently registered host presets. */
5519
+ export function getHostPresets(): ReadonlyArray<HostPreset>;
5520
+ }
5521
+
5488
5522
  export interface Agent {
5489
5523
  readonly id: string;
5490
5524
  readonly name: string;