@researai/deepscientist 1.5.8 → 1.5.9

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.
Files changed (73) hide show
  1. package/LICENSE +186 -21
  2. package/README.md +4 -4
  3. package/bin/ds.js +4 -4
  4. package/docs/en/00_QUICK_START.md +2 -2
  5. package/docs/zh/00_QUICK_START.md +2 -2
  6. package/package.json +2 -2
  7. package/pyproject.toml +2 -2
  8. package/src/deepscientist/__init__.py +1 -1
  9. package/src/deepscientist/artifact/metrics.py +1 -3
  10. package/src/deepscientist/artifact/service.py +873 -103
  11. package/src/deepscientist/daemon/api/handlers.py +130 -0
  12. package/src/deepscientist/daemon/api/router.py +3 -0
  13. package/src/deepscientist/daemon/app.py +1 -1
  14. package/src/deepscientist/mcp/server.py +3 -1
  15. package/src/deepscientist/prompts/builder.py +14 -1
  16. package/src/deepscientist/quest/node_traces.py +129 -2
  17. package/src/deepscientist/quest/service.py +57 -0
  18. package/src/deepscientist/quest/stage_views.py +101 -4
  19. package/src/deepscientist/registries/baseline.py +56 -4
  20. package/src/prompts/system.md +7 -0
  21. package/src/skills/idea/SKILL.md +16 -0
  22. package/src/skills/idea/references/literature-survey-template.md +24 -0
  23. package/src/skills/idea/references/related-work-playbook.md +4 -0
  24. package/src/skills/idea/references/selection-gate.md +9 -0
  25. package/src/skills/write/SKILL.md +1 -1
  26. package/src/tui/package.json +1 -1
  27. package/src/ui/dist/assets/{AiManusChatView-m2FNtwbn.js → AiManusChatView-BKZ103sn.js} +11 -11
  28. package/src/ui/dist/assets/{AnalysisPlugin-BMTF8EGL.js → AnalysisPlugin-mTTzGAlK.js} +1 -1
  29. package/src/ui/dist/assets/{AutoFigurePlugin-DxPdMUNb.js → AutoFigurePlugin-C_wWw4AP.js} +5 -5
  30. package/src/ui/dist/assets/{CliPlugin-BEOWgxCI.js → CliPlugin-BH58n3GY.js} +9 -9
  31. package/src/ui/dist/assets/{CodeEditorPlugin-BCXvjqmb.js → CodeEditorPlugin-BKGRUH7e.js} +8 -8
  32. package/src/ui/dist/assets/{CodeViewerPlugin-DaJcy3nD.js → CodeViewerPlugin-BMADwFWJ.js} +5 -5
  33. package/src/ui/dist/assets/{DocViewerPlugin-ByfeIq4K.js → DocViewerPlugin-ZOnTIHLN.js} +3 -3
  34. package/src/ui/dist/assets/{GitDiffViewerPlugin-Cksf3VZ-.js → GitDiffViewerPlugin-CQ7h1Djm.js} +20 -20
  35. package/src/ui/dist/assets/{ImageViewerPlugin-CFz-OsTS.js → ImageViewerPlugin-GVS5MsnC.js} +5 -5
  36. package/src/ui/dist/assets/{LabCopilotPanel-CJ1cJzoX.js → LabCopilotPanel-BZNv1JML.js} +10 -10
  37. package/src/ui/dist/assets/{LabPlugin-BF3dVJwa.js → LabPlugin-TWcJsdQA.js} +1 -1
  38. package/src/ui/dist/assets/{LatexPlugin-DDkwZ6Sj.js → LatexPlugin-DIjHiR2x.js} +7 -7
  39. package/src/ui/dist/assets/{MarkdownViewerPlugin-HAuvurcT.js → MarkdownViewerPlugin-D3ooGAH0.js} +4 -4
  40. package/src/ui/dist/assets/{MarketplacePlugin-BtoTYy2C.js → MarketplacePlugin-DfVfE9hN.js} +3 -3
  41. package/src/ui/dist/assets/{NotebookEditor-DQgRezm_.js → NotebookEditor-DDl0_Mc0.js} +1 -1
  42. package/src/ui/dist/assets/{NotebookEditor-CSJYx7b-.js → NotebookEditor-s8JhzuX1.js} +11 -11
  43. package/src/ui/dist/assets/{PdfLoader-DPa_-fv6.js → PdfLoader-C2Sf6SJM.js} +1 -1
  44. package/src/ui/dist/assets/{PdfMarkdownPlugin-BZpXOEjm.js → PdfMarkdownPlugin-CXFLoIsa.js} +3 -3
  45. package/src/ui/dist/assets/{PdfViewerPlugin-BT8a6wGR.js → PdfViewerPlugin-BYTmz2fK.js} +10 -10
  46. package/src/ui/dist/assets/{SearchPlugin-D_blveZi.js → SearchPlugin-CjWBI1O9.js} +1 -1
  47. package/src/ui/dist/assets/{Stepper-DH2k75Vo.js → Stepper-B0Dd8CxK.js} +1 -1
  48. package/src/ui/dist/assets/{TextViewerPlugin-Btx0M3hX.js → TextViewerPlugin-DdOBU3-S.js} +4 -4
  49. package/src/ui/dist/assets/{VNCViewer-DImJO4rO.js → VNCViewer-B8HGgLwQ.js} +9 -9
  50. package/src/ui/dist/assets/{bibtex-B-Hqu0Sg.js → bibtex-CKaefIN2.js} +1 -1
  51. package/src/ui/dist/assets/{code-BUfXGJSl.js → code-BWAY76JP.js} +1 -1
  52. package/src/ui/dist/assets/{file-content-VqamwI3X.js → file-content-C1NwU5oQ.js} +1 -1
  53. package/src/ui/dist/assets/{file-diff-panel-C_wOoS7a.js → file-diff-panel-CywslwB9.js} +1 -1
  54. package/src/ui/dist/assets/{file-socket-D2bTuMVP.js → file-socket-B4kzuOBQ.js} +1 -1
  55. package/src/ui/dist/assets/{file-utils--zJCPN1i.js → file-utils-H2fjA46S.js} +1 -1
  56. package/src/ui/dist/assets/{image-BZkGJ4mM.js → image-D-NZM-6P.js} +1 -1
  57. package/src/ui/dist/assets/{index-DjggJovS.js → index-7Chr1g9c.js} +735 -112
  58. package/src/ui/dist/assets/{index-CxkvSeKw.js → index-BdM1Gqfr.js} +2 -2
  59. package/src/ui/dist/assets/{index-D9QIGcmc.js → index-CDxNdQdz.js} +1 -1
  60. package/src/ui/dist/assets/{index-DXZ1daiJ.css → index-DGIYDuTv.css} +2 -2
  61. package/src/ui/dist/assets/{index-DdRW6RMJ.js → index-DHZJ_0TI.js} +12 -12
  62. package/src/ui/dist/assets/{message-square-FUIPIhU2.js → message-square-BzjLiXir.js} +1 -1
  63. package/src/ui/dist/assets/{monaco-DHMc7kKM.js → monaco-Cb2uKKe6.js} +1 -1
  64. package/src/ui/dist/assets/{popover-B85oCgCS.js → popover-Bg72DGgT.js} +1 -1
  65. package/src/ui/dist/assets/{project-sync-DOMCcPac.js → project-sync-Ce_0BglY.js} +1 -1
  66. package/src/ui/dist/assets/{sigma-BO2rQrl3.js → sigma-DPaACDrh.js} +1 -1
  67. package/src/ui/dist/assets/{tooltip-B1OspAkx.js → tooltip-C_mA6R0w.js} +1 -1
  68. package/src/ui/dist/assets/{trash-BsVEH_dV.js → trash-BvTgE5__.js} +1 -1
  69. package/src/ui/dist/assets/{useCliAccess-b8L6JuZm.js → useCliAccess-CgPeMOwP.js} +1 -1
  70. package/src/ui/dist/assets/{useFileDiffOverlay-BY7uA9hV.js → useFileDiffOverlay-xPhz7P5B.js} +1 -1
  71. package/src/ui/dist/assets/{wrap-text-BwyVuUIK.js → wrap-text-C3Un3YQr.js} +1 -1
  72. package/src/ui/dist/assets/{zoom-out-RDpLugQP.js → zoom-out-BgxLa0Ri.js} +1 -1
  73. package/src/ui/dist/index.html +2 -2
