create-sailor 1.8.2 → 1.9.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": "create-sailor",
3
- "version": "1.8.2",
3
+ "version": "1.9.0",
4
4
  "description": "Governed AI-native SaaS scaffolder for Nebutra Sailor. Bootstrap a production-ready Next.js + Hono + Prisma monorepo with multi-tenant foundations, region-aware defaults, and AI integrations.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -13,14 +13,6 @@
13
13
  "README.md",
14
14
  "LICENSE"
15
15
  ],
16
- "scripts": {
17
- "dev": "tsup --watch",
18
- "build": "tsup",
19
- "prepublishOnly": "pnpm run build",
20
- "start": "node dist/index.js",
21
- "test": "vitest run",
22
- "test:watch": "vitest"
23
- },
24
16
  "dependencies": {
25
17
  "@clack/prompts": "^1.5.0",
26
18
  "@mrleebo/prisma-ast": "^0.16.0",
@@ -29,14 +21,15 @@
29
21
  "gradient-string": "^3.0.0",
30
22
  "ignore": "^7.0.5",
31
23
  "picocolors": "^1.1.0",
32
- "update-notifier": "^7.3.1"
24
+ "update-notifier": "^7.3.1",
25
+ "@nebutra/brand": "0.1.2"
33
26
  },
34
27
  "devDependencies": {
35
- "@types/node": "catalog:",
28
+ "@types/node": "^25.9.1",
36
29
  "@types/update-notifier": "^6.0.8",
37
- "tsup": "catalog:",
38
- "typescript": "catalog:",
39
- "vitest": "catalog:"
30
+ "tsup": "^8.5.1",
31
+ "typescript": "^5.9.3",
32
+ "vitest": "^4.1.4"
40
33
  },
