@oiyo/config 0.0.1

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 ADDED
@@ -0,0 +1,183 @@
1
+ oiyo 商业软件许可协议 / oiyo Commercial Software License Agreement
2
+
3
+ 最后更新:2026-04-08
4
+ Last Updated: 2026-04-08
5
+ 作者:skiyee
6
+ Author: skiyee
7
+ 官网:https://oiyo.pages.dev
8
+ Website: https://oiyo.pages.dev
9
+
10
+ 请在安装、复制、分发或使用 OIYO 前,请先阅读本协议。
11
+ PLEASE READ THIS AGREEMENT BEFORE INSTALLING, COPYING, DISTRIBUTING, OR USING OIYO.
12
+
13
+ 安装、复制、分发或使用 OIYO,即表示你同意受本协议约束。
14
+ BY INSTALLING, COPYING, DISTRIBUTING, OR USING OIYO, YOU AGREE TO BE BOUND BY THIS AGREEMENT.
15
+
16
+ 1. 定义 / DEFINITIONS
17
+
18
+ “oiyo” 指由许可方提供的软件包、编译产物、类型定义、文档、示例、发布包及相关材料。
19
+ "oiyo" means the software packages, compiled artifacts, type definitions, documentation, examples, release bundles, and related materials provided by the Licensor.
20
+
21
+ “许可方”指 oiyo 的版权所有人或其授权主体。
22
+ "Licensor" means the copyright owner of oiyo or its authorized entity.
23
+
24
+ “被许可方”指安装、使用、评估或商业化使用 oiyo 的个人、团队或机构。
25
+ "Licensee" means any individual, team, or organization that installs, evaluates, or uses oiyo.
26
+
27
+ 2. 授权范围 / LICENSE GRANT
28
+
29
+ 在遵守本协议及适用商业订单、报价单或企业协议的前提下,许可方授予被许可方一项有限的、不可转让的、不可再许可的、可撤销的使用权,用于:
30
+
31
+ 1) 安装和运行 oiyo 的官方发布版本;
32
+ 2) 在被许可方自身项目中进行内部开发和集成;
33
+ 3) 基于公开文档和示例评估 oiyo 的适用性;
34
+
35
+ Subject to this Agreement and any applicable commercial order or enterprise agreement, the Licensor grants the Licensee a limited, non-transferable, non-sublicensable, revocable license to:
36
+
37
+ 1) install and run officially distributed versions of oiyo.
38
+ 2) use oiyo for internal development and integration in the Licensee's own projects.
39
+ 3) evaluate oiyo based on public documentation and examples.
40
+
41
+ 3. 不授予的权利 / NO RIGHTS GRANTED
42
+
43
+ 除本协议明确授予外,许可方未授予任何其他权利,包括但不限于:
44
+
45
+ 1) 源代码访问权;
46
+ 2) 源代码修改权;
47
+ 3) 再分发权;
48
+ 4) 再销售权;
49
+ 5) 商标使用权;
50
+ 6) 任何未明确授予的知识产权许可;
51
+
52
+ Except as expressly granted in this Agreement, no other rights are granted, including without limitation:
53
+
54
+ 1) access to source code;
55
+ 2) rights to modify source code;
56
+ 3) redistribution rights;
57
+ 4) resale rights;
58
+ 5) trademark rights;
59
+ 6) any intellectual property rights not expressly granted;
60
+
61
+ 4. 使用限制 / RESTRICTIONS
62
+
63
+ 除非法律强制允许或许可方书面同意,被许可方不得:
64
+
65
+ 1) 以源码、半源码、解包产物或其他形式公开、转让、出售或再分发 oiyo;
66
+ 2) 将 oiyo 作为独立产品、框架、模板包或平台能力再次对外销售;
67
+ 3) 冒充官方版本,或以 oiyo 品牌、近似品牌、官方兼容品牌进行商业包装;
68
+ 4) 披露非公开实现细节、内部支持材料、私下交付文档或专有方案;
69
+ 5) 逆向工程、反编译、反汇编、提取或分析受保护的内部实现;
70
+ 6) 将 oiyo 或相关材料用于训练、微调、评估、检索增强或改进任何 AI、LLM 或机器学习系统;
71
+
72
+ Unless expressly permitted by law or in writing by the Licensor, the Licensee may not:
73
+
74
+ 1) publish, transfer, sell, or redistribute oiyo in source, reconstructed, unpacked, or similar form;
75
+ 2) resell oiyo as a standalone framework, toolkit, template package, or platform capability;
76
+ 3) market any fork, derivative, or repackaged offering as an official or confusingly similar oiyo offering;
77
+ 4) disclose non-public implementation details, support materials, private delivery documents, or proprietary solution content;
78
+ 5) reverse engineer, decompile, disassemble, extract, or analyze protected internal implementation details;
79
+ 6) use oiyo or related materials to train, fine-tune, evaluate, retrieve, or improve any AI, LLM, or machine learning system;
80
+
81
+ 5. 试用与商用 / EVALUATION AND COMMERCIAL USE
82
+
83
+ 被许可方可以基于官方安装包、文档和示例进行试用与技术评估。
84
+
85
+ 除另有书面约定外,项目级接入支持、迁移服务、兼容性排查、远程诊断、优先修复、企业群支持、定制开发及其他增值服务,不包含在基础许可中。
86
+
87
+ The Licensee may evaluate oiyo based on official packages, documentation, and examples.
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.
90
+
91
+ 6. 支持边界 / SUPPORT BOUNDARY
92
+
93
+ 免费渠道通常仅用于:
94
+
95
+ 1) 文档与标准用法说明;
96
+ 2) 最小复现下的框架级缺陷反馈;
97
+
98
+ 以下事项属于商业支持范围:
99
+
100
+ 1) 项目接入问题;
101
+ 2) 历史项目迁移;
102
+ 3) uni、vite 或 node 版本兼容问题;
103
+ 4) HMR、构建、转换异常排查;
104
+ 5) 权限、鉴权、中间件、企业方案接入;
105
+ 6) 项目结构治理与定制需求;
106
+
107
+ Free channels are generally limited to:
108
+
109
+ 1) documentation and standard usage guidance;
110
+ 2) reproducible framework-level defect reports with a minimal reproduction;
111
+
112
+ The following are commercial support matters:
113
+
114
+ 1) project onboarding issues;
115
+ 2) migration of existing projects;
116
+ 3) uni, vite, or node compatibility analysis;
117
+ 4) HMR, build, and transformation issue diagnosis;
118
+ 5) auth, permission, middleware, and enterprise solution integration;
119
+ 6) project structure governance and custom requests;
120
+
121
+ 7. 知识产权 / OWNERSHIP
122
+
123
+ oiyo 及其相关文档、发布包、品牌标识、设计方案、实现细节及一切相关知识产权,均归许可方所有。
124
+
125
+ All rights, title, and interest in oiyo, including documentation, release bundles, branding, design, implementation details, and related intellectual property, remain with the Licensor.
126
+
127
+ 8. 商标 / TRADEMARKS
128
+
129
+ 本协议不授予被许可方使用 “oiyo”、相关 logo、项目名称、品牌视觉或其他标识进行产品命名、营销、认证背书或官方化表达的权利。
130
+
131
+ This Agreement does not grant any right to use "oiyo", its logos, project names, visual identity, or related marks for naming, marketing, endorsement, or implying official status.
132
+
133
+ 9. 免责声明 / DISCLAIMER
134
+
135
+ 除非另有书面协议,oiyo 按“现状”提供。许可方不对适销性、特定用途适用性、不中断运行、无错误或特定兼容结果作出明示或默示保证。
136
+
137
+ Unless otherwise agreed in writing, oiyo is provided on an "AS IS" basis without express or implied warranties, including merchantability, fitness for a particular purpose, uninterrupted operation, error-free performance, or compatibility guarantees.
138
+
139
+ 10. 责任限制 / LIMITATION OF LIABILITY
140
+
141
+ 在法律允许的最大范围内,许可方不对任何间接损失、附带损失、特别损失、后果性损失、惩罚性损失、利润损失、收入损失、数据损失或业务中断承担责任;对于未向许可方支付任何费用的被许可方,许可方亦不承担任何赔偿责任。
142
+
143
+ 如因适用法律规定许可方仍需承担责任,许可方在任何情形下的累计责任总额,以被许可方在相关许可或服务下过去 6 个月实际支付给许可方的金额为上限。
144
+
145
+ To the maximum extent permitted by applicable law, the Licensor shall not be liable for any indirect, incidental, special, consequential, punitive, exemplary, lost profits, lost revenue, loss of data, or business interruption damages; and with respect to any Licensee that has paid no fees to the Licensor, the Licensor shall have no liability for any damages, compensation, or other monetary remedies.
146
+
147
+ If, notwithstanding the foregoing, the Licensor is required by applicable law to bear liability, the Licensor's aggregate liability in all circumstances shall not exceed the amount actually paid by the Licensee to the Licensor for the relevant license or services during the preceding 6 months.
148
+
149
+ 11. 协议优先级 / ORDER OF PRECEDENCE
150
+
151
+ 如被许可方与许可方另行签署订单、报价单、企业协议、支持协议或定制开发合同,则该等书面协议优先于本协议。
152
+
153
+ If the Licensee enters into a separate order, quotation, enterprise agreement, support agreement, or custom development contract with the Licensor, such written agreement shall prevail over this Agreement.
154
+
155
+ 12. 第三方组件 / THIRD-PARTY COMPONENTS
156
+
157
+ oiyo 可能依赖、调用、集成或与第三方软件、运行时、SDK、插件、框架或服务协同工作,包括但不限于 uni-app、@dcloudio/*、Vue 及其相关工具。
158
+
159
+ 除 oiyo 自有原创部分外,任何第三方组件的知识产权、许可证和使用限制,均归其各自权利人所有并受其各自协议约束。本协议不授予被许可方任何超出第三方原始许可范围之外的额外权利,也不替代任何第三方协议。
160
+
161
+ 如被许可方使用相关第三方组件,应自行确保其使用方式符合对应的开源许可证、商业条款、平台规则及官方使用要求。
162
+
163
+ oiyo may rely on, call, integrate with, or work alongside third-party software, runtimes, SDKs, plugins, frameworks, or services, including but not limited to uni-app, @dcloudio/*, Vue, and related tooling.
164
+
165
+ Except for oiyo's own original works, the intellectual property rights, licenses, and usage restrictions of any third-party components remain with their respective rights holders and are governed by their own terms. This Agreement does not grant the Licensee any rights beyond the original scope of such third-party licenses, nor does it replace any third-party agreement.
166
+
167
+ If the Licensee uses any such third-party components, the Licensee is solely responsible for ensuring that such use complies with the applicable open-source licenses, commercial terms, platform rules, and official usage requirements.
168
+
169
+ 13. 联系方式 / CONTACT
170
+
171
+ 商业授权、企业支持、再分发授权、合作或品牌使用申请,可通过以下方式联系许可方:
172
+
173
+ 微信/QQ: 319619193
174
+ 邮箱: 319619193@qq.com
175
+ GitHub: https://github.com/skiyee
176
+
177
+ For commercial licensing, enterprise support, redistribution approval, partnership, or trademark use requests, you may contact the Licensor via:
178
+
179
+ WeChat/QQ: 319619193
180
+ Email: 319619193@qq.com
181
+ GitHub: https://github.com/skiyee
182
+
183
+ Copyright (c) 2026 skiyee. All rights reserved.
package/README.md ADDED
@@ -0,0 +1,72 @@
1
+ # @oiyo/config
2
+
3
+ oiyo 是以融合AI协作、提升开发体验、降低使用心智为目的 UniApp 增强型工程框架
4
+
5
+ ## 仓库
6
+
7
+ - GitHub: `https://github.com/skiyee/oiyo`
8
+ - 问题反馈: `https://github.com/skiyee/oiyo/issues`
9
+
10
+ ### 联系方式
11
+
12
+ - 作者: `skiyee(sKy)`
13
+ - 微信/QQ: `319619193`
14
+ - 邮箱: `319619193@qq.com`
15
+ - GitHub: `https://github.com/skiyee`
16
+
17
+ ## 支持说明
18
+
19
+ oiyo 采用由 oiyo 团队维护的商业发布模式
20
+
21
+ 文档、示例和安装方式公开,oiyo 自有实现源码不公开;项目级接入、迁移、兼容性排查和企业支持由 oiyo 团队提供
22
+
23
+ 免费渠道仅处理可复现的框架级问题;项目级接入、环境兼容、历史项目改造和定制需求属于商业支持范围
24
+
25
+ ## 第三方依赖与许可
26
+
27
+ oiyo 是基于 uni-app 生态的工程增强工具,本项目自有代码适用 oiyo 的商业许可协议
28
+
29
+ oiyo 所依赖、调用或集成的第三方组件与服务,包括但不限于 `uni-app`、`@dcloudio/*`、`Vue` 及其相关工具,仍分别适用其原始许可证、使用协议和权利归属
30
+
31
+ 使用 oiyo 不代表获得第三方组件的额外授权。你在使用相关能力时,仍需自行遵守对应第三方协议与平台要求
32
+
33
+ ## License
34
+
35
+ 本包使用 oiyo 商业软件许可协议。
36
+
37
+ 以下摘要仅用于帮助理解 oiyo 自有代码的授权边界,不替代完整许可文本,第三方组件仍适用其各自原始许可
38
+
39
+ ### 授权范围
40
+
41
+ - 允许安装和运行官方发布版本
42
+ - 允许在自身项目中进行内部开发和集成
43
+ - 允许基于公开文档和示例进行评估
44
+
45
+ ### 不授予的权利
46
+
47
+ - 不授予源代码访问权
48
+ - 不授予源代码修改权
49
+ - 不授予再分发权
50
+ - 不授予再销售权
51
+ - 不授予商标使用权
52
+
53
+ ### 使用限制
54
+
55
+ - 不得公开、转让、出售或再分发源码、半源码或解包产物
56
+ - 不得将 oiyo 作为独立产品、模板包或平台能力再次对外销售
57
+ - 不得冒充官方版本或使用近似品牌进行商业包装
58
+ - 不得披露非公开实现细节、内部支持材料或专有方案
59
+ - 不得逆向工程、反编译、反汇编、提取或分析受保护的内部实现
60
+ - 不得将 oiyo 或相关材料用于训练、微调、评估或改进 AI、LLM 或机器学习系统
61
+
62
+ ### 支持边界
63
+
64
+ - 免费渠道:文档说明、标准用法、最小复现下的框架级缺陷反馈
65
+ - 商业支持:项目接入、历史迁移、兼容性排查、HMR/构建/转换异常、权限与中间件接入、定制需求
66
+
67
+ ### 免责声明与责任限制
68
+
69
+ - 软件按“现状”提供,不承诺适销性、特定用途适用性、不中断运行、无错误或特定兼容结果
70
+ - 在法律允许范围内,许可方不对间接损失、数据损失、利润损失或业务中断承担责任
71
+
72
+ 完整许可条款见仓库根目录与包内 `LICENSE` 文件,第三方组件的许可与使用条件以其各自官方声明为准
@@ -0,0 +1,21 @@
1
+ # Third Party Notices
2
+
3
+ Oiyo may rely on third-party components for runtime, build, framework integration, or developer tooling.
4
+
5
+ ## uni-app / DCloud related packages
6
+
7
+ - Name: `uni-app`, `@dcloudio/*`
8
+ - Provider: DCloud
9
+ - Upstream:
10
+ - `https://github.com/dcloudio/uni-app`
11
+ - `https://uniapp.dcloud.net.cn/license.html`
12
+ - License / Terms:
13
+ - Open-source portions: Apache-2.0
14
+ - Additional usage terms may apply for DCloud-provided runtime, SDK, packaging, and related services
15
+
16
+ ## Vue
17
+
18
+ - Name: `vue`
19
+ - Provider: Vue team
20
+ - Upstream: `https://github.com/vuejs/core`
21
+ - License: MIT
package/dist/index.cjs ADDED
@@ -0,0 +1,81 @@
1
+ /**
2
+ * @oiyo/config v0.0.1
3
+ * Copyright (c) 2026 skiyee. All rights reserved.
4
+ * Commercial software. See LICENSE for terms.
5
+ * Official site: https://oiyo.pages.dev
6
+ */
7
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
8
+ //#region \0rolldown/runtime.js
9
+ var __create = Object.create;
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __getProtoOf = Object.getPrototypeOf;
14
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
17
+ key = keys[i];
18
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
+ get: ((k) => from[k]).bind(null, key),
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ }
23
+ return to;
24
+ };
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: true
28
+ }) : target, mod));
29
+ //#endregion
30
+ let node_process = require("node:process");
31
+ node_process = __toESM(node_process);
32
+ let defu = require("defu");
33
+ //#region src/oiyo/index.ts
34
+ /**
35
+ * 默认排除规则
36
+ */
37
+ const DEFAULT_EXCLUDE = [
38
+ "**/components/**",
39
+ "**/composables/**",
40
+ "**/utils/**"
41
+ ];
42
+ /**
43
+ * 默认的 Oiyo 配置
44
+ */
45
+ const defaultConfig = {
46
+ rootDir: node_process.default.cwd(),
47
+ srcDir: "src",
48
+ dir: {
49
+ mainPackage: "pages",
50
+ subPackages: [],
51
+ layouts: "layouts",
52
+ middleware: "middlewares"
53
+ },
54
+ exclude: DEFAULT_EXCLUDE,
55
+ ide: {
56
+ open: false,
57
+ path: {}
58
+ }
59
+ };
60
+ /**
61
+ * 解析并合并配置
62
+ * @param userConfig 用户提供的配置
63
+ * @returns 合并后的完整配置
64
+ */
65
+ function resolveOiyoConfig(userConfig) {
66
+ return (0, defu.defu)(userConfig, defaultConfig);
67
+ }
68
+ function defineOiyoConfig(config) {
69
+ return config;
70
+ }
71
+ //#endregion
72
+ //#region src/pages/index.ts
73
+ function definePagesConfig(config) {
74
+ return config;
75
+ }
76
+ //#endregion
77
+ exports.DEFAULT_EXCLUDE = DEFAULT_EXCLUDE;
78
+ exports.defaultConfig = defaultConfig;
79
+ exports.defineOiyoConfig = defineOiyoConfig;
80
+ exports.definePagesConfig = definePagesConfig;
81
+ exports.resolveOiyoConfig = resolveOiyoConfig;