nebutra 0.4.2 → 0.5.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.
Files changed (58) hide show
  1. package/README.md +20 -21
  2. package/bin/nebutra.js +28 -0
  3. package/dist/delegate-GIJ3G5CK.js +1 -0
  4. package/dist/index.js +74 -467
  5. package/dist/logger-QMYN56HK.js +1 -0
  6. package/package.json +13 -6
  7. package/dist/aws-kms-GSHDWA4I.js +0 -1
  8. package/dist/bowser-2VXD6AQS.js +0 -11
  9. package/dist/chunk-5ECPN42W.js +0 -1
  10. package/dist/chunk-6MSNEPUX.js +0 -0
  11. package/dist/chunk-A3H5SUSR.js +0 -8
  12. package/dist/chunk-AN6QWW3N.js +0 -1
  13. package/dist/chunk-CVCZBECH.js +0 -1
  14. package/dist/chunk-GA44DNS2.js +0 -1
  15. package/dist/chunk-ICFXBVJ4.js +0 -17
  16. package/dist/chunk-IYWUY3VA.js +0 -1
  17. package/dist/chunk-LDZWCNWB.js +0 -0
  18. package/dist/chunk-M3NEWJ7L.js +0 -1
  19. package/dist/chunk-MGGNSWUA.js +0 -3
  20. package/dist/chunk-MYIHTCRS.js +0 -4
  21. package/dist/chunk-PA4CKDRJ.js +0 -1
  22. package/dist/chunk-QSLKOXQ6.js +0 -1
  23. package/dist/chunk-S4HCBMFP.js +0 -1
  24. package/dist/chunk-SYWJHPRX.js +0 -0
  25. package/dist/chunk-TW5BOTVX.js +0 -0
  26. package/dist/chunk-UWHWNXNX.js +0 -19
  27. package/dist/chunk-WJLTO7JW.js +0 -0
  28. package/dist/chunk-X6LE6K3W.js +0 -0
  29. package/dist/chunk-XE3I3HCZ.js +0 -40
  30. package/dist/chunk-Z4YWESTY.js +0 -2
  31. package/dist/chunk-ZIBRKYXP.js +0 -23
  32. package/dist/credits-33DQE7XK.js +0 -2802
  33. package/dist/delegate-7HQKV277.js +0 -1
  34. package/dist/dist-GMNPO44T.js +0 -1
  35. package/dist/dist-WSEDRKMF.js +0 -5
  36. package/dist/dist-es-5AMXVNUC.js +0 -1
  37. package/dist/dist-es-5XQLJX7S.js +0 -2
  38. package/dist/dist-es-H47VUS6Q.js +0 -2
  39. package/dist/dist-es-HTJP4AFM.js +0 -1
  40. package/dist/dist-es-PAB65TG2.js +0 -5
  41. package/dist/dist-es-QD75XXED.js +0 -1
  42. package/dist/dist-es-QREIURMO.js +0 -2
  43. package/dist/dist-es-TCZQ4KMP.js +0 -2
  44. package/dist/dist-es-TDPJBG34.js +0 -1
  45. package/dist/dist-es-VD25UO4M.js +0 -1
  46. package/dist/dist-es-VZPXKLZQ.js +0 -1
  47. package/dist/dist-es-WOF2PBAL.js +0 -5
  48. package/dist/event-streams-TNY7XPBF.js +0 -1
  49. package/dist/loadSso-7ASJ2L6X.js +0 -1
  50. package/dist/loadSso-CDEOXPSD.js +0 -1
  51. package/dist/local-6WWVOMA7.js +0 -1
  52. package/dist/logger-WOLJCPZK.js +0 -1
  53. package/dist/query_compiler_fast_bg.postgresql-JA2BFVW5.js +0 -2
  54. package/dist/query_compiler_fast_bg.postgresql.wasm-base64-URHQ2Y3Y.js +0 -1
  55. package/dist/signin-VC4RXV33.js +0 -1
  56. package/dist/sso-oidc-T7YTOO4A.js +0 -1
  57. package/dist/sts-GE4BCXER.js +0 -1
  58. package/dist/sts-HDZNXPJY.js +0 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # nebutra
2
2
 
3
- > Governance-first CLI for Nebutra Sailor topology scaffolding, registry-backed feature installs, and platform operations.
3
+ > The CLI for Sailor projects: status, dev, db, and codegen.
4
4
 
5
5
  ## Installation
6
6
 
@@ -16,11 +16,11 @@ npx nebutra
16
16
  # Initialize a new project
17
17
  nebutra init
18
18
 
19
- # Add platform capabilities from the local registry
20
- nebutra add cache --provider upstash-redis --yes
19
+ # Check capability readiness (live / local-fallback / missing-key)
20
+ nebutra status
21
21
 
22
- # Scaffold a topology-first app with the create-sailor flag surface
23
- nebutra create ./my-app --region=hybrid --ai=openai,deepseek
22
+ # Scaffold a new project (separate tool — one creation entry point)
23
+ npx create-sailor ./my-app
24
24
 
