cascade-ai 0.2.0 → 0.2.2
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 +10 -3
- package/bin/cascade.js +3 -3
- package/completions/cascade.bash +23 -23
- package/completions/cascade.fish +20 -20
- package/completions/cascade.zsh +32 -32
- package/dist/cli.cjs +317 -106
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +317 -106
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +47 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +47 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/web/dist/assets/{index-qNI_hqt1.js → index-BdaS_Mbj.js} +69 -69
- package/web/dist/index.html +13 -13
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ User prompt
|
|
|
81
81
|
- **Token-by-token streaming** — live output as agents work
|
|
82
82
|
- **Live agent tree** — real-time T1→T2→T3 execution graph in the terminal
|
|
83
83
|
- **Approval prompts** — explicit y/n for destructive tool operations
|
|
84
|
-
- **Provider failover** — auto-switches provider on rate limits (exponential backoff)
|
|
84
|
+
- **Provider failover** — auto-switches provider on rate limits (exponential backoff); automatically re-enables recovered providers on success
|
|
85
85
|
- **Context auto-summarization** — compresses history when the context window fills
|
|
86
86
|
- **Conversation branching** — fork a session to try parallel approaches
|
|
87
87
|
|
|
@@ -163,6 +163,11 @@ cascade run "explain the auth module in this repo"
|
|
|
163
163
|
|
|
164
164
|
Cascade loads config from `.cascade/config.json` in your project directory.
|
|
165
165
|
|
|
166
|
+
> **Prefer the picker over hand-editing config.** Inside the REPL, run `/model`
|
|
167
|
+
> to walk through a three-step interactive picker (provider → tier → model,
|
|
168
|
+
> with an Auto option at every step). The picker writes `.cascade/config.json`
|
|
169
|
+
> for you and hot-swaps the running router — no restart needed.
|
|
170
|
+
|
|
166
171
|
```jsonc
|
|
167
172
|
// .cascade/config.json
|
|
168
173
|
{
|
|
@@ -332,7 +337,9 @@ Type any of these inside the REPL:
|
|
|
332
337
|
| `/clear` | Clear conversation history |
|
|
333
338
|
| `/exit` | Exit Cascade |
|
|
334
339
|
| `/theme <name>` | Switch color theme |
|
|
335
|
-
| `/model` |
|
|
340
|
+
| `/model` | Interactive picker — choose provider → tier → model (or Auto) |
|
|
341
|
+
| `/model-info`| Show active models per tier |
|
|
342
|
+
| `/models` | Browse available models grouped by provider |
|
|
336
343
|
| `/cost` | Toggle session cost / token usage panel |
|
|
337
344
|
| `/export [markdown\|json]` | Export session to file |
|
|
338
345
|
| `/rollback` | Undo all file changes made in this session |
|
|
@@ -586,7 +593,7 @@ web/
|
|
|
586
593
|
|--------|---------|
|
|
587
594
|
| ✓ | T1/T2/T3 hierarchical orchestration |
|
|
588
595
|
| ✓ | 6 AI providers + Ollama |
|
|
589
|
-
| ✓ | Provider failover |
|
|
596
|
+
| ✓ | Provider failover with automatic recovery |
|
|
590
597
|
| ✓ | Streaming REPL (ink) |
|
|
591
598
|
| ✓ | Live agent tree visualization |
|
|
592
599
|
| ✓ | AES-256 encrypted keystore |
|
package/bin/cascade.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// Cascade AI — Entry point
|
|
3
|
-
import '../dist/cli.js';
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Cascade AI — Entry point
|
|
3
|
+
import '../dist/cli.js';
|
package/completions/cascade.bash
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# Cascade AI — Bash completions
|
|
3
|
-
# Install: source <(cascade completions bash)
|
|
4
|
-
|
|
5
|
-
_cascade_completions() {
|
|
6
|
-
local cur="${COMP_WORDS[COMP_CWORD]}"
|
|
7
|
-
local commands="init doctor update dashboard run --help --version"
|
|
8
|
-
local flags="--prompt --theme --workspace --no-color"
|
|
9
|
-
local themes="cascade dark light dracula nord solarized"
|
|
10
|
-
|
|
11
|
-
if [[ "${COMP_WORDS[COMP_CWORD-1]}" == "--theme" ]]; then
|
|
12
|
-
COMPREPLY=($(compgen -W "$themes" -- "$cur"))
|
|
13
|
-
return
|
|
14
|
-
fi
|
|
15
|
-
|
|
16
|
-
if [[ "$cur" == -* ]]; then
|
|
17
|
-
COMPREPLY=($(compgen -W "$flags" -- "$cur"))
|
|
18
|
-
else
|
|
19
|
-
COMPREPLY=($(compgen -W "$commands" -- "$cur"))
|
|
20
|
-
fi
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
complete -F _cascade_completions cascade
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Cascade AI — Bash completions
|
|
3
|
+
# Install: source <(cascade completions bash)
|
|
4
|
+
|
|
5
|
+
_cascade_completions() {
|
|
6
|
+
local cur="${COMP_WORDS[COMP_CWORD]}"
|
|
7
|
+
local commands="init doctor update dashboard run --help --version"
|
|
8
|
+
local flags="--prompt --theme --workspace --no-color"
|
|
9
|
+
local themes="cascade dark light dracula nord solarized"
|
|
10
|
+
|
|
11
|
+
if [[ "${COMP_WORDS[COMP_CWORD-1]}" == "--theme" ]]; then
|
|
12
|
+
COMPREPLY=($(compgen -W "$themes" -- "$cur"))
|
|
13
|
+
return
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [[ "$cur" == -* ]]; then
|
|
17
|
+
COMPREPLY=($(compgen -W "$flags" -- "$cur"))
|
|
18
|
+
else
|
|
19
|
+
COMPREPLY=($(compgen -W "$commands" -- "$cur"))
|
|
20
|
+
fi
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
complete -F _cascade_completions cascade
|
package/completions/cascade.fish
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
# Cascade AI — Fish completions
|
|
2
|
-
# Install: cp cascade.fish ~/.config/fish/completions/
|
|
3
|
-
|
|
4
|
-
# Disable file completions
|
|
5
|
-
complete -c cascade -f
|
|
6
|
-
|
|
7
|
-
# Commands
|
|
8
|
-
complete -c cascade -n '__fish_use_subcommand' -a init -d 'Initialize Cascade in a project'
|
|
9
|
-
complete -c cascade -n '__fish_use_subcommand' -a doctor -d 'Check system configuration'
|
|
10
|
-
complete -c cascade -n '__fish_use_subcommand' -a update -d 'Update to latest version'
|
|
11
|
-
complete -c cascade -n '__fish_use_subcommand' -a dashboard -d 'Launch the web dashboard'
|
|
12
|
-
complete -c cascade -n '__fish_use_subcommand' -a run -d 'Run a single prompt and exit'
|
|
13
|
-
|
|
14
|
-
# Flags
|
|
15
|
-
complete -c cascade -l prompt -s p -d 'Single prompt' -r
|
|
16
|
-
complete -c cascade -l theme -s t -d 'Color theme' -r -a 'cascade dark light dracula nord solarized'
|
|
17
|
-
complete -c cascade -l workspace -s w -d 'Workspace path' -r -F
|
|
18
|
-
complete -c cascade -l version -s v -d 'Show version'
|
|
19
|
-
complete -c cascade -l help -s h -d 'Show help'
|
|
20
|
-
complete -c cascade -l no-color -d 'Disable colors'
|
|
1
|
+
# Cascade AI — Fish completions
|
|
2
|
+
# Install: cp cascade.fish ~/.config/fish/completions/
|
|
3
|
+
|
|
4
|
+
# Disable file completions
|
|
5
|
+
complete -c cascade -f
|
|
6
|
+
|
|
7
|
+
# Commands
|
|
8
|
+
complete -c cascade -n '__fish_use_subcommand' -a init -d 'Initialize Cascade in a project'
|
|
9
|
+
complete -c cascade -n '__fish_use_subcommand' -a doctor -d 'Check system configuration'
|
|
10
|
+
complete -c cascade -n '__fish_use_subcommand' -a update -d 'Update to latest version'
|
|
11
|
+
complete -c cascade -n '__fish_use_subcommand' -a dashboard -d 'Launch the web dashboard'
|
|
12
|
+
complete -c cascade -n '__fish_use_subcommand' -a run -d 'Run a single prompt and exit'
|
|
13
|
+
|
|
14
|
+
# Flags
|
|
15
|
+
complete -c cascade -l prompt -s p -d 'Single prompt' -r
|
|
16
|
+
complete -c cascade -l theme -s t -d 'Color theme' -r -a 'cascade dark light dracula nord solarized'
|
|
17
|
+
complete -c cascade -l workspace -s w -d 'Workspace path' -r -F
|
|
18
|
+
complete -c cascade -l version -s v -d 'Show version'
|
|
19
|
+
complete -c cascade -l help -s h -d 'Show help'
|
|
20
|
+
complete -c cascade -l no-color -d 'Disable colors'
|
package/completions/cascade.zsh
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
#compdef cascade
|
|
2
|
-
# Cascade AI — Zsh completions
|
|
3
|
-
# Install: fpath=(~/.config/cascade/completions $fpath)
|
|
4
|
-
|
|
5
|
-
_cascade() {
|
|
6
|
-
local context state state_descr line
|
|
7
|
-
typeset -A opt_args
|
|
8
|
-
|
|
9
|
-
_arguments \
|
|
10
|
-
'(-v --version)'{-v,--version}'[Show version]' \
|
|
11
|
-
'(-h --help)'{-h,--help}'[Show help]' \
|
|
12
|
-
'(-p --prompt)'{-p,--prompt}'[Single prompt]:prompt:' \
|
|
13
|
-
'(-t --theme)'{-t,--theme}'[Color theme]:theme:(cascade dark light dracula nord solarized)' \
|
|
14
|
-
'(-w --workspace)'{-w,--workspace}'[Workspace path]:path:_files -/' \
|
|
15
|
-
'1:command:->command' \
|
|
16
|
-
'*::args:->args'
|
|
17
|
-
|
|
18
|
-
case $state in
|
|
19
|
-
command)
|
|
20
|
-
local commands=(
|
|
21
|
-
'init:Initialize Cascade in a project directory'
|
|
22
|
-
'doctor:Check system configuration'
|
|
23
|
-
'update:Update to the latest version'
|
|
24
|
-
'dashboard:Launch the web dashboard'
|
|
25
|
-
'run:Run a single prompt and exit'
|
|
26
|
-
)
|
|
27
|
-
_describe 'cascade commands' commands
|
|
28
|
-
;;
|
|
29
|
-
esac
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
_cascade "$@"
|
|
1
|
+
#compdef cascade
|
|
2
|
+
# Cascade AI — Zsh completions
|
|
3
|
+
# Install: fpath=(~/.config/cascade/completions $fpath)
|
|
4
|
+
|
|
5
|
+
_cascade() {
|
|
6
|
+
local context state state_descr line
|
|
7
|
+
typeset -A opt_args
|
|
8
|
+
|
|
9
|
+
_arguments \
|
|
10
|
+
'(-v --version)'{-v,--version}'[Show version]' \
|
|
11
|
+
'(-h --help)'{-h,--help}'[Show help]' \
|
|
12
|
+
'(-p --prompt)'{-p,--prompt}'[Single prompt]:prompt:' \
|
|
13
|
+
'(-t --theme)'{-t,--theme}'[Color theme]:theme:(cascade dark light dracula nord solarized)' \
|
|
14
|
+
'(-w --workspace)'{-w,--workspace}'[Workspace path]:path:_files -/' \
|
|
15
|
+
'1:command:->command' \
|
|
16
|
+
'*::args:->args'
|
|
17
|
+
|
|
18
|
+
case $state in
|
|
19
|
+
command)
|
|
20
|
+
local commands=(
|
|
21
|
+
'init:Initialize Cascade in a project directory'
|
|
22
|
+
'doctor:Check system configuration'
|
|
23
|
+
'update:Update to the latest version'
|
|
24
|
+
'dashboard:Launch the web dashboard'
|
|
25
|
+
'run:Run a single prompt and exit'
|
|
26
|
+
)
|
|
27
|
+
_describe 'cascade commands' commands
|
|
28
|
+
;;
|
|
29
|
+
esac
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
_cascade "$@"
|