@notis_ai/cli 0.2.26 → 0.2.28
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 +84 -14
- 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/context.md +3 -0
- package/dist/base-skills/notis-spaces/references/design.md +11 -45
- package/dist/base-skills/notis-spaces/references/sdk.md +86 -67
- package/dist/base-skills/notis-spaces/references/views.md +12 -1
- package/dist/sdk/src/components/NotisCommentBoundary.tsx +43 -16
- package/dist/sdk/src/components/NotisSelectionBoundary.tsx +105 -26
- package/dist/sdk/src/components/SelectionActionBar.tsx +262 -0
- package/dist/sdk/src/hooks/useCollectionInteractions.ts +5 -2
- 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/skill-sync/index.js +81 -11
- package/dist/skill-sync-worker.mjs +87 -12
- package/dist/space-harness/host.js +172 -134
- 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/NotisSelectionBoundary.d.ts +26 -2
- package/dist/space-sdk/src/space.ts +4 -0
- package/dist/space-sdk/src/tailwind-candidates.d.ts +124 -14
- 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/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 +243 -205
- package/dist/view-renderer/src/dom.js +15 -2
- package/package.json +3 -3
- package/skills/notis-cli/AGENT_INSTRUCTIONS.md +1 -1
- package/src/command-specs/computer.js +3 -3
- package/src/runtime/skill-sync/cloud-client.ts +98 -15
- package/src/runtime/skill-sync/index.ts +22 -3
- package/src/runtime/skill-sync/types.ts +4 -0
- package/src/skill-sync-worker.js +5 -1
- package/template/components/ui/button.tsx +1 -1
- package/template/components/ui/native-select.tsx +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CSSProperties, ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, ClipboardEvent, ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { ContextResource } from '../runtime';
|
|
3
|
+
import type { ContextResource, ContextSelection, NotisRuntime } from '../runtime';
|
|
4
4
|
export declare const NOTIS_CONTEXT_CLIPBOARD_TYPE = "application/x-notis-context+json";
|
|
5
5
|
export interface NotisSelectionBoundaryProps {
|
|
6
6
|
resource?: ContextResource | null;
|
|
@@ -8,9 +8,33 @@ export interface NotisSelectionBoundaryProps {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
style?: CSSProperties;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Adds the copied passage as a Notis quote to a copy event that started inside
|
|
13
|
+
* `event.currentTarget`, and returns that quote (null when nothing inside was
|
|
14
|
+
* copied). Text in a rich editor (a Space's MarkdownEditor, Skill and automation
|
|
15
|
+
* instructions) is quoted too: the editor already wrote its own formats, so they
|
|
16
|
+
* stay as written and the quote reads the editor's plain text. Form fields keep
|
|
17
|
+
* plain copy.
|
|
18
|
+
*/
|
|
19
|
+
export declare function addCopiedSelectionToClipboard(event: ClipboardEvent<HTMLElement>, context?: Omit<ContextSelection, 'id' | 'text'>): ContextSelection | null;
|
|
20
|
+
/**
|
|
21
|
+
* The Space-wide default every view gets from its host: text copied anywhere in
|
|
22
|
+
* the view quotes as the Space itself (its name on the pill, the view as source).
|
|
23
|
+
* A NotisSelectionBoundary inside the view quotes first and names its own resource.
|
|
24
|
+
*/
|
|
25
|
+
export declare function copySpaceSelection(event: ClipboardEvent<HTMLElement>, runtime: QuoteRuntime | null): void;
|
|
26
|
+
type QuoteRuntime = Pick<NotisRuntime, 'contextSource' | 'captureContextSelection'>;
|
|
11
27
|
/**
|
|
12
28
|
* Adds structured provenance to ordinary copied text. Pasting still works in
|
|
13
29
|
* every app because `text/plain` is preserved; Notis chat additionally reads
|
|
14
30
|
* the custom MIME payload and renders a separate quote pill.
|
|
15
31
|
*/
|
|
16
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>;
|
|
40
|
+
export {};
|
|
@@ -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[];
|