@interactive-inc/claude-funnel 0.30.0 → 0.32.0

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
@@ -126,7 +126,7 @@ Or drop a `funnel.json` in the repo and `fnl claude` (no args) inside the repo w
126
126
 
127
127
  `channels[]` is required and the first entry is the default. `fnl claude --channel review` picks one by name; `fnl claude` with no `--channel` uses the first.
128
128
 
129
- A channel declares only transport — its `connectors` and delivery mode. The launch recipe lives on `profiles[]`: each profile binds to a channel by name and carries `options` (prepended to the claude argv before user-supplied CLI args, which still come last — use it for flags like `--brief`, `--agent <name>`, `--model <name>`), `env` (layered under the launched claude process — `process.env` from the launching shell wins on collision), and `resume`. `fnl claude` applies the first profile bound to the chosen channel.
129
+ A channel declares only transport — its `connectors` and delivery mode. The launch recipe lives on `profiles[]`: each profile has a unique `name`, binds to a channel by name, and carries `options` (prepended to the claude argv before user-supplied CLI args, which still come last — use it for flags like `--brief`, `--agent <name>`, `--model <name>`), `env` (layered under the launched claude process — `process.env` from the launching shell wins on collision), and `resume`. A profile is launched by name with `fnl claude --profile <name>`; the channel never selects a profile on its own. Multiple profiles may bind the same channel — they are told apart by `name`.
130
130
 
131
131
  The optional `connectors` array on a channel is the source of truth for that channel: missing connectors are created and connectors not declared are removed on launch. Connectors are matched by name. An absent `connectors` field leaves existing connectors alone.
132
132
 
@@ -213,7 +213,7 @@ fnl gateway listeners live registry (alive / dead)
213
213
  fnl status overall status (channels / profiles / gateway / clients)
214
214
  fnl schema print the JSON Schema for funnel.json (pipe to a file for editor support)
215
215
  fnl update `bun i -g @interactive-inc/claude-funnel`
216
- fnl (no args) launch the OpenTUI dashboard
216
+ fnl (no args) show help
217
217
 
218
218
  fnl --version
219
219
  fnl --help every subcommand has --help; verb-without-arg also returns help
@@ -274,7 +274,7 @@ ChannelSpec = { name, connectors? }
274
274
  the matching Channel in ~/.funnel/projects/<id>/settings.json on launch. Connectors carry no
275
275
  tokens; a token is set via the CLI or prompted on a TTY at launch and saved to that scoped settings.
276
276
 
277
- ProfileSpec = { channel, options?, env?, resume? }
277
+ ProfileSpec = { name, channel, options?, env?, resume? }
278
278
  launch recipe bound to a channel by name. applied inline on launch (the first spec bound to the
279
279
  chosen channel — selected by its channel binding, not by name); not persisted into the global
280
280
  profiles[] list.
@@ -442,16 +442,6 @@ console.log(await res.text())
442
442
 
443
443
  `cliApp` is the same app pre-wired to `new Funnel()` for callers who just want the default. The middleware sets the chosen Funnel onto `c.var.funnel`; the matching `Env` type is exported for composing custom routes that share the same context variable.
444
444
 
445
- ### Launching the TUI
446
-
447
- `launchTui(funnel)` boots the OpenTUI dashboard against any `Funnel` instance — pass `Funnel.inMemory()` to drive it against a fake state, or your production funnel for a live view.
448
-
449
- ```ts
450
- import { Funnel, launchTui } from "@interactive-inc/claude-funnel"
451
-
452
- await launchTui(new Funnel())
453
- ```
454
-
455
445
  ### Validating connector configs
456
446
 
457
447
  Each connector type publishes its Zod schema, so consumers can parse external configs (JSON files, API payloads, etc.) before handing them to `addConnector`. The discriminated union `connectorConfigSchema` covers the whole set.