@notis_ai/cli 0.2.30 → 0.2.32
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/README.md +15 -0
- package/config/notis_app_design_rules.json +22 -0
- package/dist/agent-hooks/notis-agent-hook.mjs +38244 -10823
- package/dist/base-skills/notis-cli/.notis-base-skill.json +1 -1
- package/dist/base-skills/notis-cli/references/native-databases.md +1 -1
- package/dist/base-skills/notis-query/.notis-base-skill.json +1 -1
- package/dist/base-skills/notis-query/references/query.md +6 -4
- package/dist/base-skills/notis-spaces/.notis-base-skill.json +1 -1
- package/dist/base-skills/notis-spaces/SKILL.md +12 -4
- package/dist/base-skills/notis-spaces/references/architecture.md +4 -1
- package/dist/base-skills/notis-spaces/references/design.md +7 -1
- package/dist/base-skills/notis-spaces/references/fixtures.md +29 -2
- package/dist/base-skills/notis-spaces/references/reading.md +3 -1
- package/dist/base-skills/notis-spaces/references/release.md +3 -1
- package/dist/base-skills/notis-spaces/references/sdk.md +112 -33
- package/dist/base-skills/notis-spaces/references/troubleshooting.md +3 -0
- package/dist/base-skills/notis-spaces/references/views.md +20 -0
- package/dist/sdk/src/hooks/useNativeDocuments.ts +50 -12
- package/dist/sdk/src/index.ts +1 -1
- package/dist/sdk/src/space.ts +3 -1
- package/dist/sdk/src/tailwind.ts +53 -3
- package/dist/sdk/src/ui/icons.tsx +18 -1
- package/dist/sdk/src/words/types.ts +28 -0
- package/dist/skill-sync/index.js +10 -90
- package/dist/skill-sync-worker.mjs +50 -93
- package/dist/space-harness/host.js +155 -82
- package/dist/space-sdk/dist/chunk-I4Z4UFGB.js +3 -0
- package/dist/space-sdk/dist/index.js +2 -2
- package/dist/space-sdk/dist/ui.js +12 -12
- package/dist/space-sdk/src/hooks/useNativeDocuments.d.ts +23 -0
- package/dist/space-sdk/src/index.d.ts +1 -1
- package/dist/space-sdk/src/space.ts +3 -1
- package/dist/space-sdk/src/tailwind-candidates.d.ts +315 -2
- package/dist/space-sdk/src/tailwind.ts +53 -3
- package/dist/space-sdk/src/ui/blocks/DataTable.d.ts +19 -4
- package/dist/space-sdk/src/ui/blocks/Meter.d.ts +12 -3
- package/dist/space-sdk/src/ui/blocks/Tabs.d.ts +7 -1
- package/dist/space-sdk/src/ui/blocks/blocks.d.ts +18 -0
- package/dist/space-sdk/src/ui/blocks/index.d.ts +3 -3
- package/dist/space-sdk/src/ui/charts/CalendarHeatmap.d.ts +69 -0
- package/dist/space-sdk/src/ui/charts/Chart.d.ts +18 -3
- package/dist/space-sdk/src/ui/charts/chartData.d.ts +19 -0
- package/dist/space-sdk/src/ui/charts/heatmapData.d.ts +81 -0
- package/dist/space-sdk/src/ui/icons.d.ts +6 -0
- package/dist/space-sdk/src/ui/index.d.ts +5 -3
- package/dist/space-sdk/src/ui/list/ListReader.d.ts +8 -0
- package/dist/space-sdk/src/ui/list/Row.d.ts +11 -1
- package/dist/space-sdk/src/ui/period/dateFormat.d.ts +2 -0
- package/dist/space-sdk/src/ui/period/dateWords.d.ts +9 -0
- package/dist/space-sdk/src/ui/period/periods.d.ts +15 -2
- package/dist/space-sdk/src/words/types.ts +28 -0
- package/dist/view-renderer/dist/host.js +224 -151
- package/dist/view-renderer/src/dom.js +3 -2
- package/dist/view-renderer/src/errors.js +9 -0
- package/dist/view-renderer/src/host.tsx +12 -5
- package/dist/view-renderer/src/remote-broker.js +3 -1
- package/dist/view-renderer/src/renderer.js +63 -16
- package/dist/view-renderer/src/skeleton.js +70 -18
- package/package.json +5 -4
- package/skills/notis-query/cli.md +3 -0
- package/skills/notis-spaces/cli.md +14 -0
- package/src/command-specs/spaces.js +138 -15
- package/src/command-specs/tools.js +3 -0
- package/src/runtime/api-hosts.generated.js +35 -0
- package/src/runtime/api-hosts.js +27 -10
- package/src/runtime/app-boundary-validator.js +248 -3
- package/src/runtime/app-data-literals.js +32 -23
- package/src/runtime/app-platform.js +68 -24
- package/src/runtime/http-agent.js +53 -0
- package/src/runtime/native-record-files.js +11 -0
- package/src/runtime/oauth.js +2 -1
- package/src/runtime/skill-sync/cloud-client.ts +0 -10
- package/src/runtime/skill-sync/index.ts +13 -15
- package/src/runtime/skill-sync/local-scanner.ts +0 -67
- package/src/runtime/skill-sync/types.ts +1 -0
- package/src/runtime/skill-sync/write-cloud-skill.ts +7 -23
- package/src/runtime/space-dependencies.js +66 -0
- package/src/runtime/space-fixture-broker.js +23 -8
- package/src/runtime/space-platform.js +47 -3
- package/src/runtime/space-source.js +10 -1
- package/src/runtime/space-test-server.js +124 -6
- package/src/runtime/space-verification.js +103 -43
- package/src/runtime/space-view-manifest.js +38 -5
- package/src/runtime/transport.js +19 -4
- package/src/runtime/view-render.js +4 -1
- package/template/tailwind.config.ts +2 -35
- package/dist/space-sdk/dist/chunk-6GJ2BS7B.js +0 -3
|
@@ -23,6 +23,29 @@ export declare function useNativeDocuments(binding: string, options?: {
|
|
|
23
23
|
schemaRevision?: number;
|
|
24
24
|
live: boolean;
|
|
25
25
|
};
|
|
26
|
+
/** What a count reads: the rows its filter keeps, archived ones too when asked. */
|
|
27
|
+
export type NativeCountQuery = Pick<NativeQuery, 'filter' | 'include_archived'>;
|
|
28
|
+
/**
|
|
29
|
+
* How many rows of a database binding match `query.filter`, read with the native query's `mode: 'count'` through the
|
|
30
|
+
* same declared query action as `useNativeDocuments`: no row is loaded. `count` is undefined until the first answer;
|
|
31
|
+
* `loading`, `isFetching` and `error` behave as in every `useQuery` read. When the filter changes, the last count
|
|
32
|
+
* stays shown (`isPreviousData` true) until the new one is read; a new binding starts empty instead. A write
|
|
33
|
+
* refreshes it once confirmed, never before: an optimistic row does not move the count. `subscribe` follows the live
|
|
34
|
+
* change feed as in `useNativeDocuments`.
|
|
35
|
+
*/
|
|
36
|
+
export declare function useNativeCount(binding: string, options?: {
|
|
37
|
+
query?: NativeCountQuery;
|
|
38
|
+
enabled?: boolean;
|
|
39
|
+
staleTimeMs?: number;
|
|
40
|
+
subscribe?: boolean;
|
|
41
|
+
}): UseQueryResult<{
|
|
42
|
+
count: number;
|
|
43
|
+
schemaRevision: number;
|
|
44
|
+
}> & {
|
|
45
|
+
count?: number;
|
|
46
|
+
schemaRevision?: number;
|
|
47
|
+
live: boolean;
|
|
48
|
+
};
|
|
26
49
|
/** Options of one native write. */
|
|
27
50
|
export interface NativeMutationOptions {
|
|
28
51
|
schemaRevision: number;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
export { NotisProvider, useNotisRuntime } from './provider';
|
|
10
10
|
export { useAction, useActionQuery } from './hooks/useAction';
|
|
11
11
|
export type { UseActionQueryOptions } from './hooks/useAction';
|
|
12
|
-
export { useNativeDocuments, useNativeMutation, useNativeDelete, type NativeDeleteManyResult, type NativeMutationOptions } from './hooks/useNativeDocuments';
|
|
12
|
+
export { useNativeDocuments, useNativeCount, useNativeMutation, useNativeDelete, type NativeCountQuery, type NativeDeleteManyResult, type NativeMutationOptions } from './hooks/useNativeDocuments';
|
|
13
13
|
export type { NativeField, NativeFilter, NativeQuery, NativeInsert, NativeUpdate, NativeDelete, NativeMutationReceipt } from './nativeData';
|
|
14
14
|
export type { SpaceDatabaseCreate, SpaceResourceReference } from './space';
|
|
15
15
|
export type { SpaceActionTemplate, SpaceActionDescriptor, SpaceRuntimeDescriptor, SpaceActionOptions } from './space';
|
|
@@ -897,7 +897,9 @@ export interface SpaceActionFailureDetails {
|
|
|
897
897
|
pendingRequestIds?: string[];
|
|
898
898
|
/**
|
|
899
899
|
* Why a settled action failed, when the host knows a stable reason: `read_timeout` (a read its time limit stopped)
|
|
900
|
-
* or `rate_limited` (the provider refused the call for sending too fast; it did not run, so retry after a few seconds)
|
|
900
|
+
* or `rate_limited` (the provider refused the call for sending too fast; it did not run, so retry after a few seconds)
|
|
901
|
+
* or `connection_unavailable` (the connection the action runs through is not usable as saved: a retry never clears it;
|
|
902
|
+
* the Editor who published the Space reconnects that integration, or publishes the Space again).
|
|
901
903
|
*/
|
|
902
904
|
code?: string;
|
|
903
905
|
}
|