@ronmu/ronmu 0.1.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/LICENSE ADDED
@@ -0,0 +1,5 @@
1
+ # Proprietary Software License Agreement
2
+
3
+ Copyright © 2026–Present HETIANZHUO501X. All rights reserved.
4
+ Licensed under Proprietary Software License Agreement.
5
+ Unauthorized copying, modification, or distribution is strictly prohibited.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # ronmu / SDK 入口包
2
+
3
+ **ronmu** — a portable, resource-driven application framework. / 一次学习,专注业务;一次建模,多种形态;渐进式深入,按需下沉。
4
+
5
+ This is the default install target and aggregates the public SDK surface of `@ronmu/core` + `@ronmu/utility` behind one thin facade. / 这是用户默认安装入口,聚合 core 与 utility 的公共 API,本身不重复实现任何逻辑。
6
+
7
+ ## Install / 安装
8
+
9
+ ```bash
10
+ npm install ronmu
11
+ ```
12
+
13
+ ## Usage / 使用
14
+
15
+ ```ts
16
+ import { createApp, createMemoryDatabase, defineResource, field } from "ronmu"
17
+
18
+ const customer = defineResource({
19
+ name: "customer",
20
+ fields: { id: field.uuid(), name: field.string({ required: true }) },
21
+ actions: { archive: { handler: ({ record }) => ({ ...record, status: "archived" }) } },
22
+ })
23
+
24
+ const app = createApp({ resources: [customer], database: createMemoryDatabase() })
25
+ const created = await app.create("customer", { name: "Acme" })
26
+ await app.action("customer", created.id as string, "archive")
27
+ ```
28
+
29
+ Runs on Bun, Node.js (>= 18) and Cloudflare Workers. / 可运行在 Bun、Node.js 与 Cloudflare Workers。
30
+
31
+ This project is NOT open source. Commercial use requires a paid license.
32
+ See [LICENSE](./LICENSE) for full terms.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * ronmu — 用户默认安装入口 + SDK 聚合包。
3
+ *
4
+ * 定位:public SDK facade —— 尽可能薄,仅 re-export @ronmu/core 与
5
+ * @ronmu/utility 的公共 API,不重复实现任何核心逻辑。
6
+ */
7
+ export * from "@ronmu/core";
8
+ export * from "@ronmu/utility";
9
+ export declare const VERSION = "0.1.0";
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ /**
2
+ * ronmu — 用户默认安装入口 + SDK 聚合包。
3
+ *
4
+ * 定位:public SDK facade —— 尽可能薄,仅 re-export @ronmu/core 与
5
+ * @ronmu/utility 的公共 API,不重复实现任何核心逻辑。
6
+ */
7
+ export * from "@ronmu/core";
8
+ export * from "@ronmu/utility";
9
+ export const VERSION = "0.1.0";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAE9B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAA"}
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@ronmu/ronmu",
3
+ "version": "0.1.0",
4
+ "description": "ronmu — a portable, resource-driven application framework (SDK facade package).",
5
+ "type": "module",
6
+ "license": "SEE LICENSE IN LICENSE",
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "README.md",
20
+ "LICENSE"
21
+ ],
22
+ "sideEffects": false,
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "engines": {
27
+ "node": ">=18.0.0"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "https://github.com/ronmu/ronmu",
32
+ "directory": "packages/ronmu"
33
+ },
34
+ "keywords": [
35
+ "ronmu",
36
+ "framework",
37
+ "sdk",
38
+ "resource",
39
+ "typescript",
40
+ "cloudflare-workers"
41
+ ],
42
+ "scripts": {
43
+ "build": "tsc -p tsconfig.build.json",
44
+ "typecheck": "tsc --noEmit -p tsconfig.json",
45
+ "test": "bun test"
46
+ },
47
+ "dependencies": {
48
+ "@ronmu/core": "^0.1.0",
49
+ "@ronmu/utility": "^0.1.0"
50
+ }
51
+ }