@whyshu/argent 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/lib/index.mjs +13 -9
  2. package/package.json +2 -11
package/lib/index.mjs CHANGED
@@ -70,14 +70,18 @@ export function pluginDirs({ repo = repoRoot() } = {}) {
70
70
  return out;
71
71
  }
72
72
 
73
- /** 启动器自身依赖里的版本(发布模式:本地没有 plugins/ 时改用 npm 依赖) */
74
- function launcherDependencyVersions() {
75
- try {
76
- const pkgPath = join(dirname(fileURLToPath(import.meta.url)), '..', 'package.json');
77
- const deps = JSON.parse(readFileSync(pkgPath, 'utf8')).dependencies || {};
78
- return deps;
79
- } catch { return {}; }
80
- }
73
+ /** 已发布插件的版本(发布模式装配 profile 用;与 npm 上实际可见版本对齐) */
74
+ export const PUBLISHED_BUNDLE_VERSIONS = {
75
+ '@whyshu/argent-presets': '0.1.1',
76
+ '@whyshu/argent-core': '0.1.5',
77
+ '@whyshu/argent-dsh': '0.1.0',
78
+ '@whyshu/argent-skin': '0.1.4',
79
+ '@whyshu/argent-gateway': '0.2.3',
80
+ '@whyshu/argent-flow': '0.1.0',
81
+ '@whyshu/argent-ml': '0.1.0',
82
+ '@michengai/dsh-im-connect': '1.0.2',
83
+ '@linxin666/dsh-client-ui-task-board': '0.4.7',
84
+ };
81
85
 
82
86
  export function profileDir(dshHome, profile = PROFILE_NAME) {
83
87
  return join(dshHome, 'profiles', profile);
@@ -88,7 +92,7 @@ export function buildProfile({ dshHome = dshHomeOf(), profile = PROFILE_NAME, re
88
92
  const dir = profileDir(dshHome, profile);
89
93
  mkdirSync(dir, { recursive: true });
90
94
  const plugins = pluginDirs({ repo });
91
- const npmVersions = launcherDependencyVersions();
95
+ const npmVersions = PUBLISHED_BUNDLE_VERSIONS;
92
96
  const bundles = [...BASE_BUNDLES, ...(extraBundles || [])];
93
97
  const deps = {};
94
98
  const missing = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whyshu/argent",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Argent 启动器:一条命令启动「打包好的 dsh + Argent 插件/角色预设」,并管理本机 runner 常驻。",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,16 +14,7 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@deepseek-ai/dsh": "0.2.1-rc.2",
18
- "@whyshu/argent-presets": "0.1.1",
19
- "@whyshu/argent-core": "0.1.5",
20
- "@whyshu/argent-dsh": "0.1.0",
21
- "@whyshu/argent-skin": "0.1.4",
22
- "@whyshu/argent-gateway": "0.2.3",
23
- "@whyshu/argent-flow": "0.1.0",
24
- "@whyshu/argent-ml": "0.1.0",
25
- "@michengai/dsh-im-connect": "1.0.2",
26
- "@linxin666/dsh-client-ui-task-board": "0.4.7"
17
+ "@deepseek-ai/dsh": "0.2.1-rc.2"
27
18
  },
28
19
  "files": [
29
20
  "bin/",