@notis_ai/cli 0.2.0-beta.104.1 → 0.2.0-beta.107.1
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
|
@@ -48,6 +48,7 @@ npx --package @notis_ai/cli@latest -- notis apps ...
|
|
|
48
48
|
- Build standard pages in `app/`. Do not write raw `views/<slug>/index.js` files.
|
|
49
49
|
- Keep navigation in `notis.config.ts` `routes`; each route needs a stable `slug`.
|
|
50
50
|
- Reference existing databases by slug in `notis.config.ts`; do not assume deploy creates databases automatically.
|
|
51
|
+
- Every native database is owned by exactly one app. Creating one with `LOCAL_NOTIS_DATABASE_UPSERT_DATABASE` requires the owning app's slug or id in the `app` argument (create the app first with `LOCAL_NOTIS_CREATE_APP` if needed); deleting an app deletes its databases and their documents.
|
|
51
52
|
- Declare runtime tool access in `notis.config.ts` `tools`.
|
|
52
53
|
- Use `@notis/sdk` hooks instead of direct runtime access.
|
|
53
54
|
- Do not rely on `window.__NOTIS_RUNTIME__` or portal-owned DOM hooks.
|
|
@@ -218,7 +218,7 @@ Native Notis databases are accessed through the generic tool workflow, not a fir
|
|
|
218
218
|
- `LOCAL_NOTIS_DATABASE_LIST_DATABASES` -- list databases accessible to the current profile
|
|
219
219
|
- `LOCAL_NOTIS_DATABASE_GET_DATABASE` -- inspect read-only metadata and schema detail
|
|
220
220
|
- `LOCAL_NOTIS_DATABASE_QUERY` -- query documents from a database
|
|
221
|
-
- `LOCAL_NOTIS_DATABASE_UPSERT_DATABASE` -- create or update a database schema
|
|
221
|
+
- `LOCAL_NOTIS_DATABASE_UPSERT_DATABASE` -- create or update a database schema. Every database belongs to a Notis app: creation requires the owning app's slug or id in the `app` argument (create the app first with `LOCAL_NOTIS_CREATE_APP` if needed)
|
|
222
222
|
|
|
223
223
|
Example workflow before building an app:
|
|
224
224
|
|
|
@@ -13,7 +13,7 @@ For CI, hosted agents, or internal scripts, pass a non-persisted token with `NOT
|
|
|
13
13
|
- `LOCAL_NOTIS_DATABASE_LIST_DATABASES` — list native databases.
|
|
14
14
|
- `LOCAL_NOTIS_DATABASE_GET_DATABASE` — inspect one database schema.
|
|
15
15
|
- `LOCAL_NOTIS_DATABASE_QUERY` — query native database documents.
|
|
16
|
-
- `LOCAL_NOTIS_DATABASE_UPSERT_DATABASE` — create or update database schema.
|
|
16
|
+
- `LOCAL_NOTIS_DATABASE_UPSERT_DATABASE` — create or update database schema. Creation requires the owning app's slug or id in the `app` argument (every database belongs to a Notis app).
|
|
17
17
|
|
|
18
18
|
## Workflow
|
|
19
19
|
|