@notis_ai/cli 0.2.27 → 0.2.29
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 +2 -2
- package/config/notis_app_design_rules.json +5 -123
- package/dist/agent-hooks/notis-agent-hook.mjs +453 -109
- package/dist/base-skills/notis-spaces/.notis-base-skill.json +1 -1
- package/dist/base-skills/notis-spaces/SKILL.md +13 -19
- package/dist/base-skills/notis-spaces/references/design.md +11 -45
- package/dist/base-skills/notis-spaces/references/sdk.md +94 -68
- package/dist/base-skills/notis-spaces/references/views.md +12 -1
- package/dist/sdk/src/components/NotisCommentBoundary.tsx +43 -83
- package/dist/sdk/src/components/NotisSelectionBoundary.tsx +28 -8
- package/dist/sdk/src/components/SelectionActionBar.tsx +383 -0
- package/dist/sdk/src/components/selectionId.ts +6 -0
- package/dist/sdk/src/hooks/useCollectionInteractions.ts +5 -2
- package/dist/sdk/src/runtime.ts +5 -0
- package/dist/sdk/src/space.ts +4 -0
- package/dist/sdk/src/ui/icons.tsx +11 -2
- package/dist/sdk/src/words/actions.ts +9 -1
- package/dist/sdk/src/words/keymap.ts +3 -0
- package/dist/space-harness/host.js +181 -141
- package/dist/space-sdk/dist/{chunk-BWHAORT4.js → chunk-BFGB6XXC.js} +2 -2
- package/dist/space-sdk/dist/index.js +2 -2
- package/dist/space-sdk/dist/ui.js +14 -11
- package/dist/space-sdk/src/components/NotisCommentBoundary.d.ts +0 -10
- package/dist/space-sdk/src/components/NotisSelectionBoundary.d.ts +7 -0
- package/dist/space-sdk/src/runtime.d.ts +5 -0
- package/dist/space-sdk/src/space.ts +4 -0
- package/dist/space-sdk/src/tailwind-candidates.d.ts +126 -17
- package/dist/space-sdk/src/ui/blocks/DataTable.d.ts +86 -0
- package/dist/space-sdk/src/ui/blocks/InfoTip.d.ts +25 -0
- package/dist/space-sdk/src/ui/blocks/Meter.d.ts +39 -0
- package/dist/space-sdk/src/ui/blocks/blocks.d.ts +1 -1
- package/dist/space-sdk/src/ui/blocks/index.d.ts +6 -0
- package/dist/space-sdk/src/ui/charts/Chart.d.ts +15 -2
- package/dist/space-sdk/src/ui/charts/StatRow.d.ts +4 -3
- package/dist/space-sdk/src/ui/charts/chartData.d.ts +6 -0
- package/dist/space-sdk/src/ui/comments/useComments.d.ts +19 -1
- package/dist/space-sdk/src/ui/icons.d.ts +1 -1
- package/dist/space-sdk/src/ui/index.d.ts +2 -2
- package/dist/space-sdk/src/ui/list/Row.d.ts +10 -3
- package/dist/space-sdk/src/ui/period/dateFormat.d.ts +14 -0
- package/dist/space-sdk/src/words/actions.ts +9 -1
- package/dist/space-sdk/src/words/keymap.ts +3 -0
- package/dist/view-renderer/dist/host.js +253 -213
- package/dist/view-renderer/src/renderer.js +38 -2
- package/package.json +3 -3
- package/src/command-specs/computer.js +3 -3
- package/src/command-specs/spaces.js +28 -8
- package/src/command-specs/tools.js +1 -1
- package/src/runtime/app-platform.js +74 -11
- package/src/runtime/space-fixture-broker.js +23 -2
- package/src/runtime/space-verification.js +62 -10
- package/template/components/ui/button.tsx +1 -1
- package/template/components/ui/native-select.tsx +1 -1
|
@@ -20,17 +20,7 @@ export interface NotisCommentBoundaryProps {
|
|
|
20
20
|
/** Replace the optional standard editor while retaining selection/context behavior. */
|
|
21
21
|
renderComment?: (props: NotisCommentBoxProps) => ReactNode;
|
|
22
22
|
}
|
|
23
|
-
type SelectionRect = Pick<DOMRect, 'left' | 'right' | 'top' | 'bottom'>;
|
|
24
|
-
/** Place the tile after the final selected line, otherwise below (or above near the viewport bottom). */
|
|
25
|
-
export declare function getCommentActionPosition(rects: SelectionRect[], viewport: {
|
|
26
|
-
width: number;
|
|
27
|
-
height: number;
|
|
28
|
-
}, rightBoundary?: number, trailing?: SelectionRect[]): {
|
|
29
|
-
left: number;
|
|
30
|
-
top: number;
|
|
31
|
-
};
|
|
32
23
|
/** Browser paragraph selection may include an adjacent block's empty starting boundary. */
|
|
33
24
|
export declare function getOwnedCommentRange(selected: Range, content: Element): Range | null;
|
|
34
25
|
/** Selection-to-chat convenience. No annotation database, polling or background attachment. */
|
|
35
26
|
export declare function NotisCommentBoundary({ resource, children, className, commentClassName, renderComment }: NotisCommentBoundaryProps): React.JSX.Element;
|
|
36
|
-
export {};
|
|
@@ -30,4 +30,11 @@ type QuoteRuntime = Pick<NotisRuntime, 'contextSource' | 'captureContextSelectio
|
|
|
30
30
|
* the custom MIME payload and renders a separate quote pill.
|
|
31
31
|
*/
|
|
32
32
|
export declare function NotisSelectionBoundary({ resource, children, className, style, }: NotisSelectionBoundaryProps): React.JSX.Element;
|
|
33
|
+
/** The resource a Space's own boundary names for the text in `range`, as copy would quote it; null outside one. */
|
|
34
|
+
export declare function quoteResourceFor(range: Range): ContextResource | null;
|
|
35
|
+
/**
|
|
36
|
+
* Cite for a Space (truth PRT-087): the selected text goes to chat as the quote copy would make, its Space as source
|
|
37
|
+
* and the boundary's resource when one names it. A Site's runtime has no chat, so it cites nothing.
|
|
38
|
+
*/
|
|
39
|
+
export declare function citeSpaceSelection(runtime: Pick<NotisRuntime, 'contextSource' | 'addContext'> | null, range: Range, text: string): Promise<boolean>;
|
|
33
40
|
export {};
|
|
@@ -162,6 +162,11 @@ export interface NotisRuntimeContext {
|
|
|
162
162
|
resourceId?: string | null;
|
|
163
163
|
/** Loading bones measured from this release at build time; `ViewSkeleton` draws them. Absent until the host has them. */
|
|
164
164
|
readonly skeleton?: NotisSpaceSkeleton;
|
|
165
|
+
/**
|
|
166
|
+
* The signed-in viewer's first name, for signing what they write (comments). Display only, never an identity
|
|
167
|
+
* or a permission. Absent for visitors of a Site or a link, and on hosts that predate it.
|
|
168
|
+
*/
|
|
169
|
+
readonly viewerName?: string | null;
|
|
165
170
|
}
|
|
166
171
|
export type ContextAttributeValue = string | number | boolean | null;
|
|
167
172
|
/**
|
|
@@ -537,6 +537,10 @@ export interface SpaceDefinition {
|
|
|
537
537
|
* moment, once that person allowed this Space's agents. Agents' own writes never wake anything.
|
|
538
538
|
*/
|
|
539
539
|
agents?: SpaceAgentDeclaration[];
|
|
540
|
+
/**
|
|
541
|
+
* Lists the database's records as sidebar rows under this Space. Only for a short list people navigate
|
|
542
|
+
* like pages (folders, chapters); a database that keeps growing belongs in the view's `shows` instead.
|
|
543
|
+
*/
|
|
540
544
|
collection?: { database: string; titleProperty: string; parentProperty?: string; allowCreate?: boolean };
|
|
541
545
|
/** Reproducible source dependencies not discovered by the module graph. */
|
|
542
546
|
sourceIncludes?: string[];
|