Commit 9991792
authored
fix(install): unblock upgrades from the deprecated @synsci/cli package (#15)
* chore: clean up agent prompt language, launcher install fallback, v1.2.3
- Reword the ml agent's 'flywheel' phrasing as 'model specialization' across the
prompt and skills; only Atlas skills remain in the bundle.
- npx synsci: when global npm install fails (common on permissions), fall back
to the standalone installer at openscience.sh/install instead of dead-ending.
- Bump CLI + launcher to 1.2.3.
* fix(managed): point default API base at app.syntheticsciences.ai
The managed/Atlas base defaulted to api.syntheticsciences.ai, which never
existed as a host — so managed mode failed with 'fetch failed' / DNS errors for
everyone. The real backend is app.syntheticsciences.ai (Vercel-fronted, /api/*
proxied to Fly). Repoint the default plus the hardcoded github/share/OIDC refs
(api.dev → app.dev for the preview path).
* fix(install): unblock upgrades from the deprecated @synsci/cli package
The package was renamed on npm from @synsci/cli to @synsci/openscience, and
both declare the same `openscience` bin. npm refuses to overwrite a bin file
owned by another package, so anyone with the old package still installed
globally hits `npm error code EEXIST` and dead-ends. Fix it in three layers:
- npx synsci: detect a global @synsci/cli up front and remove it (telling the
user why) before resolving or installing the CLI; if the global install
still fails with an EEXIST bin conflict, remove the stale package and retry
once before falling back to the standalone installer. Also forward extra
args through to `openscience web` and bump the launcher to 1.2.4.
- @synsci/openscience: ship a best-effort preinstall guard that clears a
stale global @synsci/cli when npm_config_global is set; it always exits 0
so it can never fail an install (script-blocking npm policies make this
advisory only — the launcher and installer handle the conflict
deterministically).
- openscience.sh/install: after installing the binary, warn when another
`openscience` earlier on PATH would shadow it and point at
`npm rm -g @synsci/cli`. Kept the root copy of the script in sync.1 parent 503a932 commit 9991792
16 files changed
Lines changed: 115 additions & 21 deletions
File tree
- backend/cli
- script
- skills
- ml-training/model-economics
- research/initialize-atlas-graph
- src
- agent/prompt
- cli/cmd
- openscience
- provider
- frontend/landing/public
- tooling/launcher
- bin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
| 358 | + | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
667 | | - | |
| 667 | + | |
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
| 188 | + | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments