@oiyo/config 0.2.1 → 0.3.0-beta.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
@@ -80,13 +80,21 @@ Unless expressly permitted by law or in writing by the Licensor, the Licensee ma
80
80
 
81
81
  5. 试用与商用 / EVALUATION AND COMMERCIAL USE
82
82
 
83
- 被许可方可以基于官方安装包、文档和示例进行试用与技术评估。
83
+ 被许可方可以基于 oiyo 的官方发布版本、文档和示例进行试用、评估、测试及内部验证。
84
84
 
85
- 除另有书面约定外,项目级接入支持、迁移服务、兼容性排查、远程诊断、优先修复、企业群支持、定制开发及其他增值服务,不包含在基础许可中。
85
+ 在遵守本协议的前提下,被许可方可以在其自有项目中将 oiyo 用于商业开发、集成、构建、部署和运营,包括个人开发者、团队及企业客户的商业项目。
86
86
 
87
- The Licensee may evaluate oiyo based on official packages, documentation, and examples.
87
+ 前述商用仅限于将 oiyo 作为被许可方自有项目的一部分进行使用,不包括将 oiyo 自身或其相关材料作为独立产品、模板包、SDK、平台能力、可再分发组件或其他可单独提供的交付物对外提供、转让、出售、授权或再销售,除非许可方另行书面同意。
88
88
 
89
- Unless otherwise agreed in writing, project onboarding, migration services, compatibility diagnosis, remote troubleshooting, priority fixes, enterprise support channels, custom development, and other value-added services are not included in the base license.
89
+ 除另有书面约定外,项目级协助接入、迁移服务、兼容性排查、远程诊断、优先修复、企业群支持、定制开发及其他增值服务,不包含在基础许可中。
90
+
91
+ The Licensee may use oiyo for trial, evaluation, testing, and internal validation based on its officially distributed versions, documentation, and examples.
92
+
93
+ Subject to this Agreement, the Licensee may use oiyo in the commercial development, integration, building, deployment, and operation of the Licensee's own projects, including commercial projects of individual developers, teams, and enterprises.
94
+
95
+ Such commercial use is limited to using oiyo as part of the Licensee's own projects and does not include providing, transferring, selling, licensing, or reselling oiyo itself or related materials as a standalone product, template package, SDK, platform capability, redistributable component, or other separately deliverable offering, unless otherwise approved in writing by the Licensor.
96
+
97
+ Unless otherwise agreed in writing, project onboarding and integration assistance, migration services, compatibility diagnosis, remote troubleshooting, priority fixes, enterprise support channels, custom development, and other value-added services are not included in the base license.
90
98
 
91
99
  6. 支持边界 / SUPPORT BOUNDARY
92
100
 
@@ -97,7 +105,7 @@ Unless otherwise agreed in writing, project onboarding, migration services, comp
97
105
 
98
106
  以下事项属于商业支持范围:
99
107
 
100
- 1) 项目接入问题;
108
+ 1) 项目协助接入;
101
109
  2) 历史项目迁移;
102
110
  3) uni、vite 或 node 版本兼容问题;
103
111
  4) HMR、构建、转换异常排查;
@@ -111,7 +119,7 @@ Free channels are generally limited to:
111
119
 
112
120
  The following are commercial support matters:
113
121
 
114
- 1) project onboarding issues;
122
+ 1) project onboarding and integration assistance;
115
123
  2) migration of existing projects;
116
124
  3) uni, vite, or node compatibility analysis;
117
125
  4) HMR, build, and transformation issue diagnosis;
package/README.md CHANGED
@@ -16,11 +16,11 @@ oiyo 是以融合AI协作,提升开发体验,降低心智成本为三大理
16
16
 
17
17
  ## 支持说明
18
18
 
19
- oiyo 采用由 oiyo 团队维护的商业发布模式
19
+ oiyo 采用由 oiyo 团队维护的商业发布模式。文档、示例和安装方式公开,oiyo 自有实现源码不公开。
20
20
 
21
- 文档、示例和安装方式公开,oiyo 自有实现源码不公开;项目级接入、迁移、兼容性排查和企业支持由 oiyo 团队提供
21
+ oiyo 允许个人开发者、团队及企业在其自有项目中商业使用,可用于项目的开发、集成、构建、部署和运营。但不包括将 oiyo 自身或其相关材料作为独立产品、模板包、SDK、平台能力或可再分发组件再次对外提供、转让、授权或销售。
22
22
 
