@choiceform/shared-auth 0.1.11 → 0.1.12

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/dist/init.d.ts CHANGED
@@ -1,6 +1,17 @@
1
1
  import type { AuthConfig } from "./config";
2
2
  /**
3
3
  * 快速初始化认证系统(使用默认配置)
4
+ *
5
+ * 默认配置:
6
+ * - 使用 organizationClient 插件(支持团队功能)
7
+ * - 如果用户传入自定义 plugins,则使用用户配置(不会合并默认插件)
8
+ *
9
+ * @param config - 认证配置
10
+ * @param config.baseURL - Better Auth API 基础 URL
11
+ * @param config.defaultRedirectAfterLogin - 登录后默认跳转地址,默认为 "/explore"
12
+ * @param config.plugins - Better Auth 插件列表,如果不传则使用默认的 organizationClient
13
+ * @param config.signInPath - 登录页面路径,默认为 "/sign-in"
14
+ * @param config.tokenStorageKey - Token 存储的 localStorage key,默认为 "auth-token"
4
15
  */
5
16
  export declare function initAuth(config: {
6
17
  baseURL: string;
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAG1C;;GAEG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAA;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAe+0f,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAA08oS,CAAC;mCAAyD,CAAC;oCAA0D,CAAC;iCAAuD,CAAC;;;;;;;;;;;;;;;;;;;;;;;yBAA9K,CAAC;+B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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAA1+a,CAAC;qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA2hD,CAAC;;;;;oBAAwW,CAAC;iBAA4C,CAAC;uBAA+C,CAAC;qBAAuC,CAAC;qBAAuC,CAAC;gBAAmC,CAAC;oBAA2C,CAAC;oBAA+C,CAAC;0BAA4C,CAAC;kBAA4C,CAAC;kBAAkD,CAAC;mBAAmC,CAAC;uBAA4G,CAAC;6BAA6B,CAAC;;mBAAiD,CAAC;;;iBAAqH,CAAC;gBAAmC,CAAC;;;;;;;;;;;;gBAA+iB,CAAC;iBAAoB,CAAC;kBAAqB,CAAC;kBAAqB,CAAC;;iBAAsG,CAAC;wBAAoE,CAAC;kBAAoC,CAAC;uBAAqG,CAAC;6BAA6E,CAAC;;;2BAA0F,CAAC;mHAA6K,CAAC;;;;;;;EAF33L"}
package/dist/init.js CHANGED
@@ -1,15 +1,27 @@
1
1
  import { createAuth } from "./core";
2
- import { adminClient, organizationClient } from "better-auth/client/plugins";
2
+ import { organizationClient } from "better-auth/client/plugins";
3
3
  /**
4
4
  * 快速初始化认证系统(使用默认配置)
5
+ *
6
+ * 默认配置:
7
+ * - 使用 organizationClient 插件(支持团队功能)
8
+ * - 如果用户传入自定义 plugins,则使用用户配置(不会合并默认插件)
9
+ *
10
+ * @param config - 认证配置
11
+ * @param config.baseURL - Better Auth API 基础 URL
12
+ * @param config.defaultRedirectAfterLogin - 登录后默认跳转地址,默认为 "/explore"
13
+ * @param config.plugins - Better Auth 插件列表,如果不传则使用默认的 organizationClient
14
+ * @param config.signInPath - 登录页面路径,默认为 "/sign-in"
15
+ * @param config.tokenStorageKey - Token 存储的 localStorage key,默认为 "auth-token"
5
16
  */
6
17
  export function initAuth(config) {
7
18
  const { baseURL, tokenStorageKey, defaultRedirectAfterLogin, signInPath, plugins } = config;
8
- // 默认使用 adminClient 和 organizationClient
9
- const defaultPlugins = plugins || [adminClient(), organizationClient({ teams: { enabled: true } })];
19
+ // 默认使用 organizationClient(支持团队功能)
20
+ // 如果用户传入了 plugins,则使用用户配置(不合并默认插件)
21
+ const finalPlugins = plugins ?? [organizationClient({ teams: { enabled: true } })];
10
22
  return createAuth({
11
23
  baseURL,
12
- plugins: defaultPlugins,
24
+ plugins: finalPlugins,
13
25
  tokenStorageKey: tokenStorageKey || "auth-token",
14
26
  defaultRedirectAfterLogin: defaultRedirectAfterLogin || "/explore",
15
27
  signInPath: signInPath || "/sign-in",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceform/shared-auth",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Shared authentication package for Choiceform projects",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,6 +16,12 @@
16
16
  "dist",
17
17
  "README.md"
18
18
  ],
19
+ "scripts": {
20
+ "build": "tsc",
21
+ "dev": "tsc --watch",
22
+ "clean": "rimraf dist",
23
+ "prepublishOnly": "pnpm run build"
24
+ },
19
25
  "repository": {
20
26
  "type": "git",
21
27
  "url": "git+https://github.com/choiceform/automation.git",
@@ -51,10 +57,5 @@
51
57
  "@types/react-dom": "18.2.22",
52
58
  "typescript": "^5.5.3",
53
59
  "rimraf": "^6.0.1"
54
- },
55
- "scripts": {
56
- "build": "tsc",
57
- "dev": "tsc --watch",
58
- "clean": "rimraf dist"
59
60
  }
60
- }
61
+ }
package/LICENSE.md DELETED
@@ -1,149 +0,0 @@
1
- # License
2
-
3
- Portions of this software are licensed as follows:
4
-
5
- - Content of branches other than the main branch are not licensed.
6
- - Source code files that contain `.ee.` in their filename or `.ee` in their directory name are NOT licensed under the Sustainable Use License. To use source code files that contain `.ee.` in their filename or `.ee` in their directory name you must hold a valid Rungraf Enterprise License specifically allowing you access to such source code files and as defined in "LICENSE_EE.md".
7
- - All third party components incorporated into the Rungraf software are licensed under the original license provided by the owner of the applicable component.
8
- - Content outside of the above mentioned files or restrictions is available under the "Sustainable Use License" as defined below.
9
-
10
- ---
11
-
12
- ## Sustainable Use License
13
-
14
- **Version 1.0**
15
-
16
- ### Acceptance
17
-
18
- By using the software, you agree to all of the terms and conditions below.
19
-
20
- ### Copyright License
21
-
22
- The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations below.
23
-
24
- ### Limitations
25
-
26
- You may use or modify the software only for your own internal business purposes or for non-commercial or personal use. You may distribute the software or provide it to others only if you do so free of charge for non-commercial purposes. You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law.
27
-
28
- ### Patents
29
-
30
- The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
31
-
32
- ### Notices
33
-
34
- You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. If you modify the software, you must include in any modified copies of the software a prominent notice stating that you have modified the software.
35
-
36
- ### No Other Rights
37
-
38
- These terms do not imply any licenses other than those expressly granted in these terms.
39
-
40
- ### Termination
41
-
42
- If you use the software in violation of these terms, such use is not licensed, and your license will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your license will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your license to terminate automatically and permanently.
43
-
44
- ### No Liability
45
-
46
- As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
47
-
48
- ### Definitions
49
-
50
- - The **"licensor"** is the entity offering these terms, which is the Rungraf project and its contributors.
51
-
52
- - The **"software"** is the software the licensor makes available under these terms, including any portion of it.
53
-
54
- - **"You"** refers to the individual or entity agreeing to these terms.
55
-
56
- - **"Your company"** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. Control means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
57
-
58
- - **"Your license"** is the license granted to you for the software under these terms.
59
-
60
- - **"Use"** means anything you do with the software requiring your license.
61
-
62
- - **"Trademark"** means trademarks, service marks, and similar rights.
63
-
64
- ---
65
-
66
- ## Additional Terms for Rungraf
67
-
68
- In addition to the Sustainable Use License terms above, the following specific limitations apply to Rungraf:
69
-
70
- ### Multi-Tenant SaaS Restriction
71
-
72
- You may NOT use Rungraf to operate a multi-tenant Software-as-a-Service (SaaS) offering where you provide Rungraf as a hosted service to multiple external customers or organizations, unless you obtain a separate commercial license from the Rungraf project.
73
-
74
- **Examples of PROHIBITED use without commercial license:**
75
- - Operating "AI Agent Platform as a Service" for multiple paying customers
76
- - Providing Rungraf as a white-labeled workflow automation service
77
- - Running a marketplace where multiple organizations build AI Agents on your hosted Rungraf instance
78
-
79
- **Examples of PERMITTED use:**
80
- - Deploying Rungraf within your organization for your employees and internal use
81
- - Embedding Rungraf in your product where each customer gets their own dedicated Rungraf instance
82
- - Using Rungraf as a backend service for your own application (single-tenant)
83
-
84
- **Workspace Definition:** Within Rungraf, one workspace represents one tenant. A workspace provides an isolated environment for each tenant's AI Agents, workflows, data, and configurations.
85
-
86
- ### Branding and Attribution
87
-
88
- When using Rungraf's frontend interface, you may not remove, alter, or obscure the Rungraf logo, branding, or copyright notices displayed in the user interface. This restriction applies only to the visual frontend components.
89
-
90
- **Frontend Definition:** The "frontend" of Rungraf includes all components located in the `packages/client/` directory when running from source code, or the "client" Docker image when running via containers.
91
-
92
- **Examples of PERMITTED use:**
93
- - Using only Rungraf's backend APIs with your own custom frontend (no branding requirement)
94
- - Forking and customizing the codebase while maintaining attribution
95
- - White-labeling with a separate commercial license
96
-
97
- **Examples of PROHIBITED use:**
98
- - Using the Rungraf frontend with logos and branding removed
99
- - Distributing modified versions without proper attribution
100
-
101
- ### Core Engine Protection
102
-
103
- The Rungraf AI Agent Runtime (located in `packages/runner/`) and Expression Engine may be used and modified for your own purposes, but you may NOT:
104
-
105
- - Extract the Agent Runtime as a standalone product and sell it separately
106
- - Use Rungraf's core orchestration engine to build a competing workflow automation platform for sale
107
- - Offer the Expression Engine as a standalone commercial service
108
-
109
- **Examples of PERMITTED use:**
110
- - Integrating Rungraf into your product's backend
111
- - Modifying the runtime for your specific use case
112
- - Contributing improvements back to the open source project
113
-
114
- **Examples of PROHIBITED use:**
115
- - Packaging the Elixir Agent Runtime as "SuperAgent Engine" and selling it
116
- - Building a competitor workflow platform using Rungraf's core code
117
-
118
- ---
119
-
120
- ## Fair Code Principles
121
-
122
- Rungraf follows the [Fair Code](https://faircode.io) principles. We believe in:
123
-
124
- 1. **Transparency**: Source code is publicly available for review and contribution
125
- 2. **Sustainability**: Protecting the project's ability to fund ongoing development
126
- 3. **Community**: Encouraging contributions while preventing exploitation
127
- 4. **Freedom**: Allowing use for internal business purposes and non-commercial projects
128
-
129
- ---
130
-
131
- ## Getting a Commercial License
132
-
133
- If your use case falls under the restrictions above, you can obtain a commercial Rungraf Enterprise License. Enterprise licenses include:
134
-
135
- - Multi-tenant SaaS deployment rights
136
- - White-labeling permissions
137
- - Priority support and SLA guarantees
138
- - Enterprise features (SSO, advanced RBAC, audit logs)
139
- - Custom development support
140
-
141
- Contact us for enterprise licensing:
142
- - **Email**: [enterprise@rungraf.io](mailto:enterprise@rungraf.io)
143
- - **Website**: [https://rungraf.io/enterprise](https://rungraf.io/enterprise)
144
-
145
- ---
146
-
147
- **© 2024-2025 Rungraf Project**
148
-
149
- This software is provided "as is", without warranty of any kind, express or implied.