Skip to content
Registry

compose-ui

v0.1.9

Compose project supervision in the Console — a page over compose::* with live container state, lifecycle actions, worker packages, and per-container log tails.

license: Apache-2.0composeconsolelogsoperationssupervisorui

Install

bash
iii trigger compose::add worker=compose-ui

Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.

Functions3

compose-ui::logs

Function

Read the last lines of one compose container's log file (default 200, at most 500; a missing log answers with missing: true).

Request
  • containerstringrequired

    Container name as declared in the compose file.

  • filestring

    Compose file on the daemon host; defaults to the daemon project.

  • linesinteger· int641…500

    Lines from the end; defaults to 200 and is capped at 500.

Response
  • containerstringrequired
  • linesstring[]required
  • missingbooleanrequired
  • pathstringrequired
  • sizeinteger· uint64requiredmin 0
  • truncatedbooleanrequired

compose-ui::project

Function

Read the declared compose file plus what each container listens on: namespace, engine endpoint, timeouts, worker source, dependencies, environment keys, run script, PID, listening TCP ports.

Request
  • filestring

    Compose file on the daemon host; defaults to the daemon project.

Response
  • containersobject[]required
    • environmentstring[]required
    • namestringrequired
    • pidinteger· uint32min 0
    • portsobject[]required
      • addressstringrequired
      • portinteger· uint16requiredmin 0
    • refstringrequired
    • runstring
    • sourcestringrequiredenum path, package, unknown
    • start_afterstring[]required
    • versionstring
  • daemon_pidinteger· uint32min 0
  • daemon_portsobject[]required
    • addressstringrequired
    • portinteger· uint16requiredmin 0
  • engine_hoststring
  • engine_portinteger· uint16min 0
  • engine_urlstring
  • filestringrequired
  • namespacestring
  • startup_timeoutstring
  • stop_timeoutstring

compose-ui::ui-content

Function

Serve the compose-ui worker's injected console UI assets (content function for its console:script / console:style triggers).

Request
  • pathstringrequired

    The asset path from the trigger config (e.g. `state/page.js`).

Response
  • contentstringrequired

    The asset source, verbatim.

  • content_typestringrequired

    MIME type the console should serve the asset with.

Triggers1

compose-ui::changed

Trigger

Fires when the compose daemon writes state.json or the compose file changes. Bind with an empty config.

Invocation
Empty object
Return
  • captured_atinteger· uint64requiredmin 0
  • filestringrequired
  • kindstringrequiredenum state, file
  • namespacestringrequired
  • pathstringrequired
  • state_dirstringrequired

Search the registry

Find workers, kits and executables, or jump to a page.