41
34
  "engines": {
42
35
  "node": ">=20.9.0"
@@ -80,5 +73,12 @@
80
73
  "publishConfig": {
81
74
  "access": "public",
82
75
  "registry": "https://registry.npmjs.org/"
76
+ },
77
+ "scripts": {
78
+ "dev": "tsup --watch",
79
+ "build": "tsup",
80
+ "start": "node dist/index.js",
81
+ "test": "vitest run",
82
+ "test:watch": "vitest"
83
83
  }
84
- }
84
+ }
@@ -0,0 +1,63 @@
1
+ # License
2
+
3
+ This project was scaffolded with the official
4
+ [`create-sailor`](https://www.npmjs.com/package/create-sailor) CLI.
5
+
6
+ **The Nebutra-Sailor code in this project is licensed to you under the MIT
7
+ License, reproduced below. You may build and ship a commercial product on it,
8
+ keep your source closed, and owe nothing.**
9
+
10
+ There is no fee, no licence key, no registration, no revenue threshold, no
11
+ headcount threshold, and no attribution requirement.
12
+
13
+ > Earlier versions of this file described a "Nebutra-Sailor Independent
14
+ > Developer License" limited to ≤ 1 FTE and < $1M ARR, with a paid tier above
15
+ > that. Those tiers were retired on 2026-07-26 and no longer apply to anything.
16
+ > See <https://github.com/Nebutra/Nebutra-Sailor/blob/main/docs/legal/license-history.md>.
17
+
18
+ ---
19
+
20
+ ## MIT License
21
+
22
+ Copyright (c) 2026 Wuxi Nebutra Intelligence Technology Co., Ltd.
23
+
24
+ Permission is hereby granted, free of charge, to any person obtaining a copy
25
+ of this software and associated documentation files (the "Software"), to deal
26
+ in the Software without restriction, including without limitation the rights
27
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
28
+ copies of the Software, and to permit persons to whom the Software is
29
+ furnished to do so, subject to the following conditions:
30
+
31
+ The above copyright notice and this permission notice shall be included in all
32
+ copies or substantial portions of the Software.
33
+
34
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40
+ SOFTWARE.
41
+
42
+ ---
43
+
44
+ ## Your own code
45
+
46
+ This licence covers the Nebutra-Sailor scaffold. **Code you write in this
47
+ project is yours** — replace this file with your own licence whenever you like.
48
+ Nothing here constrains that choice.
49
+
50
+ ## The upstream repository
51
+
52
+ The [Nebutra-Sailor monorepo](https://github.com/Nebutra/Nebutra-Sailor) is
53
+ licensed under **FSL-1.1-ALv2**, which converts to Apache-2.0 two years after
54
+ each release. That licence permits every use except selling a substitute for
55
+ Sailor itself. It does not apply to this scaffolded project, which is MIT as
56
+ stated above.
57
+
58
+ ## Optional paid tiers
59
+
60
+ Nothing is gated behind them. They sell support, response SLAs,
61
+ indemnification, compliance paperwork, and trademark / white-label rights —
62
+ not permission to use the software. See
63
+ <https://github.com/Nebutra/Nebutra-Sailor/blob/main/LICENSE-COMMERCIAL.md>.
@@ -5,6 +5,6 @@
5
5
  /* Pull in Nebutra design tokens (brand colors, semantic scales, gradients). */
6
6
  @import "@nebutra/tokens/styles.css";
7
7
 
8
- /* Tell Tailwind v4 to scan @nebutra/ui source so its utility classes compile. */
9
- @source "../node_modules/@nebutra/ui/src/**/*.{ts,tsx}";
8
+ /* Package-owned Tailwind source scan for @nebutra/ui CVA classes. */
9
+ @import "@nebutra/ui/styles/sources.css";
10
10
  @source "../node_modules/fumadocs-ui/dist/**/*.js";
@@ -1,3 +1,15 @@
1
+ /**
2
+ * Sample Inngest welcome-email function for scaffolds.
3
+ *
4
+ * Production path: swap the step body for `@nebutra/email` once the
5
+ * generated project has a real email provider env (RESEND_API_KEY etc.):
6
+ *
7
+ * import { sendEmail } from "@nebutra/email";
8
+ * await sendEmail({ to: event.data.email, template: "welcome", ... });
9
+ *
10
+ * Until then this is intentionally sample-only — returns the intended
11
+ * recipient so the workflow is testable without sending mail.
12
+ */
1
13
  import { Inngest } from "inngest";
2
14
 
3
15
  export const inngest = new Inngest({ id: "{PRODUCT_NAME}" });
@@ -7,8 +19,12 @@ export const welcomeEmail = inngest.createFunction(
7
19
  { event: "user/created" },
8
20
  async ({ event, step }) => {
9
21
  await step.run("send-welcome", async () => {
10
- // TODO: dispatch via @nebutra/email
11
- return { to: event.data.email };
22
+ // Sample-only: do not send until @nebutra/email + provider keys are wired.
23
+ return {
24
+ to: event.data.email,
25
+ status: "sample-only",
26
+ hint: "Replace with sendEmail() from @nebutra/email",
27
+ };
12
28
  });
13
29
  },
14
30
  );
@@ -1,93 +0,0 @@
1
- # Nebutra-Sailor Independent Developer License
2
-
3
- > **Quick answer:** if you used `create-sailor` to scaffold this project AND
4
- > your team is ≤ 1 FTE (one person), you may build and ship a commercial
5
- > product on top of Nebutra-Sailor **without AGPL copyleft**, free of charge.
6
- > Above that threshold you need a paid commercial tier — see the full
7
- > commercial license at https://nebutra.com/legal/license.
8
-
9
- This file ships with every project created by `create-sailor`. It is the
10
- license that applies to the Nebutra-Sailor source code **as scaffolded into
11
- this project by the CLI**. Direct forks of the source repository
12
- (https://github.com/Nebutra/Nebutra-Sailor) remain under AGPL-3.0; see
13
- `LICENSE-AGPL-REFERENCE.md` for the upstream copyleft text.
14
-
15
- ---
16
-
17
- ## 1. Free tier — Individual / One-person Company (OPC)
18
-
19
- **Eligible if all of the following are true:**
20
-
21
- - You scaffolded this project using the official `create-sailor` CLI
22
- (a `.nebutra/scaffold-meta.json` is present at the repo root).
23
- - The product or service built on this codebase has **at most one full-time
24
- equivalent (FTE)** working on it — solo developer, OPC, or solopreneur.
25
- - Annual revenue derived from this product is **under $1,000,000 USD**.
26
-
27
- **You get:**
28
-
29
- - Full right to use, modify, and extend the scaffolded code in commercial
30
- or non-commercial projects.
31
- - **No AGPL copyleft.** You do not need to open-source your product or
32
- serve source code to your users.
33
- - Community support via Discord and GitHub Discussions.
34
-
35
- **You must:**
36
-
37
- - Keep this `LICENSE` file and the `.nebutra/scaffold-meta.json` marker
38
- intact at the root of your repository.
39
- - Display a "Built with Nebutra-Sailor" credit (one of: README, product
40
- about page, marketing footer). Link to https://nebutra.com is preferred
41
- but not required.
42
- - Re-evaluate eligibility annually. If you cross the FTE or revenue
43
- threshold, upgrade to the Startup tier within 30 days.
44
-
45
- ---
46
-
47
- ## 2. Crossed the threshold? Upgrade tiers
48
-
49
- | Tier | Eligibility | Price |
50
- |--------------|------------------------------------------------------|--------------|
51
- | Independent | ≤ 1 FTE, < $1M ARR | Free |
52
- | Startup | 2–50 FTE, any revenue | $799/year |
53
- | Enterprise | 50+ FTE, ≥ $1M ARR, or white-label / SLA needs | Custom |
54
-
55
- Purchase or contact at https://nebutra.com/get-license.
56
-
57
- The Startup and Enterprise tiers grant the **same no-copyleft permissions**
58
- as the Independent tier, with added support, white-labeling rights, and
59
- SLA guarantees. The full commercial license terms are in
60
- `LICENSE-COMMERCIAL.md` if you've shipped one with your fork, or at
61
- https://nebutra.com/legal/license.
62
-
63
- ---
64
-
65
- ## 3. What happens if you fork the source repo instead
66
-
67
- If you cloned or forked https://github.com/Nebutra/Nebutra-Sailor directly
68
- (without using `create-sailor`), the source code in that fork remains
69
- licensed under **AGPL-3.0** — the upstream license. AGPL's network copyleft
70
- clause (Section 13) applies: if you offer the modified software as a
71
- network service, you must make the modified source available to users.
72
-
73
- To avoid AGPL on a direct fork, purchase a Startup or Enterprise commercial
74
- license at https://nebutra.com/get-license.
75
-
76
- The CLI-scaffolded path (this license file) and the fork-from-source path
77
- (AGPL) are two distinct grants from the same copyright holder
78
- (Nebutra Technologies). The presence or absence of `.nebutra/scaffold-meta.json`
79
- at the repo root is the legal marker that distinguishes the two.
80
-
81
- ---
82
-
83
- ## 4. Disclaimer
84
-
85
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. THE AUTHORS
86
- OR COPYRIGHT HOLDERS SHALL NOT BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER
87
- LIABILITY ARISING FROM OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
88
- OTHER DEALINGS IN THE SOFTWARE.
89
-
90
- ---
91
-
92
- **License contact:** legal@nebutra.com
93
- **License version:** 1.0 (scaffold-emitted, 2026-05)