@deepseek-ai/dsh-app-boot 0.0.1-rc.3 → 0.1.0-rc.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/LICENSE CHANGED
@@ -1,28 +1,21 @@
1
- BSD 3-Clause License
1
+ MIT License
2
2
 
3
- Copyright (c) 2026, DeepSeek
3
+ Copyright (c) 2026 DeepSeek
4
4
 
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are met:
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:
7
11
 
8
- 1. Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
10
14
 
11
- 2. Redistributions in binary form must reproduce the above copyright notice,
12
- this list of conditions and the following disclaimer in the documentation
13
- and/or other materials provided with the distribution.
14
-
15
- 3. Neither the name of the copyright holder nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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.
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { fileURLToPath, pathToFileURL } from "node:url";
3
- import { existsSync, lstatSync, mkdirSync, readFileSync, readlinkSync, rmSync, symlinkSync, writeFileSync } from "node:fs";
3
+ import { existsSync, lstatSync, mkdirSync, readFileSync, readlinkSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
4
4
  import { parseEnv } from "node:util";
5
5
  import { basename, dirname, extname, isAbsolute, join, resolve } from "node:path";
6
6
  import * as yaml from "js-yaml";
@@ -378,7 +378,7 @@ function ensureSymlink(link, target) {
378
378
  if (stat !== void 0) {
379
379
  if (!stat.isSymbolicLink()) throw new Error(`dsh: ${link} exists and is not a symlink; remove it so dsh can manage the installation fallback`);
380
380
  if (readlinkSync(link) === target) return;
381
- rmSync(link);
381
+ unlinkSync(link);
382
382
  }
383
383
  try {
384
384
  symlinkSync(target, link, "junction");
@@ -397,7 +397,7 @@ function ensureSymlink(link, target) {
397
397
  * installation" contract. The closure (not just direct dependencies) is
398
398
  * required for out-of-tree plugins: their peer dependencies name Service
399
399
  * Definition packages (`dsh-compaction`, `dsh-invariants`, ...) that the app
400
- * reaches only through its Service provider packages. Symlinked packages
400
+ * reaches only through its Service Provider packages. Symlinked packages
401
401
  * resolve their own dependencies from their real directories (Node's default
402
402
  * symlink-following), so each package needs only its one flat link.
403
403
  * Idempotent: correct links are kept and moved installations are
@@ -107,7 +107,7 @@ export declare function initProfile(dir: string, bundles: readonly string[]): vo
107
107
  * installation" contract. The closure (not just direct dependencies) is
108
108
  * required for out-of-tree plugins: their peer dependencies name Service
109
109
  * Definition packages (`dsh-compaction`, `dsh-invariants`, ...) that the app
110
- * reaches only through its Service provider packages. Symlinked packages
110
+ * reaches only through its Service Provider packages. Symlinked packages
111
111
  * resolve their own dependencies from their real directories (Node's default
112
112
  * symlink-following), so each package needs only its one flat link.
113
113
  * Idempotent: correct links are kept and moved installations are
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-app-boot",
3
3
  "description": "Shared boot glue for the app bins: .env loading, fail-loud Loader guards, snapshot-aware config resolution, and the Loader boot sequence",
4
- "version": "0.0.1-rc.3",
4
+ "version": "0.1.0-rc.2",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },
@@ -30,20 +30,20 @@
30
30
  "lib/invariant.js",
31
31
  "lib/types/**/*.d.ts"
32
32
  ],
33
- "license": "BSD-3-Clause",
33
+ "license": "MIT",
34
34
  "dependencies": {
35
35
  "js-yaml": "^4.2.0"
36
36
  },
37
37
  "peerDependencies": {
38
- "@deepseek-ai/cordis-plugin-group": "^1.0.1-rc.1",
39
- "@deepseek-ai/cordis-plugin-hmr": "^1.0.16-rc.1",
40
- "@deepseek-ai/cordis-plugin-include": "^1.0.5-rc.1",
41
- "@deepseek-ai/cordis-plugin-loader": "^1.0.1-rc.1",
42
- "@deepseek-ai/dsh-launch-environment": "^0.0.1-rc.3",
43
- "@deepseek-ai/dsh-invariants": "^0.0.1-rc.3",
44
- "@deepseek-ai/dsh-home-paths": "^0.0.1-rc.3",
45
- "@deepseek-ai/dsh-system-prompt": "^0.0.1-rc.3",
46
- "@deepseek-ai/cordis": "^4.0.1-rc.1"
38
+ "@deepseek-ai/cordis-plugin-include": "^1.0.6",
39
+ "@deepseek-ai/cordis-plugin-hmr": "^1.0.16",
40
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.2",
41
+ "@deepseek-ai/cordis-plugin-group": "^1.0.1",
42
+ "@deepseek-ai/dsh-launch-environment": "^0.1.0-rc.2",
43
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.2",
44
+ "@deepseek-ai/dsh-home-paths": "^0.1.0-rc.2",
45
+ "@deepseek-ai/dsh-system-prompt": "^0.1.0-rc.2",
46
+ "@deepseek-ai/cordis": "^4.0.1"
47
47
  },
48
48
  "peerDependenciesMeta": {
49
49
  "@deepseek-ai/cordis-plugin-hmr": {
@@ -52,15 +52,15 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/js-yaml": "^4.0.9",
55
- "@deepseek-ai/cordis-plugin-hmr": "^1.0.16-rc.1",
56
- "@deepseek-ai/cordis-plugin-include": "^1.0.5-rc.1",
57
- "@deepseek-ai/cordis-plugin-loader": "^1.0.1-rc.1",
58
- "@deepseek-ai/cordis-plugin-timer": "^1.1.3-rc.1",
59
- "@deepseek-ai/dsh-launch-environment": "^0.0.1-rc.3",
60
- "@deepseek-ai/cordis-plugin-group": "^1.0.1-rc.1",
61
- "@deepseek-ai/dsh-invariants": "^0.0.1-rc.3",
62
- "@deepseek-ai/dsh-home-paths": "^0.0.1-rc.3",
63
- "@deepseek-ai/dsh-system-prompt": "^0.0.1-rc.3",
64
- "@deepseek-ai/cordis": "^4.0.1-rc.1"
55
+ "@deepseek-ai/cordis-plugin-group": "^1.0.1",
56
+ "@deepseek-ai/cordis-plugin-hmr": "^1.0.16",
57
+ "@deepseek-ai/cordis-plugin-include": "^1.0.6",
58
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.2",
59
+ "@deepseek-ai/cordis-plugin-timer": "^1.1.3",
60
+ "@deepseek-ai/dsh-launch-environment": "^0.1.0-rc.2",
61
+ "@deepseek-ai/cordis": "^4.0.1",
62
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.2",
63
+ "@deepseek-ai/dsh-home-paths": "^0.1.0-rc.2",
64
+ "@deepseek-ai/dsh-system-prompt": "^0.1.0-rc.2"
65
65
  }
66
66
  }