@researai/deepscientist 1.5.7 → 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.
- package/LICENSE +186 -21
- package/README.md +8 -4
- package/bin/ds.js +224 -9
- package/docs/en/00_QUICK_START.md +2 -2
- package/docs/en/07_MEMORY_AND_MCP.md +40 -3
- package/docs/en/99_ACKNOWLEDGEMENTS.md +1 -0
- package/docs/zh/00_QUICK_START.md +2 -2
- package/docs/zh/07_MEMORY_AND_MCP.md +40 -3
- package/docs/zh/99_ACKNOWLEDGEMENTS.md +1 -0
- package/install.sh +34 -0
- package/package.json +2 -2
- package/pyproject.toml +2 -2
- package/src/deepscientist/__init__.py +1 -1
- package/src/deepscientist/acp/envelope.py +1 -0
- package/src/deepscientist/artifact/metrics.py +814 -83
- package/src/deepscientist/artifact/schemas.py +1 -0
- package/src/deepscientist/artifact/service.py +2001 -229
- package/src/deepscientist/bash_exec/monitor.py +1 -1
- package/src/deepscientist/bash_exec/service.py +17 -9
- package/src/deepscientist/channels/qq.py +17 -0
- package/src/deepscientist/channels/relay.py +16 -0
- package/src/deepscientist/config/models.py +6 -0
- package/src/deepscientist/config/service.py +70 -2
- package/src/deepscientist/daemon/api/handlers.py +414 -14
- package/src/deepscientist/daemon/api/router.py +4 -0
- package/src/deepscientist/daemon/app.py +292 -21
- package/src/deepscientist/gitops/diff.py +6 -10
- package/src/deepscientist/mcp/server.py +191 -40
- package/src/deepscientist/prompts/builder.py +65 -19
- package/src/deepscientist/quest/node_traces.py +129 -2
- package/src/deepscientist/quest/service.py +140 -34
- package/src/deepscientist/quest/stage_views.py +175 -33
- package/src/deepscientist/registries/baseline.py +56 -4
- package/src/deepscientist/runners/codex.py +1 -1
- package/src/prompts/connectors/qq.md +1 -1
- package/src/prompts/contracts/shared_interaction.md +14 -0
- package/src/prompts/system.md +113 -32
- package/src/skills/analysis-campaign/SKILL.md +10 -14
- package/src/skills/baseline/SKILL.md +51 -38
- package/src/skills/baseline/references/baseline-plan-template.md +2 -0
- package/src/skills/decision/SKILL.md +12 -8
- package/src/skills/experiment/SKILL.md +28 -16
- package/src/skills/experiment/references/main-experiment-plan-template.md +2 -0
- package/src/skills/figure-polish/SKILL.md +1 -0
- package/src/skills/finalize/SKILL.md +3 -8
- package/src/skills/idea/SKILL.md +18 -8
- package/src/skills/idea/references/literature-survey-template.md +24 -0
- package/src/skills/idea/references/related-work-playbook.md +4 -0
- package/src/skills/idea/references/selection-gate.md +9 -0
- package/src/skills/intake-audit/SKILL.md +2 -8
- package/src/skills/rebuttal/SKILL.md +2 -8
- package/src/skills/review/SKILL.md +2 -8
- package/src/skills/scout/SKILL.md +2 -8
- package/src/skills/write/SKILL.md +53 -17
- package/src/skills/write/templates/DEEPSCIENTIST_NOTES.md +21 -0
- package/src/skills/write/templates/README.md +408 -0
- package/src/skills/write/templates/UPSTREAM_LICENSE.txt +21 -0
- package/src/skills/write/templates/aaai2026/README.md +534 -0
- package/src/skills/write/templates/aaai2026/aaai2026-unified-supp.tex +144 -0
- package/src/skills/write/templates/aaai2026/aaai2026-unified-template.tex +952 -0
- package/src/skills/write/templates/aaai2026/aaai2026.bib +111 -0
- package/src/skills/write/templates/aaai2026/aaai2026.bst +1493 -0
- package/src/skills/write/templates/aaai2026/aaai2026.sty +315 -0
- package/src/skills/write/templates/acl/README.md +50 -0
- package/src/skills/write/templates/acl/acl.sty +312 -0
- package/src/skills/write/templates/acl/acl_latex.tex +377 -0
- package/src/skills/write/templates/acl/acl_lualatex.tex +101 -0
- package/src/skills/write/templates/acl/acl_natbib.bst +1940 -0
- package/src/skills/write/templates/acl/anthology.bib.txt +26 -0
- package/src/skills/write/templates/acl/custom.bib +70 -0
- package/src/skills/write/templates/acl/formatting.md +326 -0
- package/src/skills/write/templates/asplos2027/main.tex +459 -0
- package/src/skills/write/templates/asplos2027/references.bib +135 -0
- package/src/skills/write/templates/colm2025/README.md +3 -0
- package/src/skills/write/templates/colm2025/colm2025_conference.bib +11 -0
- package/src/skills/write/templates/colm2025/colm2025_conference.bst +1440 -0
- package/src/skills/write/templates/colm2025/colm2025_conference.sty +218 -0
- package/src/skills/write/templates/colm2025/colm2025_conference.tex +305 -0
- package/src/skills/write/templates/colm2025/fancyhdr.sty +485 -0
- package/src/skills/write/templates/colm2025/math_commands.tex +508 -0
- package/src/skills/write/templates/colm2025/natbib.sty +1246 -0
- package/src/skills/write/templates/iclr2026/fancyhdr.sty +485 -0
- package/src/skills/write/templates/iclr2026/iclr2026_conference.bib +24 -0
- package/src/skills/write/templates/iclr2026/iclr2026_conference.bst +1440 -0
- package/src/skills/write/templates/iclr2026/iclr2026_conference.sty +246 -0
- package/src/skills/write/templates/iclr2026/iclr2026_conference.tex +414 -0
- package/src/skills/write/templates/iclr2026/math_commands.tex +508 -0
- package/src/skills/write/templates/iclr2026/natbib.sty +1246 -0
- package/src/skills/write/templates/icml2026/algorithm.sty +79 -0
- package/src/skills/write/templates/icml2026/algorithmic.sty +201 -0
- package/src/skills/write/templates/icml2026/example_paper.bib +75 -0
- package/src/skills/write/templates/icml2026/example_paper.tex +662 -0
- package/src/skills/write/templates/icml2026/fancyhdr.sty +864 -0
- package/src/skills/write/templates/icml2026/icml2026.bst +1443 -0
- package/src/skills/write/templates/icml2026/icml2026.sty +767 -0
- package/src/skills/write/templates/neurips2025/Makefile +36 -0
- package/src/skills/write/templates/neurips2025/extra_pkgs.tex +53 -0
- package/src/skills/write/templates/neurips2025/main.tex +38 -0
- package/src/skills/write/templates/neurips2025/neurips.sty +382 -0
- package/src/skills/write/templates/nsdi2027/main.tex +426 -0
- package/src/skills/write/templates/nsdi2027/references.bib +151 -0
- package/src/skills/write/templates/nsdi2027/usenix-2020-09.sty +83 -0
- package/src/skills/write/templates/osdi2026/main.tex +429 -0
- package/src/skills/write/templates/osdi2026/references.bib +150 -0
- package/src/skills/write/templates/osdi2026/usenix-2020-09.sty +83 -0
- package/src/skills/write/templates/sosp2026/main.tex +532 -0
- package/src/skills/write/templates/sosp2026/references.bib +148 -0
- package/src/tui/package.json +1 -1
- package/src/ui/dist/assets/{AiManusChatView-BS3V4ZOk.js → AiManusChatView-BKZ103sn.js} +110 -14
- package/src/ui/dist/assets/{AnalysisPlugin-DLPXQsmr.js → AnalysisPlugin-mTTzGAlK.js} +1 -1
- package/src/ui/dist/assets/{AutoFigurePlugin-C-Fr9knQ.js → AutoFigurePlugin-C_wWw4AP.js} +5 -5
- package/src/ui/dist/assets/{CliPlugin-Dd8AHzFg.js → CliPlugin-BH58n3GY.js} +9 -9
- package/src/ui/dist/assets/{CodeEditorPlugin-Dg-RepTl.js → CodeEditorPlugin-BKGRUH7e.js} +8 -8
- package/src/ui/dist/assets/{CodeViewerPlugin-D2J_3nyt.js → CodeViewerPlugin-BMADwFWJ.js} +5 -5
- package/src/ui/dist/assets/{DocViewerPlugin-ChRLLKNb.js → DocViewerPlugin-ZOnTIHLN.js} +3 -3
- package/src/ui/dist/assets/{GitDiffViewerPlugin-DgHfcved.js → GitDiffViewerPlugin-CQ7h1Djm.js} +830 -86
- package/src/ui/dist/assets/{ImageViewerPlugin-C89GZMBy.js → ImageViewerPlugin-GVS5MsnC.js} +5 -5
- package/src/ui/dist/assets/{LabCopilotPanel-BUfIwUcb.js → LabCopilotPanel-BZNv1JML.js} +10 -10
- package/src/ui/dist/assets/{LabPlugin-zvUmQUMq.js → LabPlugin-TWcJsdQA.js} +1 -1
- package/src/ui/dist/assets/{LatexPlugin-C1SSNuWp.js → LatexPlugin-DIjHiR2x.js} +7 -7
- package/src/ui/dist/assets/{MarkdownViewerPlugin-D2Mf5tU5.js → MarkdownViewerPlugin-D3ooGAH0.js} +4 -4
- package/src/ui/dist/assets/{MarketplacePlugin-CF4LgiS2.js → MarketplacePlugin-DfVfE9hN.js} +3 -3
- package/src/ui/dist/assets/{NotebookEditor-BM7Bgwlv.js → NotebookEditor-DDl0_Mc0.js} +1 -1
- package/src/ui/dist/assets/{index-Be0NAmh8.js → NotebookEditor-s8JhzuX1.js} +12 -155
- package/src/ui/dist/assets/{PdfLoader-Bc5qfD-Z.js → PdfLoader-C2Sf6SJM.js} +1 -1
- package/src/ui/dist/assets/{PdfMarkdownPlugin-sh1-IRcp.js → PdfMarkdownPlugin-CXFLoIsa.js} +3 -3
- package/src/ui/dist/assets/{PdfViewerPlugin-C_a7CpWG.js → PdfViewerPlugin-BYTmz2fK.js} +10 -10
- package/src/ui/dist/assets/{SearchPlugin-L4z3HcLf.js → SearchPlugin-CjWBI1O9.js} +1 -1
- package/src/ui/dist/assets/{Stepper-Dk4aQ3fN.js → Stepper-B0Dd8CxK.js} +1 -1
- package/src/ui/dist/assets/{TextViewerPlugin-BsNtlKVo.js → TextViewerPlugin-DdOBU3-S.js} +4 -4
- package/src/ui/dist/assets/{VNCViewer-BpeDcZ5_.js → VNCViewer-B8HGgLwQ.js} +9 -9
- package/src/ui/dist/assets/{bibtex-C4QI-bbj.js → bibtex-CKaefIN2.js} +1 -1
- package/src/ui/dist/assets/{code-DuMINRsg.js → code-BWAY76JP.js} +1 -1
- package/src/ui/dist/assets/{file-content-C3N-432K.js → file-content-C1NwU5oQ.js} +1 -1
- package/src/ui/dist/assets/{file-diff-panel-CffQ4ZMg.js → file-diff-panel-CywslwB9.js} +1 -1
- package/src/ui/dist/assets/{file-socket-CRH59PCO.js → file-socket-B4kzuOBQ.js} +1 -1
- package/src/ui/dist/assets/{file-utils-vYGtW2mI.js → file-utils-H2fjA46S.js} +1 -1
- package/src/ui/dist/assets/{image-DBVGaooo.js → image-D-NZM-6P.js} +1 -1
- package/src/ui/dist/assets/{index-B1P6hQRJ.js → index-7Chr1g9c.js} +3734 -1862
- package/src/ui/dist/assets/{index-DjSFDmgB.js → index-BdM1Gqfr.js} +2 -2
- package/src/ui/dist/assets/{index-BpjYH9Vg.js → index-CDxNdQdz.js} +1 -1
- package/src/ui/dist/assets/{index-Do9N28uB.css → index-DGIYDuTv.css} +163 -34
- package/src/ui/dist/assets/index-DHZJ_0TI.js +159 -0
- package/src/ui/dist/assets/{message-square-BsPDBhiY.js → message-square-BzjLiXir.js} +1 -1
- package/src/ui/dist/assets/{monaco-BTkdPojV.js → monaco-Cb2uKKe6.js} +1 -1
- package/src/ui/dist/assets/{popover-cWjCk-vc.js → popover-Bg72DGgT.js} +1 -1
- package/src/ui/dist/assets/{project-sync-CXn530xb.js → project-sync-Ce_0BglY.js} +1 -1
- package/src/ui/dist/assets/{sigma-04Jr12jg.js → sigma-DPaACDrh.js} +1 -1
- package/src/ui/dist/assets/{tooltip-BdVDl0G5.js → tooltip-C_mA6R0w.js} +1 -1
- package/src/ui/dist/assets/{trash-CB_GlQyC.js → trash-BvTgE5__.js} +1 -1
- package/src/ui/dist/assets/{useCliAccess-BL932NwS.js → useCliAccess-CgPeMOwP.js} +1 -1
- package/src/ui/dist/assets/{useFileDiffOverlay-B2WK7Tvq.js → useFileDiffOverlay-xPhz7P5B.js} +1 -1
- package/src/ui/dist/assets/{wrap-text-YC68g12z.js → wrap-text-C3Un3YQr.js} +1 -1
- package/src/ui/dist/assets/{zoom-out-C0RJvFiJ.js → zoom-out-BgxLa0Ri.js} +1 -1
- package/src/ui/dist/index.html +5 -2
- /package/src/ui/dist/assets/{index-CccQYZjX.css → NotebookEditor-CccQYZjX.css} +0 -0
package/LICENSE
CHANGED
|
@@ -1,21 +1,186 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
@@ -17,6 +17,8 @@ Install DeepScientist:
|
|
|
17
17
|
npm install -g @researai/deepscientist
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
For the best experience, we recommend using GPT-5.4 in `xhigh` mode (for example, via the $20 GPT Plus plan or the $200 GPT Pro plan); if you are in China, we recommend the MiniMax-M2.7 Token Plan (Max plan): https://platform.minimaxi.com/subscribe/token-plan
|
|
21
|
+
|
|
20
22
|
## Start
|
|
21
23
|
|
|
22
24
|
```bash
|
|
@@ -37,7 +39,7 @@ Parameter meanings:
|
|
|
37
39
|
|
|
38
40
|
- `--yolo`: run Codex in YOLO mode, which sets `approval_policy=never` and `sandbox_mode=danger-full-access`
|
|
39
41
|
- `--port 20999`: bind the local web workspace to port `20999`
|
|
40
|
-
- `--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
|
|
41
43
|
|
|
42
44
|
On first start, `ds` will:
|
|
43
45
|
|
|
@@ -72,13 +74,13 @@ The default DeepScientist home is:
|
|
|
72
74
|
|
|
73
75
|
Use `ds --home <path>` if you want to place the runtime somewhere else.
|
|
74
76
|
|
|
75
|
-
If you want to
|
|
77
|
+
If you want to place the DeepScientist home under the current working directory, use:
|
|
76
78
|
|
|
77
79
|
```bash
|
|
78
80
|
ds --here
|
|
79
81
|
```
|
|
80
82
|
|
|
81
|
-
This is equivalent to launching with `ds --home "$PWD"`.
|
|
83
|
+
This is equivalent to launching with `ds --home "$PWD/DeepScientist"`.
|
|
82
84
|
|
|
83
85
|
Useful launch examples:
|
|
84
86
|
|
|
@@ -124,6 +126,8 @@ This installs a lightweight TinyTeX `pdflatex` runtime for local paper compilati
|
|
|
124
126
|
- [快速开始(中文)](docs/zh/00_QUICK_START.md)
|
|
125
127
|
- [QQ Connector Guide (English)](docs/en/03_QQ_CONNECTOR_GUIDE.md)
|
|
126
128
|
- [QQ Connector Guide (中文)](docs/zh/03_QQ_CONNECTOR_GUIDE.md)
|
|
129
|
+
- [Memory and MCP Guide (English)](docs/en/07_MEMORY_AND_MCP.md)
|
|
130
|
+
- [Memory 与 MCP 指南(中文)](docs/zh/07_MEMORY_AND_MCP.md)
|
|
127
131
|
|
|
128
132
|
## Maintainers
|
|
129
133
|
|
|
@@ -149,4 +153,4 @@ url={https://openreview.net/forum?id=cZFgsLq8Gs}
|
|
|
149
153
|
|
|
150
154
|
## License
|
|
151
155
|
|
|
152
|
-
[
|
|
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
|
|
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
|
|
@@ -220,6 +220,17 @@ function compareVersions(left, right) {
|
|
|
220
220
|
return 0;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
function hasActiveBusyUpdate(state, currentVersion) {
|
|
224
|
+
if (!state || !state.busy) {
|
|
225
|
+
return false;
|
|
226
|
+
}
|
|
227
|
+
const targetVersion = normalizeVersion(state.target_version || state.latest_version || '');
|
|
228
|
+
if (!targetVersion) {
|
|
229
|
+
return false;
|
|
230
|
+
}
|
|
231
|
+
return compareVersions(targetVersion, currentVersion) > 0;
|
|
232
|
+
}
|
|
233
|
+
|
|
223
234
|
function detectInstallMode(rootPath = repoRoot) {
|
|
224
235
|
const normalized = String(rootPath || '');
|
|
225
236
|
return normalized.includes(`${path.sep}node_modules${path.sep}`) ? 'npm-package' : 'source-checkout';
|
|
@@ -326,6 +337,8 @@ function buildUpdateStatus(home, statePatch = {}) {
|
|
|
326
337
|
const support = updateSupportSummary(installMode, npmBinary, launcherPath);
|
|
327
338
|
const currentVersion = normalizeVersion(state.current_version || packageJson.version);
|
|
328
339
|
const latestVersion = normalizeVersion(state.latest_version || '');
|
|
340
|
+
const targetVersion = normalizeVersion(state.target_version || '');
|
|
341
|
+
const busy = hasActiveBusyUpdate(state, currentVersion);
|
|
329
342
|
const promptedVersion = normalizeVersion(state.last_prompted_version || '');
|
|
330
343
|
const updateAvailable = Boolean(latestVersion) && compareVersions(latestVersion, currentVersion) > 0;
|
|
331
344
|
const skippedVersion = normalizeVersion(state.last_skipped_version || '');
|
|
@@ -333,7 +346,7 @@ function buildUpdateStatus(home, statePatch = {}) {
|
|
|
333
346
|
const skippedCurrentTarget = Boolean(updateAvailable && skippedVersion && skippedVersion === latestVersion);
|
|
334
347
|
const promptRecommended =
|
|
335
348
|
Boolean(updateAvailable)
|
|
336
|
-
&& !
|
|
349
|
+
&& !busy
|
|
337
350
|
&& !promptedCurrentTarget
|
|
338
351
|
&& !skippedCurrentTarget
|
|
339
352
|
;
|
|
@@ -348,7 +361,7 @@ function buildUpdateStatus(home, statePatch = {}) {
|
|
|
348
361
|
latest_version: latestVersion || null,
|
|
349
362
|
update_available: updateAvailable,
|
|
350
363
|
prompt_recommended: promptRecommended,
|
|
351
|
-
busy
|
|
364
|
+
busy,
|
|
352
365
|
last_checked_at: state.last_checked_at || null,
|
|
353
366
|
last_check_error: state.last_check_error || null,
|
|
354
367
|
last_prompted_at: state.last_prompted_at || null,
|
|
@@ -358,7 +371,7 @@ function buildUpdateStatus(home, statePatch = {}) {
|
|
|
358
371
|
last_update_started_at: state.last_update_started_at || null,
|
|
359
372
|
last_update_finished_at: state.last_update_finished_at || null,
|
|
360
373
|
last_update_result: state.last_update_result || null,
|
|
361
|
-
target_version:
|
|
374
|
+
target_version: busy ? targetVersion || latestVersion || null : null,
|
|
362
375
|
manual_update_command: updateManualCommand(installMode),
|
|
363
376
|
reason: support.reason,
|
|
364
377
|
};
|
|
@@ -371,8 +384,16 @@ function checkForUpdates(home, { force = false, timeoutMs = 3500 } = {}) {
|
|
|
371
384
|
const npmBinary = resolveNpmBinary();
|
|
372
385
|
const launcherPath = resolveLauncherPath();
|
|
373
386
|
const support = updateSupportSummary(installMode, npmBinary, launcherPath);
|
|
387
|
+
const existingBusyIsStale = Boolean(existing.busy) && !hasActiveBusyUpdate(existing, currentVersion);
|
|
374
388
|
|
|
375
389
|
if (!force && existing.current_version === currentVersion && !isExpired(existing.last_checked_at, UPDATE_CHECK_TTL_MS)) {
|
|
390
|
+
if (existingBusyIsStale) {
|
|
391
|
+
const repaired = mergeUpdateState(home, {
|
|
392
|
+
busy: false,
|
|
393
|
+
target_version: null,
|
|
394
|
+
});
|
|
395
|
+
return buildUpdateStatus(home, repaired);
|
|
396
|
+
}
|
|
376
397
|
return buildUpdateStatus(home);
|
|
377
398
|
}
|
|
378
399
|
|
|
@@ -392,6 +413,13 @@ function checkForUpdates(home, { force = false, timeoutMs = 3500 } = {}) {
|
|
|
392
413
|
last_checked_at: new Date().toISOString(),
|
|
393
414
|
last_check_error: probe.ok ? null : probe.error,
|
|
394
415
|
});
|
|
416
|
+
if (Boolean(patched.busy) && !hasActiveBusyUpdate(patched, currentVersion)) {
|
|
417
|
+
const repaired = mergeUpdateState(home, {
|
|
418
|
+
busy: false,
|
|
419
|
+
target_version: null,
|
|
420
|
+
});
|
|
421
|
+
return buildUpdateStatus(home, repaired);
|
|
422
|
+
}
|
|
395
423
|
return buildUpdateStatus(home, patched);
|
|
396
424
|
}
|
|
397
425
|
|
|
@@ -439,7 +467,7 @@ function resolveHome(args) {
|
|
|
439
467
|
return path.resolve(args[index + 1]);
|
|
440
468
|
}
|
|
441
469
|
if (args.includes('--here')) {
|
|
442
|
-
return process.cwd();
|
|
470
|
+
return path.join(process.cwd(), 'DeepScientist');
|
|
443
471
|
}
|
|
444
472
|
if (process.env.DEEPSCIENTIST_HOME) {
|
|
445
473
|
return path.resolve(process.env.DEEPSCIENTIST_HOME);
|
|
@@ -610,10 +638,10 @@ function renderLaunchHints({ home, url, bindUrl, pythonSelection, yolo }) {
|
|
|
610
638
|
|
|
611
639
|
console.log(colorize('\u001B[1;38;5;39m', 'Quick Flags'));
|
|
612
640
|
renderKeyValueRows([
|
|
613
|
-
['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'],
|
|
614
642
|
['ds --port 21000', 'Change the web port'],
|
|
615
643
|
['ds --host 0.0.0.0 --port 21000', 'Bind on all interfaces'],
|
|
616
|
-
['ds --here', 'Use the current directory as home'],
|
|
644
|
+
['ds --here', 'Use ./DeepScientist under the current directory as home'],
|
|
617
645
|
['ds --both', 'Start web + TUI together'],
|
|
618
646
|
['ds --tui', 'Start the terminal workspace only'],
|
|
619
647
|
['ds --no-browser', 'Do not auto-open the browser'],
|
|
@@ -1142,6 +1170,40 @@ function buildGlobalWrapperScript({ installDir, home, commandName }) {
|
|
|
1142
1170
|
return [
|
|
1143
1171
|
'#!/usr/bin/env bash',
|
|
1144
1172
|
'set -euo pipefail',
|
|
1173
|
+
'WRAPPER_PATH="${BASH_SOURCE[0]}"',
|
|
1174
|
+
'WRAPPER_DIR="$(cd "$(dirname "$WRAPPER_PATH")" && pwd)"',
|
|
1175
|
+
`PREFERRED_COMMAND="${commandName}"`,
|
|
1176
|
+
'LOOKUP_PATH=""',
|
|
1177
|
+
'OLD_IFS="$IFS"',
|
|
1178
|
+
'IFS=:',
|
|
1179
|
+
'for ENTRY in $PATH; do',
|
|
1180
|
+
' if [ -z "$ENTRY" ]; then',
|
|
1181
|
+
' continue',
|
|
1182
|
+
' fi',
|
|
1183
|
+
' ENTRY_REAL="$ENTRY"',
|
|
1184
|
+
' if ENTRY_CANONICAL="$(cd "$ENTRY" 2>/dev/null && pwd)"; then',
|
|
1185
|
+
' ENTRY_REAL="$ENTRY_CANONICAL"',
|
|
1186
|
+
' fi',
|
|
1187
|
+
' if [ "$ENTRY_REAL" = "$WRAPPER_DIR" ]; then',
|
|
1188
|
+
' continue',
|
|
1189
|
+
' fi',
|
|
1190
|
+
' if [ -z "$LOOKUP_PATH" ]; then',
|
|
1191
|
+
' LOOKUP_PATH="$ENTRY"',
|
|
1192
|
+
' else',
|
|
1193
|
+
' LOOKUP_PATH="$LOOKUP_PATH:$ENTRY"',
|
|
1194
|
+
' fi',
|
|
1195
|
+
'done',
|
|
1196
|
+
'IFS="$OLD_IFS"',
|
|
1197
|
+
'if [ -n "$LOOKUP_PATH" ]; then',
|
|
1198
|
+
' if RESOLVED_LAUNCHER="$(PATH="$LOOKUP_PATH" command -v "$PREFERRED_COMMAND" 2>/dev/null)"; then',
|
|
1199
|
+
' if [ -n "$RESOLVED_LAUNCHER" ] && [ "$RESOLVED_LAUNCHER" != "$WRAPPER_PATH" ]; then',
|
|
1200
|
+
' if [ -z "${DEEPSCIENTIST_HOME:-}" ]; then',
|
|
1201
|
+
` export DEEPSCIENTIST_HOME="${home}"`,
|
|
1202
|
+
' fi',
|
|
1203
|
+
' exec "$RESOLVED_LAUNCHER" "$@"',
|
|
1204
|
+
' fi',
|
|
1205
|
+
' fi',
|
|
1206
|
+
'fi',
|
|
1145
1207
|
'if [ -z "${DEEPSCIENTIST_HOME:-}" ]; then',
|
|
1146
1208
|
` export DEEPSCIENTIST_HOME="${home}"`,
|
|
1147
1209
|
'fi',
|
|
@@ -1150,6 +1212,18 @@ function buildGlobalWrapperScript({ installDir, home, commandName }) {
|
|
|
1150
1212
|
].join('\n');
|
|
1151
1213
|
}
|
|
1152
1214
|
|
|
1215
|
+
function buildLauncherWrapperScript({ launcherPath, home }) {
|
|
1216
|
+
return [
|
|
1217
|
+
'#!/usr/bin/env bash',
|
|
1218
|
+
'set -euo pipefail',
|
|
1219
|
+
'if [ -z "${DEEPSCIENTIST_HOME:-}" ]; then',
|
|
1220
|
+
` export DEEPSCIENTIST_HOME="${home}"`,
|
|
1221
|
+
'fi',
|
|
1222
|
+
`exec "${launcherPath}" "$@"`,
|
|
1223
|
+
'',
|
|
1224
|
+
].join('\n');
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1153
1227
|
function writeExecutableScript(targetPath, content) {
|
|
1154
1228
|
ensureDir(path.dirname(targetPath));
|
|
1155
1229
|
fs.writeFileSync(targetPath, content, { encoding: 'utf8', mode: 0o755 });
|
|
@@ -1186,6 +1260,94 @@ function candidateWrapperPathsForCommand(commandName) {
|
|
|
1186
1260
|
return candidates;
|
|
1187
1261
|
}
|
|
1188
1262
|
|
|
1263
|
+
function parseLegacyWrapperCandidate(candidatePath) {
|
|
1264
|
+
let stat = null;
|
|
1265
|
+
try {
|
|
1266
|
+
stat = fs.lstatSync(candidatePath);
|
|
1267
|
+
} catch {
|
|
1268
|
+
return null;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
if (stat.isSymbolicLink()) {
|
|
1272
|
+
let resolved = null;
|
|
1273
|
+
try {
|
|
1274
|
+
resolved = fs.realpathSync(candidatePath);
|
|
1275
|
+
} catch {
|
|
1276
|
+
return null;
|
|
1277
|
+
}
|
|
1278
|
+
if (!/[\\/]cli[\\/]bin[\\/](?:ds|ds-cli|research|resear)(?:\.cmd)?$/.test(resolved)) {
|
|
1279
|
+
return null;
|
|
1280
|
+
}
|
|
1281
|
+
return {
|
|
1282
|
+
source: 'symlink',
|
|
1283
|
+
execPath: resolved,
|
|
1284
|
+
home: path.dirname(path.dirname(path.dirname(resolved))),
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
if (!stat.isFile()) {
|
|
1289
|
+
return null;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
let text = '';
|
|
1293
|
+
try {
|
|
1294
|
+
text = fs.readFileSync(candidatePath, 'utf8');
|
|
1295
|
+
} catch {
|
|
1296
|
+
return null;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
const execMatch = text.match(/exec "([^"\n]+[\\/]bin[\\/](?:ds|ds-cli|research|resear))" "\$@"/);
|
|
1300
|
+
if (!execMatch) {
|
|
1301
|
+
return null;
|
|
1302
|
+
}
|
|
1303
|
+
const execPath = execMatch[1];
|
|
1304
|
+
if (!/[\\/]cli[\\/]bin[\\/](?:ds|ds-cli|research|resear)$/.test(execPath)) {
|
|
1305
|
+
return null;
|
|
1306
|
+
}
|
|
1307
|
+
const homeMatch = text.match(/export DEEPSCIENTIST_HOME="([^"\n]+)"/);
|
|
1308
|
+
return {
|
|
1309
|
+
source: 'script',
|
|
1310
|
+
execPath,
|
|
1311
|
+
home: homeMatch ? homeMatch[1] : path.dirname(path.dirname(path.dirname(execPath))),
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
function repairLegacyPathWrappers({ home, launcherPath, force = false }) {
|
|
1316
|
+
if (process.platform === 'win32') {
|
|
1317
|
+
return [];
|
|
1318
|
+
}
|
|
1319
|
+
if (!launcherPath || !fs.existsSync(launcherPath)) {
|
|
1320
|
+
return [];
|
|
1321
|
+
}
|
|
1322
|
+
if (!force && detectInstallMode(repoRoot) !== 'npm-package') {
|
|
1323
|
+
return [];
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
const rewritten = [];
|
|
1327
|
+
const seen = new Set();
|
|
1328
|
+
for (const commandName of launcherWrapperCommands) {
|
|
1329
|
+
for (const candidate of candidateWrapperPathsForCommand(commandName)) {
|
|
1330
|
+
if (seen.has(candidate)) {
|
|
1331
|
+
continue;
|
|
1332
|
+
}
|
|
1333
|
+
seen.add(candidate);
|
|
1334
|
+
const legacy = parseLegacyWrapperCandidate(candidate);
|
|
1335
|
+
if (!legacy) {
|
|
1336
|
+
continue;
|
|
1337
|
+
}
|
|
1338
|
+
writeExecutableScript(
|
|
1339
|
+
candidate,
|
|
1340
|
+
buildLauncherWrapperScript({
|
|
1341
|
+
launcherPath,
|
|
1342
|
+
home: legacy.home || home,
|
|
1343
|
+
})
|
|
1344
|
+
);
|
|
1345
|
+
rewritten.push(candidate);
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
return rewritten;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1189
1351
|
function rewriteLauncherWrappersIfPointingAtSource({ sourceHome, targetHome }) {
|
|
1190
1352
|
if (process.platform === 'win32') {
|
|
1191
1353
|
return [];
|
|
@@ -2622,19 +2784,45 @@ function spawnDetachedNode(args, options = {}) {
|
|
|
2622
2784
|
async function performSelfUpdate(home, options = {}) {
|
|
2623
2785
|
const status = checkForUpdates(home, { force: true });
|
|
2624
2786
|
if (!status.update_available) {
|
|
2787
|
+
const message = `DeepScientist is already on the latest version (${status.current_version}).`;
|
|
2788
|
+
mergeUpdateState(home, {
|
|
2789
|
+
current_version: status.current_version,
|
|
2790
|
+
latest_version: status.latest_version,
|
|
2791
|
+
busy: false,
|
|
2792
|
+
target_version: null,
|
|
2793
|
+
last_update_finished_at: new Date().toISOString(),
|
|
2794
|
+
last_update_result: {
|
|
2795
|
+
ok: true,
|
|
2796
|
+
target_version: null,
|
|
2797
|
+
message,
|
|
2798
|
+
},
|
|
2799
|
+
});
|
|
2625
2800
|
return {
|
|
2626
2801
|
ok: true,
|
|
2627
2802
|
updated: false,
|
|
2628
2803
|
status,
|
|
2629
|
-
message
|
|
2804
|
+
message,
|
|
2630
2805
|
};
|
|
2631
2806
|
}
|
|
2632
2807
|
if (!status.can_self_update) {
|
|
2808
|
+
const message = status.reason || `Manual update required: ${status.manual_update_command}`;
|
|
2809
|
+
mergeUpdateState(home, {
|
|
2810
|
+
current_version: status.current_version,
|
|
2811
|
+
latest_version: status.latest_version,
|
|
2812
|
+
busy: false,
|
|
2813
|
+
target_version: null,
|
|
2814
|
+
last_update_finished_at: new Date().toISOString(),
|
|
2815
|
+
last_update_result: {
|
|
2816
|
+
ok: false,
|
|
2817
|
+
target_version: status.latest_version || null,
|
|
2818
|
+
message,
|
|
2819
|
+
},
|
|
2820
|
+
});
|
|
2633
2821
|
return {
|
|
2634
2822
|
ok: false,
|
|
2635
2823
|
updated: false,
|
|
2636
2824
|
status,
|
|
2637
|
-
message
|
|
2825
|
+
message,
|
|
2638
2826
|
};
|
|
2639
2827
|
}
|
|
2640
2828
|
|
|
@@ -2697,6 +2885,11 @@ async function performSelfUpdate(home, options = {}) {
|
|
|
2697
2885
|
};
|
|
2698
2886
|
}
|
|
2699
2887
|
|
|
2888
|
+
repairLegacyPathWrappers({
|
|
2889
|
+
home,
|
|
2890
|
+
launcherPath: resolveLauncherPath(),
|
|
2891
|
+
});
|
|
2892
|
+
|
|
2700
2893
|
const restartDaemon =
|
|
2701
2894
|
options.restartDaemon === true
|
|
2702
2895
|
|| (options.restartDaemon !== false && Boolean(daemonState?.pid || daemonState?.daemon_id));
|
|
@@ -2799,6 +2992,22 @@ async function startBackgroundUpdateWorker(home, options = {}) {
|
|
|
2799
2992
|
};
|
|
2800
2993
|
}
|
|
2801
2994
|
const status = checkForUpdates(home, { force: false });
|
|
2995
|
+
if (!status.update_available) {
|
|
2996
|
+
return {
|
|
2997
|
+
ok: true,
|
|
2998
|
+
started: false,
|
|
2999
|
+
message: `DeepScientist is already on the latest version (${status.current_version}).`,
|
|
3000
|
+
status,
|
|
3001
|
+
};
|
|
3002
|
+
}
|
|
3003
|
+
if (!status.can_self_update) {
|
|
3004
|
+
return {
|
|
3005
|
+
ok: false,
|
|
3006
|
+
started: false,
|
|
3007
|
+
message: status.reason || `Manual update required: ${status.manual_update_command}`,
|
|
3008
|
+
status,
|
|
3009
|
+
};
|
|
3010
|
+
}
|
|
2802
3011
|
mergeUpdateState(home, {
|
|
2803
3012
|
current_version: status.current_version,
|
|
2804
3013
|
latest_version: status.latest_version,
|
|
@@ -3311,6 +3520,10 @@ async function launcherMain(rawArgs) {
|
|
|
3311
3520
|
const home = options.home || resolveHome(rawArgs);
|
|
3312
3521
|
applyLauncherProxy(options.proxy);
|
|
3313
3522
|
ensureDir(home);
|
|
3523
|
+
repairLegacyPathWrappers({
|
|
3524
|
+
home,
|
|
3525
|
+
launcherPath: resolveLauncherPath(),
|
|
3526
|
+
});
|
|
3314
3527
|
|
|
3315
3528
|
if (options.stop) {
|
|
3316
3529
|
await stopDaemon(home);
|
|
@@ -3460,6 +3673,8 @@ module.exports = {
|
|
|
3460
3673
|
parseLauncherArgs,
|
|
3461
3674
|
normalizeProxyUrl,
|
|
3462
3675
|
parseMigrateArgs,
|
|
3676
|
+
parseLegacyWrapperCandidate,
|
|
3677
|
+
repairLegacyPathWrappers,
|
|
3463
3678
|
useEditableProjectInstall,
|
|
3464
3679
|
compareVersions,
|
|
3465
3680
|
detectInstallMode,
|
|
@@ -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
|
|
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
|
|