@notis_ai/cli 0.2.28 → 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/dist/agent-hooks/notis-agent-hook.mjs +451 -107
- package/dist/base-skills/notis-spaces/.notis-base-skill.json +1 -1
- package/dist/base-skills/notis-spaces/references/sdk.md +8 -1
- package/dist/sdk/src/components/NotisCommentBoundary.tsx +29 -96
- package/dist/sdk/src/components/NotisSelectionBoundary.tsx +3 -8
- package/dist/sdk/src/components/SelectionActionBar.tsx +144 -23
- package/dist/sdk/src/components/selectionId.ts +6 -0
- package/dist/sdk/src/runtime.ts +5 -0
- package/dist/space-harness/host.js +98 -96
- package/dist/space-sdk/dist/index.js +2 -2
- package/dist/space-sdk/dist/ui.js +7 -7
- package/dist/space-sdk/src/components/NotisCommentBoundary.d.ts +0 -10
- package/dist/space-sdk/src/runtime.d.ts +5 -0
- package/dist/space-sdk/src/tailwind-candidates.d.ts +13 -8
- package/dist/space-sdk/src/ui/comments/useComments.d.ts +19 -1
- package/dist/view-renderer/dist/host.js +167 -165
- package/dist/view-renderer/src/renderer.js +38 -2
- package/package.json +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
|
@@ -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 {};
|
|
@@ -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
|
/**
|
|
@@ -307,6 +307,7 @@ $$typeof
|
|
|
307
307
|
./runtime
|
|
308
308
|
./runtimeModules
|
|
309
309
|
./screens
|
|
310
|
+
./selectionId
|
|
310
311
|
./skeleton
|
|
311
312
|
./space
|
|
312
313
|
./spacePublicUI
|
|
@@ -320,7 +321,6 @@ $$typeof
|
|
|
320
321
|
./types
|
|
321
322
|
./ui/charts/RenderChartData
|
|
322
323
|
./ui/engine/KeyboardEngine
|
|
323
|
-
./ui/engine/hooks
|
|
324
324
|
./ui/engine/step
|
|
325
325
|
./useActions
|
|
326
326
|
./useAnimatedOrder
|
|
@@ -629,6 +629,7 @@ $$typeof
|
|
|
629
629
|
:focus-visible
|
|
630
630
|
:is(.nui-side-pane-main,
|
|
631
631
|
:scope
|
|
632
|
+
:where(tr)
|
|
632
633
|
<!doctype
|
|
633
634
|
</Button>
|
|
634
635
|
</span>
|
|
@@ -1014,6 +1015,7 @@ PassageField[],
|
|
|
1014
1015
|
Paste
|
|
1015
1016
|
Pause
|
|
1016
1017
|
PeriodPicker
|
|
1018
|
+
Person
|
|
1017
1019
|
Phosphor
|
|
1018
1020
|
Pick
|
|
1019
1021
|
Pictures
|
|
@@ -1222,7 +1224,6 @@ Zoom
|
|
|
1222
1224
|
[data-notis-bulk-divider]
|
|
1223
1225
|
[data-notis-collection-item-id],
|
|
1224
1226
|
[data-notis-comment-boundary]
|
|
1225
|
-
[data-notis-comment-ui],[data-notis-selection-ui]
|
|
1226
1227
|
[data-notis-content-skeleton],
|
|
1227
1228
|
[data-notis-escape-owned]
|
|
1228
1229
|
[data-notis-escape-owned][tabindex]
|
|
@@ -1296,6 +1297,7 @@ about
|
|
|
1296
1297
|
above
|
|
1297
1298
|
aboveBody
|
|
1298
1299
|
absolute
|
|
1300
|
+
accept
|
|
1299
1301
|
acceptent
|
|
1300
1302
|
account
|
|
1301
1303
|
action
|
|
@@ -1331,6 +1333,7 @@ allPages:
|
|
|
1331
1333
|
allow
|
|
1332
1334
|
allow()
|
|
1333
1335
|
allowed:
|
|
1336
|
+
alone;
|
|
1334
1337
|
already
|
|
1335
1338
|
also
|
|
1336
1339
|
alt
|
|
@@ -1490,6 +1493,7 @@ both.
|
|
|
1490
1493
|
bottom
|
|
1491
1494
|
boundary
|
|
1492
1495
|
box-shadow:
|
|
1496
|
+
box.
|
|
1493
1497
|
boxes
|
|
1494
1498
|
breadcrumb
|
|
1495
1499
|
breadcrumb={[{
|
|
@@ -1614,6 +1618,7 @@ cmp
|
|
|
1614
1618
|
coarse)
|
|
1615
1619
|
code
|
|
1616
1620
|
code:
|
|
1621
|
+
code?:
|
|
1617
1622
|
col
|
|
1618
1623
|
col-resize
|
|
1619
1624
|
colgroup
|
|
@@ -1653,6 +1658,7 @@ commentaires.
|
|
|
1653
1658
|
commented
|
|
1654
1659
|
commenter.
|
|
1655
1660
|
comments
|
|
1661
|
+
comments,
|
|
1656
1662
|
comments.
|
|
1657
1663
|
comment…
|
|
1658
1664
|
commit
|
|
@@ -1671,7 +1677,6 @@ confirmed
|
|
|
1671
1677
|
confirmer
|
|
1672
1678
|
const
|
|
1673
1679
|
contain
|
|
1674
|
-
contain;
|
|
1675
1680
|
container
|
|
1676
1681
|
containerRef
|
|
1677
1682
|
contains
|
|
@@ -1881,6 +1886,7 @@ draft-
|
|
|
1881
1886
|
drafted
|
|
1882
1887
|
drag
|
|
1883
1888
|
draggable
|
|
1889
|
+
draws
|
|
1884
1890
|
droite
|
|
1885
1891
|
droite)
|
|
1886
1892
|
dropFiles
|
|
@@ -2241,7 +2247,6 @@ inline-flex
|
|
|
2241
2247
|
input
|
|
2242
2248
|
input,
|
|
2243
2249
|
input,textarea
|
|
2244
|
-
input,textarea,button,[contenteditable],[data-notis-comment-ui]
|
|
2245
2250
|
input,textarea,select,[contenteditable=
|
|
2246
2251
|
input,textarea,select,[contenteditable]:not([contenteditable=
|
|
2247
2252
|
input:not([disabled]),
|
|
@@ -2592,6 +2597,7 @@ nokeys
|
|
|
2592
2597
|
non
|
|
2593
2598
|
none
|
|
2594
2599
|
none)
|
|
2600
|
+
none:
|
|
2595
2601
|
none;
|
|
2596
2602
|
nonote
|
|
2597
2603
|
noopener
|
|
@@ -3168,6 +3174,7 @@ onAdd
|
|
|
3168
3174
|
onBack
|
|
3169
3175
|
onChange
|
|
3170
3176
|
onChange:
|
|
3177
|
+
onCite
|
|
3171
3178
|
onClear
|
|
3172
3179
|
onClearSelection
|
|
3173
3180
|
onClick={()
|
|
@@ -3251,13 +3258,11 @@ overflow
|
|
|
3251
3258
|
overflow-y:
|
|
3252
3259
|
overflow:
|
|
3253
3260
|
overlay
|
|
3254
|
-
overscroll-behavior:
|
|
3255
3261
|
own
|
|
3256
3262
|
own:
|
|
3257
3263
|
owner
|
|
3258
3264
|
owner>
|
|
3259
3265
|
où
|
|
3260
|
-
p,li,h1,h2,h3,h4,h5,h6,td,th,div
|
|
3261
3266
|
p,li,h1,h2,h3,h4,h5,h6,td,th,pre,blockquote,div
|
|
3262
3267
|
p-2.5
|
|
3263
3268
|
p-8
|
|
@@ -3875,12 +3880,10 @@ textarea:not([disabled]),
|
|
|
3875
3880
|
textbox
|
|
3876
3881
|
texte
|
|
3877
3882
|
texte.
|
|
3878
|
-
th
|
|
3879
3883
|
than
|
|
3880
3884
|
that
|
|
3881
3885
|
that.
|
|
3882
3886
|
the
|
|
3883
|
-
thead
|
|
3884
3887
|
their
|
|
3885
3888
|
then
|
|
3886
3889
|
there
|
|
@@ -3958,6 +3961,7 @@ true,
|
|
|
3958
3961
|
true;
|
|
3959
3962
|
truncate
|
|
3960
3963
|
try
|
|
3964
|
+
try:
|
|
3961
3965
|
trying
|
|
3962
3966
|
tsx
|
|
3963
3967
|
tu
|
|
@@ -4260,6 +4264,7 @@ zoom
|
|
|
4260
4264
|
{who}:
|
|
4261
4265
|
|((?:\\.|[^)\\])*))\s*\)|@import\s+(?:
|
|
4262
4266
|
})).job_id
|
|
4267
|
+
}).code
|
|
4263
4268
|
}).format(date)}
|
|
4264
4269
|
}</Button>;
|
|
4265
4270
|
Ça
|
|
@@ -73,7 +73,11 @@ export interface UseCommentsOptions {
|
|
|
73
73
|
anchors?: readonly CommentAnchor[];
|
|
74
74
|
/** The anchor on screen (its record key): the pane's "this item" filter and where pins are placed. */
|
|
75
75
|
anchorKey?: string | null;
|
|
76
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* The person using the Space; their comments count as changes and never as new activity. Default: the viewer's
|
|
78
|
+
* first name from the host, and when the Author column refuses it (a choice list without that name) "Person",
|
|
79
|
+
* then no author. Pass it to sign comments with a fixed name.
|
|
80
|
+
*/
|
|
77
81
|
me?: string;
|
|
78
82
|
/** Authors the Author select knows; anyone else reads as `fallbackAuthor`. Default: any name. */
|
|
79
83
|
authors?: readonly string[];
|
|
@@ -166,6 +170,11 @@ export interface CommentController {
|
|
|
166
170
|
say(key: CommentWordKey, vars?: Readonly<Record<string, string | number>>): string;
|
|
167
171
|
locale: Locale;
|
|
168
172
|
me: string;
|
|
173
|
+
/**
|
|
174
|
+
* Runs one comment write signed by the viewer: with the default author, a write the Author column refuses as a
|
|
175
|
+
* choice is tried again as "Person", then without an author, and the author that worked is kept for the session.
|
|
176
|
+
*/
|
|
177
|
+
signed<T>(write: (author: string | null) => Promise<T>): Promise<T>;
|
|
169
178
|
/** Opens an agent's thread in the side chat; undefined on hosts without one. */
|
|
170
179
|
openThread?: (threadId: string) => void;
|
|
171
180
|
loading: boolean;
|
|
@@ -173,4 +182,13 @@ export interface CommentController {
|
|
|
173
182
|
error: Error | null;
|
|
174
183
|
refetch(): Promise<unknown>;
|
|
175
184
|
}
|
|
185
|
+
/** The neutral author a Comments database's choice list can offer for anyone it does not name. */
|
|
186
|
+
export declare const COMMENT_PERSON_AUTHOR = "Person";
|
|
187
|
+
/**
|
|
188
|
+
* Who signs the viewer's comments, in the order to try: a fixed `me` alone; else the viewer's first name (when the
|
|
189
|
+
* known `authors` include it, or none are given), then "Person". Never a name that belongs to someone else.
|
|
190
|
+
*/
|
|
191
|
+
export declare function commentAuthorCandidates(fixed: string | undefined, viewerName: string | null, authors?: readonly string[]): string[];
|
|
192
|
+
/** The Author column refused the name: it is a choice list without that option. */
|
|
193
|
+
export declare function isRefusedChoice(error: unknown): boolean;
|
|
176
194
|
export declare function useComments(options?: UseCommentsOptions): CommentController;
|