23
- 免费渠道仅处理可复现的框架级问题;项目级接入、环境兼容、历史项目改造和定制需求属于商业支持范围
23
+ 免费渠道仅处理可复现的框架级问题;项目接入、迁移、兼容性排查和定制需求属于商业支持范围。
24
24
 
25
25
  ## 第三方依赖与许可
26
26
 
@@ -39,8 +39,8 @@ oiyo 所依赖、调用或集成的第三方组件与服务,包括但不限于
39
39
  ### 授权范围
40
40
 
41
41
  - 允许安装和运行官方发布版本
42
- - 允许在自身项目中进行内部开发和集成
43
42
  - 允许基于公开文档和示例进行评估
43
+ - 允许个人、团队及企业在自有项目中商业使用
44
44
 
45
45
  ### 不授予的权利
46
46
 
@@ -62,7 +62,7 @@ oiyo 所依赖、调用或集成的第三方组件与服务,包括但不限于
62
62
  ### 支持边界
63
63
 
64
64
  - 免费渠道:文档说明、标准用法、最小复现下的框架级缺陷反馈
65
- - 商业支持:项目接入、历史迁移、兼容性排查、HMR/构建/转换异常、权限与中间件接入、定制需求
65
+ - 商业支持:项目协助接入、历史迁移、兼容性排查、HMR/构建/转换异常、权限与中间件接入、定制需求
66
66
 
67
67
  ### 免责声明与责任限制
