delegation-layer 0.1.4 → 0.1.5

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/README.md CHANGED
@@ -65,7 +65,7 @@ npx --yes delegation-layer install \
65
65
  ```
66
66
 
67
67
  The skill installer only installs guidance for your agent. It does not install
68
- the CLI, change provider logins, or configure a supervisor.
68
+ the CLI, change provider logins, or run a task.
69
69
 
70
70
  ### Install the CLI
71
71
 
@@ -85,8 +85,9 @@ pnpm dlx delegation-layer install-cli
85
85
  bunx --bun delegation-layer install-cli
86
86
  ```
87
87
 
88
- The release installer verifies checksums and installs `delegate` and
89
- `delegate-run` into `$HOME/.local/bin` by default. Set
88
+ The release installer verifies checksums and installs `delegate`,
89
+ `delegate-run`, `pueue`, and `pueued` into `$HOME/.local/bin` by default. The
90
+ CLI uses the bundled supervisor automatically. Set
90
91
  `DELEGATION_LAYER_INSTALL_DIR` to use another directory.
91
92
 
92
93
  Check the installation:
@@ -102,14 +103,17 @@ Normal users do not need Go or Node after choosing an installation method.
102
103
  Dispatching a task requires:
103
104
 
104
105
  - a released Delegation Layer CLI;
105
- - Pueue 4.0.4 with a private, running `pueued` daemon;
106
- - a signed-in supported provider CLI such as `agy`, `codex`, `claude`, `pi`,
107
- or `opencode`;
106
+ - a compatible provider CLI with an available native login;
107
+ - a supported provider CLI such as `agy`, `codex`, `claude`, `pi`, or `opencode`;
108
108
  - Darwin or Linux on amd64 or arm64 for the supplied release builds.
109
109
 
110
- Go is only needed for source builds and contributor work. Node.js 18 or newer
111
- is needed for the npm-based installers; it is not a runtime requirement for the
112
- released Go CLI. Provider authentication remains native to each provider.
110
+ The release contains the supervisor client and daemon and starts a private
111
+ instance under the state root, recovering it when a control command finds it
112
+ stopped. An explicit `--pueue-config` or
113
+ `DELEGATE_PUEUE_CONFIG` can still select an existing compatible supervisor for
114
+ advanced integrations. Node.js 18 or newer is needed only for the npm-based
115
+ installers; it is not a runtime requirement for the released Go CLI. Provider
116
+ authentication remains native to each provider.
113
117
 
114
118
  ## Try one bounded task
115
119
 
@@ -119,7 +123,7 @@ Create a brief and a workspace outside the private state root:
119
123
  mkdir -p "$HOME/delegation-workspace"
120
124
  printf '%s\n' 'Inspect the repository and summarize the current build status.' > brief.txt
121
125
 
122
- delegate --pueue-config /absolute/path/to/pueue.yml dispatch \
126
+ delegate --root "$HOME/delegation-state" dispatch \
123
127
  --provider codex:exec \
124
128
  --brief "$PWD/brief.txt" \
125
129
  --cwd "$HOME/delegation-workspace" \
package/install.sh CHANGED
@@ -65,12 +65,12 @@ fi
65
65
 
66
66
  tar -xzf "$ARCHIVE" -C "$TEMP_DIR" || fail "could not extract $ARCHIVE"
67
67
  mkdir -p "$INSTALL_DIR"
68
- for binary in delegate delegate-run; do
68
+ for binary in delegate delegate-run pueue pueued; do
69
69
  [ -f "$TEMP_DIR/$binary" ] || fail "release archive does not contain $binary"
70
70
  install -m 0755 "$TEMP_DIR/$binary" "$INSTALL_DIR/$binary"
71
71
  done
72
72
 
73
- printf 'Installed delegate and delegate-run %s in %s\n' "$VERSION" "$INSTALL_DIR"
73
+ printf 'Installed delegation-layer CLI and bundled supervisor %s in %s\n' "$VERSION" "$INSTALL_DIR"
74
74
  case ":${PATH:-}:" in
75
75
  *:"$INSTALL_DIR":*) ;;
76
76
  *) printf 'Add %s to PATH if it is not already there.\n' "$INSTALL_DIR" ;;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "delegation-layer",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Multi-provider AI agent delegation CLI and Agent Skill for running bounded coding tasks across provider CLIs.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -13,11 +13,12 @@ provider names, release versions, or native CLI syntax.
13
13
 
14
14
  ## Preconditions
15
15
 
16
- The host is responsible for installing and configuring the CLI and supervisor.
17
- This skill must not install, build, upgrade, or repair either one. It may check
18
- whether `delegate` is available, use a configured private supervisor
19
- configuration and socket, and create separate task and state directories that
20
- it is authorized to use.
16
+ The host is responsible for installing the CLI. This skill must not install,
17
+ build, upgrade, or repair it. It may check whether `delegate` is available and
18
+ create separate task and state directories that it is authorized to use. A
19
+ released CLI carries the compatible `pueue` and `pueued` supervisor binaries
20
+ and starts or recovers a private instance automatically; an explicit supervisor
21
+ config is only needed for an advanced integration.
21
22
  Authentication is a separate live gate; do not invent a provider-specific
22
23
  login check or classify a missing login as static incompatibility.
23
24
 
@@ -65,7 +66,6 @@ mkdir -p "${HOME}/delegation-workspace" "${HOME}/delegation-state"
65
66
  printf '%s\n' 'Inspect the workspace and return a short summary.' > "${HOME}/delegation-brief.txt"
66
67
 
67
68
  delegate --root "${HOME}/delegation-state" \
68
- --pueue-config /absolute/path/to/private-pueue.yml \
69
69
  dispatch \
70
70
  --provider PROFILE \
71
71
  --brief "${HOME}/delegation-brief.txt" \
@@ -75,11 +75,14 @@ delegate --root "${HOME}/delegation-state" \
75
75
  --json
76
76
  ```
77
77
 
78
- Use the host's configured private supervisor path (or its
79
- `DELEGATE_PUEUE_CONFIG` equivalent); the placeholder above is not a path to
80
- create. If the supervisor or provider executable is unavailable, stop on the
81
- CLI's structured error. For live acceptance, an unavailable authentication
82
- prerequisite is `blocked`; preserve that evidence and never relabel it as
78
+ The default release owns the private supervisor lifecycle under the state root
79
+ and recovers its bundled daemon when control commands find it stopped. Collection
80
+ stays observational and does not start a supervisor. If an existing compatible
81
+ supervisor must be used, pass its absolute
82
+ `--pueue-config` path or set `DELEGATE_PUEUE_CONFIG`. If the CLI or provider
83
+ executable is unavailable, stop on the CLI's structured error. For live
84
+ acceptance, an unavailable authentication prerequisite is `blocked`; preserve
85
+ that evidence and never relabel it as
83
86
  incompatible or passed.
84
87
 
85
88
  Save the returned `task_id`. Admission records one immutable request and at