@nbt-dev/nbt 0.1.0 → 0.1.2

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 (30) hide show
  1. package/README.md +7 -6
  2. package/dist/nbt.js +195 -422
  3. package/package.json +8 -4
  4. package/stdlib/auth/schema.nbt +6 -3
  5. package/stdlib/dns/schema.nbt +1 -1
  6. package/stdlib/ingest/schema.nbt +1 -1
  7. package/stdlib/phone/schema.nbt +1 -1
  8. package/stdlib/registry/schema.nbt +1 -1
  9. package/stdlib/secrets/schema.nbt +16 -0
  10. package/stdlib/workflows/schema.nbt +27 -0
  11. package/vendor/linux-x64/cartridges/auth/schema.nbt +6 -3
  12. package/vendor/linux-x64/cartridges/dns/schema.nbt +1 -1
  13. package/vendor/linux-x64/cartridges/ingest/schema.nbt +1 -1
  14. package/vendor/linux-x64/cartridges/phone/schema.nbt +1 -1
  15. package/vendor/linux-x64/cartridges/registry/schema.nbt +1 -1
  16. package/vendor/linux-x64/cartridges/secrets/schema.nbt +16 -0
  17. package/vendor/linux-x64/cartridges/workflows/schema.nbt +27 -0
  18. package/vendor/linux-x64/console +0 -0
  19. package/vendor/linux-x64/esbuild +0 -0
  20. package/vendor/linux-x64/nbt +0 -0
  21. package/stdlib/design/migrations/20260501210107_initial/migration.nbt +0 -19
  22. package/stdlib/design/migrations/20260501210107_initial/schema_snapshot.nbt +0 -21
  23. package/stdlib/design/migrations/20260610130000_design_system/migration.nbt +0 -50
  24. package/stdlib/design/migrations/20260610130000_design_system/schema_snapshot.nbt +0 -80
  25. package/stdlib/design/schema.nbt +0 -140
  26. package/vendor/linux-x64/cartridges/design/migrations/20260501210107_initial/migration.nbt +0 -19
  27. package/vendor/linux-x64/cartridges/design/migrations/20260501210107_initial/schema_snapshot.nbt +0 -21
  28. package/vendor/linux-x64/cartridges/design/migrations/20260610130000_design_system/migration.nbt +0 -50
  29. package/vendor/linux-x64/cartridges/design/migrations/20260610130000_design_system/schema_snapshot.nbt +0 -80
  30. package/vendor/linux-x64/cartridges/design/schema.nbt +0 -140
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @nbt-dev/nbt
2
2
 
3
- The `nbt` CLI and `console` daemon for the nbt-dev console — a fixed-target platform for web development.
3
+ The `nbt` CLI and runtime for nbt-dev — a schema-first backend platform for web development.
4
4
 
5
5
  ## Install
6
6
 
@@ -16,12 +16,13 @@ npx nbt list # list available standard modules
16
16
  npx nbt add crm email # vendor standard cartridges into nbt/
17
17
  npx nbt update crm email # refresh vendored modules without deleting migrations
18
18
  # ...edit nbt/<cart>/schema.nbt (entities, indexes, @route decls)…
19
- npx nbt dev # boot the console + live-reload local carts on save
20
- npx nbt migrate create billing --baseline # first migration from the schema
19
+ npx nbt dev # boot the runtime + live-reload local carts on save
20
+ npx nbt migrate create billing -m "initial" --baseline # first migration from the schema
21
+ npx nbt status # what persistent changes are unrecorded?
21
22
  npx nbt generate # typed TS clients for the local cartridge set
22
23
 
23
- npx nbt migrate deploy # upload local source + apply migrations
24
- npx nbt migrate deploy --env prod # target another configured environment
24
+ npx nbt deploy # build + ship the whole project as one release
25
+ npx nbt deploy --env prod # target another configured environment
25
26
  ```
26
27
 
27
28
  Commands read `nbt.json` for paths and the target instance; `--host`/`--port`/`--root`/`--out`
@@ -29,7 +30,7 @@ flags override it. Run from anywhere inside the project — `nbt` walks up to fi
29
30
 
30
31
  Standard cartridges use a shadcn-style ownership model: `nbt add <name>` copies their source into
31
32
  your configured carts directory. The local copy is visible and editable, `nbt generate` follows
32
- that local cartridge set, and `nbt migrate deploy` uploads it to the configured console.
33
+ that local cartridge set, and `nbt deploy` ships it to the configured runtime as one release.
33
34
 
34
35
  ```bash
35
36
  npx nbt up # boot using nbt.json dev port