@notis_ai/cli 0.2.0-beta.136.1 → 0.2.0-beta.137.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/dist/scaffolds/notis-database/packages/sdk/src/config.ts +8 -0
- package/dist/scaffolds/notis-journal/packages/sdk/src/config.ts +8 -0
- package/dist/scaffolds/notis-notes/packages/sdk/src/config.ts +8 -0
- package/dist/scaffolds/notis-random/packages/sdk/src/config.ts +8 -0
- package/package.json +1 -1
- package/skills/notis-apps/SKILL.md +2 -2
- package/template/packages/sdk/src/config.ts +8 -0
|
@@ -209,6 +209,14 @@ export interface NotisAppConfig {
|
|
|
209
209
|
*/
|
|
210
210
|
capabilities?: NotisAppCapabilities;
|
|
211
211
|
routes?: NotisRouteConfig[];
|
|
212
|
+
/**
|
|
213
|
+
* Final tool names this app can call at runtime, enforced server-side. Use
|
|
214
|
+
* names returned by shared discovery, including native `LOCAL_NOTIS_*`,
|
|
215
|
+
* connected-service names such as `GMAIL_SEND_EMAIL`,
|
|
216
|
+
* `LOCAL_POSTFORME_*`, and `LOCAL_MCP_<SERVER>_<TOOL>`. App code calls
|
|
217
|
+
* each declared name directly with `useTool`; metered calls use the shared
|
|
218
|
+
* credit-cap and usage-billing path.
|
|
219
|
+
*/
|
|
212
220
|
tools?: string[];
|
|
213
221
|
/** Skills shipped from this app's source tree. */
|
|
214
222
|
skills?: NotisAppSkillConfig[];
|
|
@@ -209,6 +209,14 @@ export interface NotisAppConfig {
|
|
|
209
209
|
*/
|
|
210
210
|
capabilities?: NotisAppCapabilities;
|
|
211
211
|
routes?: NotisRouteConfig[];
|
|
212
|
+
/**
|
|
213
|
+
* Final tool names this app can call at runtime, enforced server-side. Use
|
|
214
|
+
* names returned by shared discovery, including native `LOCAL_NOTIS_*`,
|
|
215
|
+
* connected-service names such as `GMAIL_SEND_EMAIL`,
|
|
216
|
+
* `LOCAL_POSTFORME_*`, and `LOCAL_MCP_<SERVER>_<TOOL>`. App code calls
|
|
217
|
+
* each declared name directly with `useTool`; metered calls use the shared
|
|
218
|
+
* credit-cap and usage-billing path.
|
|
219
|
+
*/
|
|
212
220
|
tools?: string[];
|
|
213
221
|
/** Skills shipped from this app's source tree. */
|
|
214
222
|
skills?: NotisAppSkillConfig[];
|
|
@@ -209,6 +209,14 @@ export interface NotisAppConfig {
|
|
|
209
209
|
*/
|
|
210
210
|
capabilities?: NotisAppCapabilities;
|
|
211
211
|
routes?: NotisRouteConfig[];
|
|
212
|
+
/**
|
|
213
|
+
* Final tool names this app can call at runtime, enforced server-side. Use
|
|
214
|
+
* names returned by shared discovery, including native `LOCAL_NOTIS_*`,
|
|
215
|
+
* connected-service names such as `GMAIL_SEND_EMAIL`,
|
|
216
|
+
* `LOCAL_POSTFORME_*`, and `LOCAL_MCP_<SERVER>_<TOOL>`. App code calls
|
|
217
|
+
* each declared name directly with `useTool`; metered calls use the shared
|
|
218
|
+
* credit-cap and usage-billing path.
|
|
219
|
+
*/
|
|
212
220
|
tools?: string[];
|
|
213
221
|
/** Skills shipped from this app's source tree. */
|
|
214
222
|
skills?: NotisAppSkillConfig[];
|
|
@@ -209,6 +209,14 @@ export interface NotisAppConfig {
|
|
|
209
209
|
*/
|
|
210
210
|
capabilities?: NotisAppCapabilities;
|
|
211
211
|
routes?: NotisRouteConfig[];
|
|
212
|
+
/**
|
|
213
|
+
* Final tool names this app can call at runtime, enforced server-side. Use
|
|
214
|
+
* names returned by shared discovery, including native `LOCAL_NOTIS_*`,
|
|
215
|
+
* connected-service names such as `GMAIL_SEND_EMAIL`,
|
|
216
|
+
* `LOCAL_POSTFORME_*`, and `LOCAL_MCP_<SERVER>_<TOOL>`. App code calls
|
|
217
|
+
* each declared name directly with `useTool`; metered calls use the shared
|
|
218
|
+
* credit-cap and usage-billing path.
|
|
219
|
+
*/
|
|
212
220
|
tools?: string[];
|
|
213
221
|
/** Skills shipped from this app's source tree. */
|
|
214
222
|
skills?: NotisAppSkillConfig[];
|
package/package.json
CHANGED
|
@@ -77,7 +77,7 @@ App code never accesses the runtime directly -- it uses SDK hooks (`useTool`, `u
|
|
|
77
77
|
3. **Component rendering** -- Apps render as React components directly in the portal. No iframes.
|
|
78
78
|
The portal owns the `ShadowRoot`, theme tokens, and runtime provider.
|
|
79
79
|
4. **HTTP bridge** -- Runtime calls use fetch to `/portal_views/runtime_query`
|
|
80
|
-
5. **Declarative tools** -- Tool access declared in `notis.config.ts
|
|
80
|
+
5. **Declarative tools** -- Tool access is declared in `notis.config.ts` by the final names returned by tool discovery and enforced server-side. Views can call native Notis, connected integrations, PostForMe, and MCP tools directly; metered calls use the same credit-cap and usage-billing path as the CLI.
|
|
81
81
|
6. **shadcn + Notis theme** -- Apps must use shadcn components with the live Notis theme provided by the portal
|
|
82
82
|
7. **Phosphor icons only** -- Always `phosphor:` prefix. Never emojis.
|
|
83
83
|
8. **Database refs only** -- `notis.config.ts` references existing databases by slug. The schema source of truth lives in the `databases` table, not in the manifest. Every native database is owned by exactly one app (`databases.owner_app_id`): creating one through `LOCAL_NOTIS_DATABASE_UPSERT_DATABASE` requires the owning app's slug or id in the `app` argument, install/dev materialization stamps ownership automatically, and deleting an app deletes its databases and their documents.
|
|
@@ -195,7 +195,7 @@ Create `notis.config.ts` with:
|
|
|
195
195
|
- **name** -- Display name
|
|
196
196
|
- **databases** -- Slug references to existing Notis databases
|
|
197
197
|
- **routes** -- Route-first sidebar entries with explicit `slug`, optional `parentSlug`, and optional `collection.sidebar` tree config
|
|
198
|
-
- **tools** --
|
|
198
|
+
- **tools** -- Final tool names the app can call at runtime. Use the shared discovery flow (`COMPOSIO_SEARCH_TOOLS`, then `COMPOSIO_GET_TOOL_SCHEMAS`) while building the app, and copy the returned final names into this list. Examples include `LOCAL_NOTIS_DATABASE_QUERY`, `LOCAL_NOTIS_MONID_RUN`, `GMAIL_SEND_EMAIL`, `LOCAL_POSTFORME_CREATE_POST`, and `LOCAL_MCP_<SERVER>_<TOOL>`. App code calls each declared name directly through `useTool`; it does not wrap provider or MCP calls in `COMPOSIO_MULTI_EXECUTE_TOOL`. Access stays scoped to the signed-in user's own connections, native database tools stay scoped to the app's databases unless `capabilities.workspaceDatabases: 'read'` is granted, and metered tools use the CLI-equivalent credit-cap and fail-closed usage-billing path.
|
|
199
199
|
|
|
200
200
|
For collection-backed sidebars, use the route schema directly:
|
|
201
201
|
|
|
@@ -209,6 +209,14 @@ export interface NotisAppConfig {
|
|
|
209
209
|
*/
|
|
210
210
|
capabilities?: NotisAppCapabilities;
|
|
211
211
|
routes?: NotisRouteConfig[];
|
|
212
|
+
/**
|
|
213
|
+
* Final tool names this app can call at runtime, enforced server-side. Use
|
|
214
|
+
* names returned by shared discovery, including native `LOCAL_NOTIS_*`,
|
|
215
|
+
* connected-service names such as `GMAIL_SEND_EMAIL`,
|
|
216
|
+
* `LOCAL_POSTFORME_*`, and `LOCAL_MCP_<SERVER>_<TOOL>`. App code calls
|
|
217
|
+
* each declared name directly with `useTool`; metered calls use the shared
|
|
218
|
+
* credit-cap and usage-billing path.
|
|
219
|
+
*/
|
|
212
220
|
tools?: string[];
|
|
213
221
|
/** Skills shipped from this app's source tree. */
|
|
214
222
|
skills?: NotisAppSkillConfig[];
|