@spaceflow/core 0.25.0 → 0.26.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaceflow/core",
3
- "version": "0.25.0",
3
+ "version": "0.26.0",
4
4
  "description": "Spaceflow 核心能力库",
5
5
  "license": "MIT",
6
6
  "author": "Lydanne",
@@ -99,7 +99,7 @@
99
99
  "zod-to-json-schema": "^3.25.1",
100
100
  "commander": "^12.1.0",
101
101
  "i18next": "^25.8.4",
102
- "@spaceflow/shared": "0.7.0"
102
+ "@spaceflow/shared": "0.8.0"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@swc/core": "1.15.3",
@@ -22,7 +22,7 @@ import {
22
22
  SchemaGeneratorService,
23
23
  findConfigFileWithField,
24
24
  getSupportedEditors,
25
- getDependencies,
25
+ getExtensionDependencies,
26
26
  updateDependency,
27
27
  SPACEFLOW_DIR,
28
28
  } from "@spaceflow/core";
@@ -813,7 +813,7 @@ export class InstallService {
813
813
  * 从配置文件解析扩展
814
814
  */
815
815
  protected parseExtensionsFromConfig(cwd?: string): Record<string, ExtensionConfig> {
816
- return getDependencies(cwd);
816
+ return getExtensionDependencies(cwd);
817
817
  }
818
818
 
819
819
  /**
@@ -7,7 +7,7 @@ import {
7
7
  getEditorDirName,
8
8
  getSourceType,
9
9
  normalizeSource,
10
- getDependencies,
10
+ getExtensionDependencies,
11
11
  getSupportedEditors,
12
12
  t,
13
13
  } from "@spaceflow/core";
@@ -30,7 +30,7 @@ export class ListService {
30
30
  const cwd = process.cwd();
31
31
 
32
32
  // 读取合并后的 dependencies(支持 .spaceflowrc、.spaceflow/spaceflow.json 等所有配置源)
33
- const dependencies = getDependencies(cwd);
33
+ const dependencies = getExtensionDependencies(cwd);
34
34
 
35
35
  if (Object.keys(dependencies).length === 0) {
36
36
  if (shouldLog(verbose, 1)) {
@@ -3,7 +3,7 @@ import { readFile } from "fs/promises";
3
3
  import { join } from "path";
4
4
  import { existsSync } from "fs";
5
5
  import { shouldLog, type VerboseLevel, t } from "@spaceflow/core";
6
- import { getDependencies } from "@spaceflow/core";
6
+ import { getExtensionDependencies } from "@spaceflow/core";
7
7
  import type { ExtensionConfig } from "../install/install.service";
8
8
 
9
9
  export interface UpdateOptions {
@@ -305,7 +305,7 @@ export class UpdateService {
305
305
 
306
306
  async updateDependency(name: string, verbose: VerboseLevel = 1): Promise<boolean> {
307
307
  const cwd = process.cwd();
308
- const dependencies = getDependencies(cwd);
308
+ const dependencies = getExtensionDependencies(cwd);
309
309
 
310
310
  if (!dependencies[name]) {
311
311
  if (shouldLog(verbose, 1)) console.log(t("update:depNotFound", { name }));
@@ -330,7 +330,7 @@ export class UpdateService {
330
330
 
331
331
  async updateAll(verbose: VerboseLevel = 1): Promise<void> {
332
332
  const cwd = process.cwd();
333
- const dependencies = getDependencies(cwd);
333
+ const dependencies = getExtensionDependencies(cwd);
334
334
 
335
335
  if (Object.keys(dependencies).length === 0) {
336
336
  if (shouldLog(verbose, 1)) console.log(t("update:noDeps"));
@@ -15,6 +15,7 @@ export {
15
15
  writeConfigSync,
16
16
  getSupportedEditors,
17
17
  getDependencies,
18
+ getExtensionDependencies,
18
19
  findConfigFileWithField,
19
20
  updateDependency,
20
21
  removeDependency,