package/LICENSE CHANGED
@@ -1,21 +1,186 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 ResearAI
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the
13
+ copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other
16
+ entities that control, are controlled by, or are under common control with
17
+ that entity. For the purposes of this definition, "control" means (i) the
18
+ power, direct or indirect, to cause the direction or management of such
19
+ entity, whether by contract or otherwise, or (ii) ownership of fifty percent
20
+ (50%) or more of the outstanding shares, or (iii) beneficial ownership of
21
+ such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
24
+ permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation source, and
28
+ configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical transformation or
31
+ translation of a Source form, including but not limited to compiled object
32
+ code, generated documentation, and conversions to other media types.
33
+
34
+ "Work" shall mean the work of authorship, whether in Source or Object form,
35
+ made available under the License, as indicated by a copyright notice that is
36
+ included in or attached to the work (an example is provided in the Appendix
37
+ below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object form,
40
+ that is based on (or derived from) the Work and for which the editorial
41
+ revisions, annotations, elaborations, or other modifications represent, as a
42
+ whole, an original work of authorship. For the purposes of this License,
43
+ Derivative Works shall not include works that remain separable from, or
44
+ merely link (or bind by name) to the interfaces of, the Work and Derivative
45
+ Works thereof.
46
+
47
+ "Contribution" shall mean any work of authorship, including the original
48
+ version of the Work and any modifications or additions to that Work or
49
+ Derivative Works thereof, that is intentionally submitted to Licensor for
50
+ inclusion in the Work by the copyright owner or by an individual or Legal
51
+ Entity authorized to submit on behalf of the copyright owner. For the
52
+ purposes of this definition, "submitted" means any form of electronic,
53
+ verbal, or written communication sent to the Licensor or its representatives,
54
+ including but not limited to communication on electronic mailing lists,
55
+ source code control systems, and issue tracking systems that are managed by,
56
+ or on behalf of, the Licensor for the purpose of discussing and improving the
57
+ Work, but excluding communication that is conspicuously marked or otherwise
58
+ designated in writing by the copyright owner as "Not a Contribution."
59
+
60
+ "Contributor" shall mean Licensor and any individual or Legal Entity on
61
+ behalf of whom a Contribution has been received by Licensor and subsequently
62
+ incorporated within the Work.
63
+
64
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
65
+ License, each Contributor hereby grants to You a perpetual, worldwide,
66
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
67
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
68
+ sublicense, and distribute the Work and such Derivative Works in Source or
69
+ Object form.
70
+
71
+ 3. Grant of Patent License. Subject to the terms and conditions of this
72
+ License, each Contributor hereby grants to You a perpetual, worldwide,
73
+ non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
74
+ section) patent license to make, have made, use, offer to sell, sell, import,
75
+ and otherwise transfer the Work, where such license applies only to those
76
+ patent claims licensable by such Contributor that are necessarily infringed
77
+ by their Contribution(s) alone or by combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You institute
79
+ patent litigation against any entity (including a cross-claim or counterclaim
80
+ in a lawsuit) alleging that the Work or a Contribution incorporated within
81
+ the Work constitutes direct or contributory patent infringement, then any
82
+ patent licenses granted to You under this License for that Work shall
83
+ terminate as of the date such litigation is filed.
84
+
85
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
86
+ Derivative Works thereof in any medium, with or without modifications, and in
87
+ Source or Object form, provided that You meet the following conditions:
88
+
89
+ (a) You must give any other recipients of the Work or Derivative Works a copy
90
+ of this License; and
91
+
92
+ (b) You must cause any modified files to carry prominent notices stating that
93
+ You changed the files; and
94
+
95
+ (c) You must retain, in the Source form of any Derivative Works that You
96
+ distribute, all copyright, patent, trademark, and attribution notices from
97
+ the Source form of the Work, excluding those notices that do not pertain to
98
+ any part of the Derivative Works; and
99
+
100
+ (d) If the Work includes a "NOTICE" text file as part of its distribution,
101
+ then any Derivative Works that You distribute must include a readable copy of
102
+ the attribution notices contained within such NOTICE file, excluding those
103
+ notices that do not pertain to any part of the Derivative Works, in at least
104
+ one of the following places: within a NOTICE text file distributed as part of
105
+ the Derivative Works; within the Source form or documentation, if provided
106
+ along with the Derivative Works; or, within a display generated by the
107
+ Derivative Works, if and wherever such third-party notices normally appear.
108
+ The contents of the NOTICE file are for informational purposes only and do
109
+ not modify the License. You may add Your own attribution notices within
110
+ Derivative Works that You distribute, alongside or as an addendum to the
111
+ NOTICE text from the Work, provided that such additional attribution notices
112
+ cannot be construed as modifying the License.
113
+
114
+ You may add Your own copyright statement to Your modifications and may provide
115
+ additional or different license terms and conditions for use, reproduction, or
116
+ distribution of Your modifications, or for any such Derivative Works as a
117
+ whole, provided Your use, reproduction, and distribution of the Work
118
+ otherwise complies with the conditions stated in this License.
119
+
120
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
121
+ Contribution intentionally submitted for inclusion in the Work by You to the
122
+ Licensor shall be under the terms and conditions of this License, without any
123
+ additional terms or conditions. Notwithstanding the above, nothing herein
124
+ shall supersede or modify the terms of any separate license agreement you may
125
+ have executed with Licensor regarding such Contributions.
126
+
127
+ 6. Trademarks. This License does not grant permission to use the trade names,
128
+ trademarks, service marks, or product names of the Licensor, except as
129
+ required for reasonable and customary use in describing the origin of the
130
+ Work and reproducing the content of the NOTICE file.
131
+
132
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
133
+ writing, Licensor provides the Work (and each Contributor provides its
134
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
135
+ KIND, either express or implied, including, without limitation, any
136
+ warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or
137
+ FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining
138
+ the appropriateness of using or redistributing the Work and assume any risks
139
+ associated with Your exercise of permissions under this License.
140
+
141
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
142
+ tort (including negligence), contract, or otherwise, unless required by
143
+ applicable law (such as deliberate and grossly negligent acts) or agreed to
144
+ in writing, shall any Contributor be liable to You for damages, including any
145
+ direct, indirect, special, incidental, or consequential damages of any
146
+ character arising as a result of this License or out of the use or inability
147
+ to use the Work (including but not limited to damages for loss of goodwill,
148
+ work stoppage, computer failure or malfunction, or any and all other
149
+ commercial damages or losses), even if such Contributor has been advised of
150
+ the possibility of such damages.
151
+
152
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work
153
+ or Derivative Works thereof, You may choose to offer, and charge a fee for,
154
+ acceptance of support, warranty, indemnity, or other liability obligations
155
+ and/or rights consistent with this License. However, in accepting such
156
+ obligations, You may act only on Your own behalf and on Your sole
157
+ responsibility, not on behalf of any other Contributor, and only if You agree
158
+ to indemnify, defend, and hold each Contributor harmless for any liability
159
+ incurred by, or claims asserted against, such Contributor by reason of your
160
+ accepting any such warranty or additional liability.
161
+
162
+ END OF TERMS AND CONDITIONS
163
+
164
+ APPENDIX: How to apply the Apache License to your work.
165
+
166
+ To apply the Apache License to your work, attach the following boilerplate
167
+ notice, with the fields enclosed by brackets "[]" replaced with your own
168
+ identifying information. (Don't include the brackets!) The text should be
169
+ enclosed in the appropriate comment syntax for the file format. We also
170
+ recommend that a file or class name and description of purpose be included on
171
+ the same "printed page" as the copyright notice for easier identification
172
+ within third-party archives.
173
+
174
+ Copyright 2026 ResearAI
175
+
176
+ Licensed under the Apache License, Version 2.0 (the "License");
177
+ you may not use this file except in compliance with the License.
178
+ You may obtain a copy of the License at
179
+
180
+ http://www.apache.org/licenses/LICENSE-2.0
181
+
182
+ Unless required by applicable law or agreed to in writing, software
183
+ distributed under the License is distributed on an "AS IS" BASIS,
184
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
185
+ See the License for the specific language governing permissions and
186
+ limitations under the License.
package/README.md CHANGED
@@ -39,7 +39,7 @@ Parameter meanings:
39
39
 
40
40
  - `--yolo`: run Codex in YOLO mode, which sets `approval_policy=never` and `sandbox_mode=danger-full-access`
41
41
  - `--port 20999`: bind the local web workspace to port `20999`
42
- - `--here`: use the current working directory as the DeepScientist home
42
+ - `--here`: create or use `./DeepScientist` under the current working directory as the DeepScientist home
43
43
 
44
44
  On first start, `ds` will:
45
45
 
@@ -74,13 +74,13 @@ The default DeepScientist home is:
74
74
 
75
75
  Use `ds --home <path>` if you want to place the runtime somewhere else.
76
76
 
77
- If you want to use the current working directory directly as the DeepScientist home, use:
77
+ If you want to place the DeepScientist home under the current working directory, use:
78
78
 
79
79
  ```bash
80
80
  ds --here
81
81
  ```
82
82
 
83
- This is equivalent to launching with `ds --home "$PWD"`.
83
+ This is equivalent to launching with `ds --home "$PWD/DeepScientist"`.
84
84
 
85
85
  Useful launch examples:
86
86
 
@@ -153,4 +153,4 @@ url={https://openreview.net/forum?id=cZFgsLq8Gs}
153
153
 
154
154
  ## License
155
155
 
156
- [MIT](LICENSE)
156
+ [Apache License 2.0](LICENSE)
package/bin/ds.js CHANGED
@@ -81,7 +81,7 @@ Launcher flags:
81
81
  --stop Stop the managed daemon
82
82
  --restart Restart the managed daemon
83
83
  --home <path> Use a custom DeepScientist home
84
- --here Use the current working directory as DeepScientist home
84
+ --here Create/use ./DeepScientist under the current working directory as home
85
85
  --proxy <url> Use an outbound HTTP/WS proxy for npm and Python runtime traffic
86
86
  --yolo Run Codex in YOLO mode: approval_policy=never and sandbox_mode=danger-full-access
87
87
  --quest-id <id> Open the TUI on one quest directly
@@ -467,7 +467,7 @@ function resolveHome(args) {
467
467
  return path.resolve(args[index + 1]);
468
468
  }
469
469
  if (args.includes('--here')) {
470
- return process.cwd();
470
+ return path.join(process.cwd(), 'DeepScientist');
471
471
  }
472
472
  if (process.env.DEEPSCIENTIST_HOME) {
473
473
  return path.resolve(process.env.DEEPSCIENTIST_HOME);
@@ -638,10 +638,10 @@ function renderLaunchHints({ home, url, bindUrl, pythonSelection, yolo }) {
638
638
 
639
639
  console.log(colorize('\u001B[1;38;5;39m', 'Quick Flags'));
640
640
  renderKeyValueRows([
641
- ['ds --yolo --port 20999 --here', 'Start in the current directory with YOLO Codex access'],
641
+ ['ds --yolo --port 20999 --here', 'Start in ./DeepScientist under the current directory with YOLO Codex access'],
642
642
  ['ds --port 21000', 'Change the web port'],
643
643
  ['ds --host 0.0.0.0 --port 21000', 'Bind on all interfaces'],
644
- ['ds --here', 'Use the current directory as home'],
644
+ ['ds --here', 'Use ./DeepScientist under the current directory as home'],
645
645
  ['ds --both', 'Start web + TUI together'],
646
646
  ['ds --tui', 'Start the terminal workspace only'],
647
647
  ['ds --no-browser', 'Do not auto-open the browser'],
@@ -39,13 +39,13 @@ If `uv` is missing on your machine, `ds` will bootstrap a local copy automatical
39
39
 
40
40
  By default, the DeepScientist home is `~/DeepScientist` on macOS and Linux, and `%USERPROFILE%\\DeepScientist` on Windows. You can override it with `ds --home <path>`.
41
41
 
42
- If you want to use the current working directory as the DeepScientist home directly, run:
42
+ If you want to place the DeepScientist home under the current working directory, run:
43
43
 
44
44
  ```bash
45
45
  ds --here
46
46
  ```
47
47
 
48
- This is equivalent to `ds --home "$PWD"`.
48
+ This is equivalent to `ds --home "$PWD/DeepScientist"`.
49
49
 
50
50
  If you install from a source checkout and want another default base path for the bundled CLI tree, use:
51
51
 
@@ -39,13 +39,13 @@ DeepScientist 现在使用 `uv` 管理锁定的本地 Python 运行时。如果
39
39
 
40
40
  默认情况下,DeepScientist home 在 macOS / Linux 上是 `~/DeepScientist`,在 Windows 上是 `%USERPROFILE%\\DeepScientist`。如果你希望放到别的路径,可以直接使用 `ds --home <path>`。
41
41
 
42
- 如果你希望直接把“当前工作目录”作为 DeepScientist home,可以运行:
42
+ 如果你希望把 DeepScientist home 放到当前工作目录下的 `./DeepScientist` 中,可以运行:
43
43
 
44
44
  ```bash
45
45
  ds --here
46
46
  ```
47
47
 
48
- 它等价于 `ds --home "$PWD"`。
48
+ 它等价于 `ds --home "$PWD/DeepScientist"`。
49
49
 
50
50
  如果你是从源码仓库安装,并希望把默认的 CLI 安装基路径改到别的位置,可以使用:
51
51
 
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@researai/deepscientist",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "description": "Local-first research operating system with a Python runtime and npm launcher",
5
- "license": "MIT",
5
+ "license": "Apache-2.0",
6
6
  "files": [
7
7
  "AGENTS.md",
8
8
  "README.md",
package/pyproject.toml CHANGED
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "deepscientist"
7
- version = "1.5.8"
7
+ version = "1.5.9"
8
8
  description = "DeepScientist Core skeleton"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
11
- license = { text = "MIT" }
11
+ license = { text = "Apache-2.0" }
12
12
  authors = [
13
13
  { name = "OpenAI Codex" }
14
14
  ]
@@ -5,4 +5,4 @@ __all__ = ["__version__"]
5
5
  try:
6
6
  __version__ = _package_version("deepscientist")
7
7
  except PackageNotFoundError: # pragma: no cover - source checkout fallback
8
- __version__ = "1.5.8"
8
+ __version__ = "1.5.9"
@@ -506,9 +506,7 @@ def _normalize_metric_entry(metric: object, *, fallback_id: str | None = None) -
506
506
  metric_id = as_metric_id(
507
507
  metric.get("metric_id") or metric.get("id") or metric.get("name") or fallback_id,
508
508
  )
509
- direction = str(metric.get("direction") or "").strip().lower()
510
- if direction not in {"maximize", "minimize"}:
511
- direction = infer_metric_direction(metric_id)
509
+ direction = normalize_metric_direction(metric.get("direction"), metric_id=metric_id)
512
510
  decimals_raw = metric.get("decimals")
513
511
  decimals = int(decimals_raw) if isinstance(decimals_raw, int) else None
514
512
  chart_group = str(metric.get("chart_group") or "default").strip() or "default"