25
25
  # Start dev server
26
26
  nebutra dev --preset=ai-saas
@@ -43,8 +43,7 @@ nebutra doctor
43
43
  | Command | Description |
44
44
  |---------|-------------|
45
45
  | `init` | Initialize project with `nebutra.config.json` |
46
- | `add [components...]` | Add registry-backed platform features or external UI components (`--21st`, `--v0`) |
47
- | `create` | Scaffold a topology-first Nebutra Sailor project through create-sailor |
46
+ | `status` | Show capability readiness — live, local-fallback, or missing-key, per env (`--json`) |
48
47
  | `mcp` | Start the MCP server for AI agents and editors |
49
48
  | `dev` | Start development server |
50
49
  | `generate` | Scaffold apps, modules, and code |
@@ -55,20 +54,20 @@ nebutra doctor
55
54
  | `env` | Environment variable management |
56
55
  | `license` | License activation and management |
57
56
  | `ai` | AI provider and gateway routing configuration |
58
- | `auth` | Authentication setup |
59
- | `billing` | Billing and subscription management |
60
- | `preset` | List and apply SaaS presets |
61
57
  | `test` | Run unit/E2E tests |
62
- | `stats` | Monorepo overview and metrics |
63
58
  | `schema` | Output full CLI schema (for agents) |
64
59
  | `doctor` | Check project health |
65
- | `admin` | Platform administration (tenants, health) |
66
- | `community` | Community health and showcase |
67
- | `ecosystem` | Template marketplace, ideas, showcase, and sync workflows |
68
60
  | `services` | Microservice management |
69
- | `search` | Search index management |
70
61
  | `secrets` | Encrypted secrets management |
71
62
  | `completions` | Generate shell completions for the current command surface |
63
+ | `link` / `unlink` | Link or unlink the project to Nebutra platform metadata |
64
+ | `logout` / `upgrade` | Session and CLI lifecycle |
65
+
66
+ Scaffolding, registry, and platform-operations commands (`create`, `add`,
67
+ `auth`, `billing`, `admin`, `community`, `growth`, `ecosystem`, `search`,
68
+ `stats`, `workflow`, `backend`) have moved out of this published package —
69
+ project creation is `create-sailor`; the rest are internal Nebutra tooling
70
+ (ADR 2026-09-24 Sailor convergence §7).
72
71
 
73
72
  ## Global Options
74
73
 
@@ -92,12 +91,12 @@ nebutra doctor
92
91
  ## Agent Schema
93
92
 
94
93
  ```bash
95
- nebutra schema create
96
- nebutra schema add
94
+ nebutra schema status
97
95
  nebutra schema --all
96
+ nebutra status --json
98
97
  ```
99
98
 
100
- `schema create` exposes the current `create-sailor` value domains, including
101
- region, auth, AI, storage, cache, webhooks, CMS, captcha, metering, and MCP
102
- options. `schema add` exposes local registry features such as `queue`, `search`,
103
- `cache`, `notifications`, `webhooks`, `cms`, `feature-flags`, and `captcha`.
99
+ `schema <command>` exposes a single command's arguments, options, and
100
+ examples as JSON. `status --json` exposes live project state — per-capability
101
+ readiness for the capabilities declared in `nebutra.config.json` — not static
102
+ command metadata.
package/bin/nebutra.js ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env node
2
+ // Committed bin entry for `nebutra`.
3
+ //
4
+ // pnpm links bins before any lifecycle script or build runs, so package.json#bin
5
+ // must point at a file that exists in a fresh checkout — dist/ does not. This
6
+ // file exists at link time and hands off to the tsup output once it is built.
7
+ // Guarded by tests/architecture/workspace-bin-stubs.test.ts.
8
+ import { existsSync } from "node:fs";
9
+ import { dirname, resolve } from "node:path";
10
+ import { fileURLToPath, pathToFileURL } from "node:url";
11
+
12
+ const entry = resolve(dirname(fileURLToPath(import.meta.url)), "../dist/index.js");
13
+
14
+ if (!existsSync(entry)) {
15
+ process.stderr.write(
16
+ [
17
+ `nebutra: built entry not found at ${entry}`,
18
+ "The package has not been built yet. Run `pnpm --filter nebutra build` and retry.",
19
+ "",
20
+ ].join("\n"),
21
+ );
22
+ process.exit(1);
23
+ }
24
+
25
+ // dist/index.js only runs main() when process.argv[1] resolves to its own path
26
+ // (isEntrypoint), so make argv identical to a direct `node dist/index.js …`.
27
+ process.argv[1] = entry;
28
+ await import(pathToFileURL(entry).href);
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e,f}from"./chunk-LGUMYJ4Q.js";export{b as delegate,e as dockerCompose,a as findMonorepoRoot,c as pnpmRun,f as prismaRun,d as turboRun};