agentful 0.4.45 → 0.4.47

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
@@ -36,6 +36,7 @@ agentful open # open the preview
36
36
  | `licenses` | Licences of the software shipped with this CLI |
37
37
  | `-s, --session <id>` | Resume a previous coding session without changing its model |
38
38
  | `-m, --model <provider/model> [--variant <name>]` | Pin an exact engine model and optional provider-specific variant (`agentful` and `agentful tui`) |
39
+ | `--folder-settings` | Ask again whether to load engine settings this folder brings along (`agentful` and `agentful tui`) |
39
40
 
40
41
  Inside the interface, `/` lists the Agentful commands (`/setup`, `/push`,
41
42
  `/preview`, `/publish`, `/share`, `/status`) alongside the built-in ones.
@@ -198,11 +199,36 @@ suspends the silence timer.
198
199
  - recovery requires an explicit `y` and only reopens the same session. It does
199
200
  not continue automatically, so completed tool calls are not replayed by the CLI.
200
201
 
201
- Local providers are governed by the organization's BYOK policy (`/api/org/me`):
202
- `disabled` blocks them, `provider_allowlist` permits only the listed provider ids,
203
- `allow` (and private accounts without an org) permits any. The check is done by
204
- the CLI, so it is a cooperative control, not a cryptographic one — the config
205
- lives on the user's machine.
202
+ ## Provider rules in organizations
203
+
204
+ For an organization's work the same rule covers local providers, direct TUI
205
+ connections and the engine's built-in providers (`/api/org/me`, `src/lib/orgPolicy.ts`):
206
+
207
+ | Organization setting | Available besides Agentful models |
208
+ | --- | --- |
209
+ | BYOK `disabled` | nothing |
210
+ | BYOK `provider_allowlist` | the listed provider ids |
211
+ | BYOK `allow`, data region Germany or EU | local providers on this machine (`localhost`, `127.0.0.1`, `::1`) |
212
+ | BYOK `allow`, data region EU + USA | everything |
213
+ | rules not readable | nothing |
214
+
215
+ A linked project in the member's private area and accounts without an
216
+ organization are not limited; without a linked project a member works for the
217
+ organization. Connections are hidden, not deleted. `agentful models` and the TUI
218
+ start name what is switched off, why, and where to ask. The check is done by the
219
+ CLI, so it is a cooperative control, not a cryptographic one — the config lives
220
+ on the user's machine.
221
+
222
+ ## Engine settings in a folder
223
+
224
+ `opencode.json`, `tui.json` and `.opencode/` in a folder (or above it) can
225
+ redirect model requests and run code when the engine starts. The CLI therefore
226
+ starts the engine with folder settings off, pins the gateway address, and asks
227
+ once per folder and state of those files whether to load them (default: no). For
228
+ an organization's work they are never loaded. `agentful tui --folder-settings`
229
+ asks again. `AGENTS.md`, `CLAUDE.md` and `CONTEXT.md` are read either way. The
230
+ answers are kept in `~/.config/agentful/trusted-folders.json`
231
+ (`src/lib/engineGuard.ts`).
206
232
 
207
233
  ## Personal data check
208
234
 
@@ -223,7 +249,10 @@ fail-open); if it cannot be installed at all, the TUI says so in a toast. Not
223
249
  covered: attachments, shell mode, IDE editor context, free-text answers to the
224
250
  agent's questions. Like the BYOK lock it is a cooperative control on the
225
251
  user's machine. On every engine bump run `npm run check-pii` (real TUI against
226
- a stub model, no login, no credits) next to `npm run check-engine`.
252
+ a stub model, no login, no credits) next to `npm run check-engine` and
253
+ `npm run check-guard` (folder settings and provider rules, real engine and real
254
+ CLI against stubs) and `npm run check-imagegen` (the packed CLI, installed, image
255
+ tool against stubs, first turn without the npm registry).
227
256
 
228
257
  ## Known limitation: the engine's exit banner
229
258
 
@@ -106,3 +106,27 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
106
106
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
107
107
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
108
108
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
109
+
110
+ ### zod (https://github.com/colinhacks/zod)
111
+
112
+ MIT License
113
+
114
+ Copyright (c) 2025 Colin McDonnell
115
+
116
+ Permission is hereby granted, free of charge, to any person obtaining a copy
117
+ of this software and associated documentation files (the "Software"), to deal
118
+ in the Software without restriction, including without limitation the rights
119
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
120
+ copies of the Software, and to permit persons to whom the Software is
121
+ furnished to do so, subject to the following conditions:
122
+
123
+ The above copyright notice and this permission notice shall be included in all
124
+ copies or substantial portions of the Software.
125
+
126
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
127
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
128
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
129
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
130
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
131
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
132
+ SOFTWARE.