68
68
 
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/config v0.2.1-beta.1
2
+ * @oiyo/config v0.3.0-beta.2
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
@@ -167,14 +167,13 @@ const defaultConfig = {
167
167
  dir: {
168
168
  mainPackage: "pages",
169
169
  subPackages: [],
170
- layouts: "layouts",
171
- middleware: "middlewares"
170
+ layouts: "layouts"
172
171
  },
173
172
  scan: {
174
173
  apis: [
175
174
  "composables",
176
175
  {
177
- from: "@skiyee/oiyo",
176
+ from: "@skiyee/oiyo/api",
178
177
  only: [
179
178
  "definePageMeta",
180
179
  "defineRootContext",
@@ -190,7 +189,7 @@ const defaultConfig = {
190
189
  }
191
190
  ],
192
191
  components: ["components", {
193
- from: "@skiyee/oiyo",
192
+ from: "@skiyee/oiyo/component",
194
193
  only: ["OiyoPage", "OiyoLayout"]
195
194
  }]
196
195
  },
package/dist/index.d.cts CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @oiyo/config v0.2.1-beta.1
2
+ * @oiyo/config v0.3.0-beta.2
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
7
  //#region src/oiyo/types.d.ts
8
8
  type GlobRule = string | string[];
9
- interface OnlyScanNameItem {
9
+ interface OnlyPickNameItem {
10
10
  /** 来源侧名字 */
11
11
  name: string;
12
12
  /** 暴露到项目中的名字 */
@@ -18,28 +18,27 @@ interface OnlyScanNameItem {
18
18
  isType?: boolean;
19
19
  }
20
20
  interface ApiScanTarget {
21
- /** 目录、文件、包或包子路径 */
21
+ /** 目录、文件、包或包子目录(支持 glob 语法) */
22
22
  from: string;
23
23
  /** 是否扫描类型导出(仅作为类型被使用) */
24
24
  types?: boolean;
25
- /** 只匹配这些文件 */
26
- pattern?: GlobRule;
27
25
  /** 忽略这些文件 */
28
26
  ignore?: GlobRule;
29
27
  /** 只保留这些导出,支持重命名 */
30
- only?: Array<string | OnlyScanNameItem>;
28
+ only?: Array<string | OnlyPickNameItem>;
31
29
  /** 排除这些最终暴露名 */
32
30
  exclude?: string[];
33
31
  }
34
32
  interface ComponentScanTarget {
35
- /** 扫描目录、文件、包或包子路径 */
33
+ /** 扫描目录、文件、包或包子路径(支持 glob 语法) */
36
34
  from: string;
37
- /** 只匹配这些文件 */
38
- pattern?: GlobRule;
39
35
  /** 忽略这些文件 */
40
36
  ignore?: GlobRule;
41
- /** 只保留这些导出,并支持重命名 */
42
- only?: Array<string | OnlyScanNameItem>;
37
+ /**
38
+ * 只保留这些导出,并支持重命名
39
+ * @warn 基于文件内部导出的命名进行匹配。组件都是默认导出 (default)
40
+ */
41
+ only?: Array<string | OnlyPickNameItem>;
43
42
  /** 为组件添加前缀 */
44
43
  prefix?: string;
45
44
  /** 是否目录链参与命名 */
@@ -55,14 +54,21 @@ interface OiyoConfigScan {
55
54
  * Oiyo 路径配置
56
55
  */
57
56
  interface OiyoConfigDir {
58
- /** 主包目录 */
57
+ /**
58
+ * 主包目录
59
+ * @default '<srcDir>/pages'
60
+ */
59
61
  mainPackage?: string;
60
- /** 子包目录配置 */
62
+ /**
63
+ * 子包目录列表
64
+ * @default '<srcDir>/{root}/pages'
65
+ */
61
66
  subPackages?: string[];
62
- /** 布局目录 */
67
+ /**
68
+ * 布局目录
69
+ * @default '<srcDir>/layouts'
70
+ */
63
71
  layouts?: string;
64
- /** 中间件目录 */
65
- middleware?: string;
66
72
  }
67
73
  /**
68
74
  * IDE 配置路径平台
@@ -3083,4 +3089,4 @@ interface PagesJson {
3083
3089
  interface PagesConfig extends PagesJson {}
3084
3090
  declare function definePagesConfig(config: PagesConfig): PagesConfig;
3085
3091
  //#endregion
3086
- export { AnimationType, ApiScanTarget, Color, ComponentScanTarget, Condition, ConditionItem, DEFAULT_EXCLUDE, EasyCom, GlobRule, GlobalStyle, HEXColor, IDEPlatformPath, OiyoConfig, OiyoConfigDir, OiyoConfigIDE, OiyoConfigScan, OnlyScanNameItem, Page, PagesConfig, PagesJson, PercentageSize, PxSize, RGBAColor, RGBColor, RpxSize, SubPackage, TabBar, TabBarIconFont, TabBarItem, TabBarMidButton, TheWindow, ThemeVar, TitleNViewButton, UniIdRouter, defineOiyoConfig, definePagesConfig, resolveOiyoConfig };
3092
+ export { AnimationType, ApiScanTarget, Color, ComponentScanTarget, Condition, ConditionItem, DEFAULT_EXCLUDE, EasyCom, GlobRule, GlobalStyle, HEXColor, IDEPlatformPath, OiyoConfig, OiyoConfigDir, OiyoConfigIDE, OiyoConfigScan, OnlyPickNameItem, Page, PagesConfig, PagesJson, PercentageSize, PxSize, RGBAColor, RGBColor, RpxSize, SubPackage, TabBar, TabBarIconFont, TabBarItem, TabBarMidButton, TheWindow, ThemeVar, TitleNViewButton, UniIdRouter, defineOiyoConfig, definePagesConfig, resolveOiyoConfig };
package/dist/index.d.mts CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @oiyo/config v0.2.1-beta.1
2
+ * @oiyo/config v0.3.0-beta.2
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
6
6
  */
7
7
  //#region src/oiyo/types.d.ts
8
8
  type GlobRule = string | string[];
9
- interface OnlyScanNameItem {
9
+ interface OnlyPickNameItem {
10
10
  /** 来源侧名字 */
11
11
  name: string;
12
12
  /** 暴露到项目中的名字 */
@@ -18,28 +18,27 @@ interface OnlyScanNameItem {
18
18
  isType?: boolean;
19
19
  }
20
20
  interface ApiScanTarget {
21
- /** 目录、文件、包或包子路径 */
21
+ /** 目录、文件、包或包子目录(支持 glob 语法) */
22
22
  from: string;
23
23
  /** 是否扫描类型导出(仅作为类型被使用) */
24
24
  types?: boolean;
25
- /** 只匹配这些文件 */
26
- pattern?: GlobRule;
27
25
  /** 忽略这些文件 */
28
26
  ignore?: GlobRule;
29
27
  /** 只保留这些导出,支持重命名 */
30
- only?: Array<string | OnlyScanNameItem>;
28
+ only?: Array<string | OnlyPickNameItem>;
31
29
  /** 排除这些最终暴露名 */
32
30
  exclude?: string[];
33
31
  }
34
32
  interface ComponentScanTarget {
35
- /** 扫描目录、文件、包或包子路径 */
33
+ /** 扫描目录、文件、包或包子路径(支持 glob 语法) */
36
34
  from: string;
37
- /** 只匹配这些文件 */
38
- pattern?: GlobRule;
39
35
  /** 忽略这些文件 */
40
36
  ignore?: GlobRule;
41
- /** 只保留这些导出,并支持重命名 */
42
- only?: Array<string | OnlyScanNameItem>;
37
+ /**
38
+ * 只保留这些导出,并支持重命名
39
+ * @warn 基于文件内部导出的命名进行匹配。组件都是默认导出 (default)
40
+ */
41
+ only?: Array<string | OnlyPickNameItem>;
43
42
  /** 为组件添加前缀 */
44
43
  prefix?: string;
45
44
  /** 是否目录链参与命名 */
@@ -55,14 +54,21 @@ interface OiyoConfigScan {
55
54
  * Oiyo 路径配置
56
55
  */
57
56
  interface OiyoConfigDir {
58
- /** 主包目录 */
57
+ /**
58
+ * 主包目录
59
+ * @default '<srcDir>/pages'
60
+ */
59
61
  mainPackage?: string;
60
- /** 子包目录配置 */
62
+ /**
63
+ * 子包目录列表
64
+ * @default '<srcDir>/{root}/pages'
65
+ */
61
66
  subPackages?: string[];
62
- /** 布局目录 */
67
+ /**
68
+ * 布局目录
69
+ * @default '<srcDir>/layouts'
70
+ */
63
71
  layouts?: string;
64
- /** 中间件目录 */
65
- middleware?: string;
66
72
  }
67
73
  /**
68
74
  * IDE 配置路径平台
@@ -3083,4 +3089,4 @@ interface PagesJson {
3083
3089
  interface PagesConfig extends PagesJson {}
3084
3090
  declare function definePagesConfig(config: PagesConfig): PagesConfig;
3085
3091
  //#endregion
3086
- export { AnimationType, ApiScanTarget, Color, ComponentScanTarget, Condition, ConditionItem, DEFAULT_EXCLUDE, EasyCom, GlobRule, GlobalStyle, HEXColor, IDEPlatformPath, OiyoConfig, OiyoConfigDir, OiyoConfigIDE, OiyoConfigScan, OnlyScanNameItem, Page, PagesConfig, PagesJson, PercentageSize, PxSize, RGBAColor, RGBColor, RpxSize, SubPackage, TabBar, TabBarIconFont, TabBarItem, TabBarMidButton, TheWindow, ThemeVar, TitleNViewButton, UniIdRouter, defineOiyoConfig, definePagesConfig, resolveOiyoConfig };
3092
+ export { AnimationType, ApiScanTarget, Color, ComponentScanTarget, Condition, ConditionItem, DEFAULT_EXCLUDE, EasyCom, GlobRule, GlobalStyle, HEXColor, IDEPlatformPath, OiyoConfig, OiyoConfigDir, OiyoConfigIDE, OiyoConfigScan, OnlyPickNameItem, Page, PagesConfig, PagesJson, PercentageSize, PxSize, RGBAColor, RGBColor, RpxSize, SubPackage, TabBar, TabBarIconFont, TabBarItem, TabBarMidButton, TheWindow, ThemeVar, TitleNViewButton, UniIdRouter, defineOiyoConfig, definePagesConfig, resolveOiyoConfig };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/config v0.2.1-beta.1
2
+ * @oiyo/config v0.3.0-beta.2
3
3
  * Copyright (c) 2026 skiyee. All rights reserved.
4
4
  * Commercial software. See LICENSE for terms.
5
5
  * Official site: https://oiyo.js.org
@@ -143,14 +143,13 @@ const defaultConfig = {
143
143
  dir: {
144
144
  mainPackage: "pages",
145
145
  subPackages: [],
146
- layouts: "layouts",
147
- middleware: "middlewares"
146
+ layouts: "layouts"
148
147
  },
149
148
  scan: {
150
149
  apis: [
151
150
  "composables",
152
151
  {
153
- from: "@skiyee/oiyo",
152
+ from: "@skiyee/oiyo/api",
154
153
  only: [
155
154
  "definePageMeta",
156
155
  "defineRootContext",
@@ -166,7 +165,7 @@ const defaultConfig = {
166
165
  }
167
166
  ],
168
167
  components: ["components", {
169
- from: "@skiyee/oiyo",
168
+ from: "@skiyee/oiyo/component",
170
169
  only: ["OiyoPage", "OiyoLayout"]
171
170
  }]
172
171
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oiyo/config",
3
3
  "type": "module",
4
- "version": "0.2.1",
4
+ "version": "0.3.0-beta.2",
5
5
  "author": {
6
6
  "name": "skiyee",
7
7
  "email": "319619193@qq.com",