@oracle-agent/oracle 0.28.0 → 0.28.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/dist/assets/skills/oracle-desk-product/SKILL.md +1 -1
- package/dist/cli/commands/chat.mjs +119 -117
- package/dist/cli/commands/eval.mjs +1 -1
- package/dist/cli/commands/init.mjs +2 -2
- package/dist/cli/commands/model.mjs +122 -120
- package/dist/cli/commands/setup.mjs +47 -45
- package/package.json +1 -1
- package/public/install.sh +86 -15
- package/public/oracle-splash/downloads/index.html +4 -4
- package/public/oracle-splash/index.html +1 -1
- package/public/oracle-splash/install.sh +86 -15
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# What this installer never does:
|
|
14
14
|
# - sign or broadcast transactions
|
|
15
15
|
# - start a signer or import a key
|
|
16
|
-
# -
|
|
16
|
+
# - never starts an external agent runtime
|
|
17
17
|
# An explicit later `oracle signer` setup is a separate operator step.
|
|
18
18
|
set -euo pipefail
|
|
19
19
|
|
|
@@ -33,23 +33,95 @@ err() { printf 'oracle-install: ERROR: %s\n' "$*" >&2; }
|
|
|
33
33
|
die() { err "$*"; exit 1; }
|
|
34
34
|
have() { command -v "$1" >/dev/null 2>&1; }
|
|
35
35
|
|
|
36
|
-
# Mirror packages/oracle/src/tui/brand.mjs
|
|
36
|
+
# Mirror packages/oracle/src/tui/brand.mjs SPLASH_ORB_FRAMES. Hardcoded because
|
|
37
37
|
# this script runs before the package exists on disk.
|
|
38
38
|
want_globe() {
|
|
39
39
|
[ -t 1 ] && [ "${TERM:-}" != "dumb" ] && [ -z "${NO_COLOR:-}" ] && [ "${ORACLE_INSTALL_PLAIN:-0}" != 1 ]
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
print_globe_frame() {
|
|
43
|
+
local n="${1:-0}"
|
|
44
|
+
local status="${2:-installing}"
|
|
45
|
+
case "$n" in
|
|
46
|
+
1)
|
|
47
|
+
cat <<EOF
|
|
48
|
+
▓███▓ oracle
|
|
49
|
+
▒▓▓█████ ${status}
|
|
50
|
+
▒▒▓▓██████
|
|
51
|
+
░▒▒▓▓▓▓▓
|
|
52
|
+
░░▒▒▒▒
|
|
53
|
+
EOF
|
|
54
|
+
;;
|
|
55
|
+
2)
|
|
56
|
+
cat <<EOF
|
|
57
|
+
▓▓███ oracle
|
|
58
|
+
▒▓▓▓████ ${status}
|
|
59
|
+
▒▒▓▓▓█████
|
|
60
|
+
░▒▒▒▓▓▓▓
|
|
61
|
+
░░░▒▒▒
|
|
62
|
+
EOF
|
|
63
|
+
;;
|
|
64
|
+
3)
|
|
65
|
+
cat <<EOF
|
|
66
|
+
░▒▒▓▓ oracle
|
|
67
|
+
░▒▒▓▓▓▓▓ ${status}
|
|
68
|
+
░░▒▒▓▓████
|
|
69
|
+
▓▓▓██████
|
|
70
|
+
█████▓
|
|
71
|
+
EOF
|
|
72
|
+
;;
|
|
73
|
+
*)
|
|
74
|
+
cat <<EOF
|
|
46
75
|
███▓▓ oracle
|
|
47
|
-
█████▓▓▒
|
|
76
|
+
█████▓▓▒ ${status}
|
|
48
77
|
██████▓▓▒▒
|
|
49
78
|
▓▓▓▓▒▒▒░
|
|
50
79
|
▒▒▒░░░
|
|
51
|
-
|
|
52
80
|
EOF
|
|
81
|
+
;;
|
|
82
|
+
esac
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
print_globe() {
|
|
86
|
+
want_globe || return 0
|
|
87
|
+
printf '\n'
|
|
88
|
+
print_globe_frame 0 "installing"
|
|
89
|
+
printf '\n'
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
animate_while() {
|
|
93
|
+
local status="$1"
|
|
94
|
+
shift
|
|
95
|
+
if ! want_globe; then
|
|
96
|
+
"$@"
|
|
97
|
+
return $?
|
|
98
|
+
fi
|
|
99
|
+
local log rc pid i
|
|
100
|
+
log="$(mktemp)"
|
|
101
|
+
"$@" >"$log" 2>&1 &
|
|
102
|
+
pid=$!
|
|
103
|
+
i=0
|
|
104
|
+
printf '\033[?25l' || true
|
|
105
|
+
printf '\n'
|
|
106
|
+
print_globe_frame 0 "$status"
|
|
107
|
+
while kill -0 "$pid" 2>/dev/null; do
|
|
108
|
+
sleep 0.12
|
|
109
|
+
printf '\033[5A'
|
|
110
|
+
print_globe_frame "$((i % 4))" "$status"
|
|
111
|
+
i=$((i + 1))
|
|
112
|
+
done
|
|
113
|
+
set +e
|
|
114
|
+
wait "$pid"
|
|
115
|
+
rc=$?
|
|
116
|
+
set -e
|
|
117
|
+
printf '\033[5A'
|
|
118
|
+
print_globe_frame 0 "ready"
|
|
119
|
+
printf '\n\033[?25h' || true
|
|
120
|
+
if [ "$rc" -ne 0 ]; then
|
|
121
|
+
cat "$log" >&2
|
|
122
|
+
fi
|
|
123
|
+
rm -f "$log"
|
|
124
|
+
return "$rc"
|
|
53
125
|
}
|
|
54
126
|
|
|
55
127
|
usage() {
|
|
@@ -279,13 +351,12 @@ verify() {
|
|
|
279
351
|
print_next() {
|
|
280
352
|
cat <<EOF
|
|
281
353
|
|
|
282
|
-
Oracle ready
|
|
354
|
+
Oracle ready.
|
|
355
|
+
|
|
356
|
+
oracle
|
|
283
357
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
oracle chat
|
|
287
|
-
oracle doctor --agentic
|
|
288
|
-
oracle harness detect
|
|
358
|
+
That command opens sign-in: Claude, Codex, Grok, or an API key
|
|
359
|
+
(OpenRouter, DeepSeek, Nous, and the rest).
|
|
289
360
|
|
|
290
361
|
Upgrade later:
|
|
291
362
|
curl -fsSL https://oracle.demi.la/install.sh | bash
|
|
@@ -309,7 +380,7 @@ main() {
|
|
|
309
380
|
ensure_node
|
|
310
381
|
ensure_npm
|
|
311
382
|
resolve_version
|
|
312
|
-
install_package
|
|
383
|
+
animate_while installing install_package
|
|
313
384
|
verify
|
|
314
385
|
if [ "$DO_SETUP" = 1 ]; then
|
|
315
386
|
export PATH="$BIN_DIR:$PATH"
|