@dreamlake/dreamlake-cli 0.97.2 → 0.99.0
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/api/client.d.ts +1 -1
- package/dist/api/client.js +4 -4
- package/dist/api/http.d.ts +48 -1
- package/dist/api/http.js +111 -4
- package/dist/api/index.d.ts +217 -511
- package/dist/api/index.js +12 -2
- package/dist/api/native-experiments.d.ts +77 -0
- package/dist/api/native-experiments.js +31 -0
- package/dist/api/note-edits.d.ts +40 -2
- package/dist/api/note-edits.js +197 -2
- package/dist/api/note-events.d.ts +40 -4
- package/dist/api/note-events.js +55 -2
- package/dist/api/note-facade.d.ts +268 -0
- package/dist/api/note-facade.js +376 -0
- package/dist/api/note-reading.d.ts +27 -0
- package/dist/api/note-reading.js +27 -0
- package/dist/api/note-write.d.ts +110 -0
- package/dist/api/note-write.js +217 -0
- package/dist/api/notes.d.ts +33 -44
- package/dist/api/notes.js +44 -34
- package/dist/api/sessions.d.ts +240 -7
- package/dist/api/sessions.js +56 -1
- package/dist/api/skills.d.ts +122 -0
- package/dist/api/skills.js +220 -0
- package/dist/cli/client.d.ts +2 -41
- package/dist/cli/client.js +13 -90
- package/dist/cli/experiments/index.js +2 -0
- package/dist/cli/experiments/native-commands.d.ts +13 -0
- package/dist/cli/experiments/native-commands.js +88 -0
- package/dist/cli/help-examples.generated.js +23 -6
- package/dist/cli/index.js +2 -0
- package/dist/cli/notes/api-transport.js +6 -6
- package/dist/cli/notes/document.d.ts +32 -26
- package/dist/cli/notes/document.js +150 -95
- package/dist/cli/notes/edit-commands.d.ts +26 -5
- package/dist/cli/notes/edit-commands.js +163 -36
- package/dist/cli/notes/events.d.ts +3 -33
- package/dist/cli/notes/events.js +4 -51
- package/dist/cli/notes/html-read.d.ts +6 -0
- package/dist/cli/notes/html-read.js +12 -0
- package/dist/cli/notes/index.d.ts +10 -1
- package/dist/cli/notes/index.js +98 -27
- package/dist/cli/notes/move-command.d.ts +4 -0
- package/dist/cli/notes/move-command.js +7 -0
- package/dist/cli/session-affiliation.js +3 -2
- package/dist/cli/sessions/affiliation.d.ts +12 -1
- package/dist/cli/sessions/affiliation.js +37 -0
- package/dist/cli/sessions/control.d.ts +11 -0
- package/dist/cli/sessions/control.js +49 -4
- package/dist/cli/sessions/index.js +70 -17
- package/dist/cli/sessions/live.d.ts +85 -0
- package/dist/cli/sessions/live.js +258 -0
- package/dist/cli/sessions/runner/exec.d.ts +118 -6
- package/dist/cli/sessions/runner/exec.js +298 -47
- package/dist/cli/sessions/runner/native.js +4 -1
- package/dist/cli/sessions/runner/serve.d.ts +37 -2
- package/dist/cli/sessions/runner/serve.js +273 -28
- package/dist/cli/sessions/wrap.d.ts +63 -0
- package/dist/cli/sessions/wrap.js +226 -0
- package/dist/cli/skill/index.d.ts +19 -1
- package/dist/cli/skill/index.js +65 -12
- package/dist/cli/skill/read.d.ts +25 -0
- package/dist/cli/skill/read.js +65 -0
- package/dist/cli/skill/registry.d.ts +95 -0
- package/dist/cli/skill/registry.js +284 -0
- package/dist/cli/skill/reminders.js +2 -1
- package/dist/cli/vault/sshTransfer.d.ts +1 -1
- package/dist/cli/version.d.ts +1 -1
- package/dist/cli/version.js +1 -1
- package/package.json +9 -9
package/dist/api/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as browser from "./browser.js";
|
|
|
6
6
|
export * from "./browser.js";
|
|
7
7
|
export * from "./registered-runs.js";
|
|
8
8
|
export * from "./streams.js";
|
|
9
|
+
export * from "./native-experiments.js";
|
|
9
10
|
export * from "./platform.js";
|
|
10
11
|
export * from "./vault.js";
|
|
11
12
|
export * from "./access.js";
|
|
@@ -26,6 +27,7 @@ export * from "./client.js";
|
|
|
26
27
|
export * from "./sessions.js";
|
|
27
28
|
export * from "./notes.js";
|
|
28
29
|
export * from "./agent.js";
|
|
30
|
+
export * from "./skills.js";
|
|
29
31
|
/** TypeScript operations use an explicit transport; importing does not execute CLI startup. */
|
|
30
32
|
export declare function createApi(transport: Transport): {
|
|
31
33
|
transport: Transport;
|
|
@@ -157,6 +159,72 @@ export declare function createApi(transport: Transport): {
|
|
|
157
159
|
};
|
|
158
160
|
};
|
|
159
161
|
};
|
|
162
|
+
experiments: (namespace: string, project: string) => {
|
|
163
|
+
status: () => Promise<unknown>;
|
|
164
|
+
session: (mode: "read" | "write") => Promise<{
|
|
165
|
+
token: string;
|
|
166
|
+
expiresAt: number;
|
|
167
|
+
apiUrl: string;
|
|
168
|
+
provider: string;
|
|
169
|
+
}>;
|
|
170
|
+
create: (key: string) => Promise<{
|
|
171
|
+
experiment: import("./native-experiments.js").NativeExperimentRun;
|
|
172
|
+
}>;
|
|
173
|
+
list: (query?: {
|
|
174
|
+
limit?: number;
|
|
175
|
+
cursor?: string;
|
|
176
|
+
includeArchived?: boolean;
|
|
177
|
+
}) => Promise<{
|
|
178
|
+
runs: import("./native-experiments.js").NativeExperimentRun[];
|
|
179
|
+
hasMore: boolean;
|
|
180
|
+
nextCursor: string | null;
|
|
181
|
+
}>;
|
|
182
|
+
get: (id: string) => Promise<{
|
|
183
|
+
experiment: import("./native-experiments.js").NativeExperimentRun;
|
|
184
|
+
}>;
|
|
185
|
+
trash: (query?: {
|
|
186
|
+
limit?: number;
|
|
187
|
+
cursor?: string;
|
|
188
|
+
}) => Promise<{
|
|
189
|
+
runs: import("./native-experiments.js").NativeExperimentRun[];
|
|
190
|
+
hasMore: boolean;
|
|
191
|
+
nextCursor: string | null;
|
|
192
|
+
}>;
|
|
193
|
+
delete: (id: string) => Promise<{
|
|
194
|
+
experiment: import("./native-experiments.js").NativeExperimentRun;
|
|
195
|
+
}>;
|
|
196
|
+
restoreDeleted: (id: string) => Promise<{
|
|
197
|
+
experiment: import("./native-experiments.js").NativeExperimentRun;
|
|
198
|
+
}>;
|
|
199
|
+
archive: (id: string, archived: boolean) => Promise<{
|
|
200
|
+
experiment: import("./native-experiments.js").NativeExperimentRun;
|
|
201
|
+
}>;
|
|
202
|
+
parameters: {
|
|
203
|
+
get: (id: string) => Promise<unknown>;
|
|
204
|
+
set: (id: string, data: Record<string, unknown>) => Promise<unknown>;
|
|
205
|
+
};
|
|
206
|
+
logs: {
|
|
207
|
+
list: (id: string, query?: {
|
|
208
|
+
limit?: number;
|
|
209
|
+
cursor?: string;
|
|
210
|
+
}) => Promise<unknown>;
|
|
211
|
+
append: (id: string, entries: Array<{
|
|
212
|
+
timestamp: string;
|
|
213
|
+
level: string;
|
|
214
|
+
message: string;
|
|
215
|
+
metadata?: unknown;
|
|
216
|
+
}>) => Promise<unknown>;
|
|
217
|
+
};
|
|
218
|
+
metrics: {
|
|
219
|
+
list: (id: string) => Promise<unknown>;
|
|
220
|
+
rows: (id: string, name: string, query?: {
|
|
221
|
+
limit?: number;
|
|
222
|
+
cursor?: string;
|
|
223
|
+
}) => Promise<unknown>;
|
|
224
|
+
append: (id: string, name: string, dataPoints: Record<string, unknown>[]) => Promise<unknown>;
|
|
225
|
+
};
|
|
226
|
+
setStatus: (id: string, status: "RUNNING" | "COMPLETED" | "FAILED" | "CANCELLED") => Promise<unknown>;
|
|
227
|
+
};
|
|
160
228
|
machine: {
|
|
161
229
|
self: () => Promise<unknown>;
|
|
162
230
|
host: (id: string) => Promise<unknown>;
|
|
@@ -394,6 +462,23 @@ export declare function createApi(transport: Transport): {
|
|
|
394
462
|
}>;
|
|
395
463
|
rename: (sessionId: string, name: string) => Promise<import("./sessions.js").Session>;
|
|
396
464
|
archive: (sessionId: string, archived: boolean) => Promise<import("./sessions.js").Session>;
|
|
465
|
+
permission: (sessionId: string, input: {
|
|
466
|
+
permissionLevel: import("./sessions.js").PermissionLevel;
|
|
467
|
+
reason?: string;
|
|
468
|
+
raise?: boolean;
|
|
469
|
+
}) => Promise<{
|
|
470
|
+
session: import("./sessions.js").Session;
|
|
471
|
+
changed: boolean;
|
|
472
|
+
}>;
|
|
473
|
+
tree: (sessionId: string) => Promise<import("./sessions.js").SessionTree>;
|
|
474
|
+
watch: (query?: {
|
|
475
|
+
sessionId?: string;
|
|
476
|
+
}, signal?: AbortSignal) => AsyncGenerator<import("./sessions.js").WatchEvent>;
|
|
477
|
+
heartbeat: (sessionId: string, input: import("./sessions.js").HeartbeatInput) => Promise<import("./sessions.js").HeartbeatResult>;
|
|
478
|
+
event: (sessionId: string, input: import("./sessions.js").SessionEventInput) => Promise<{
|
|
479
|
+
sessionId: string;
|
|
480
|
+
subagent: import("./sessions.js").SubagentNode;
|
|
481
|
+
}>;
|
|
397
482
|
register: (input: {
|
|
398
483
|
provider: import("./sessions.js").Provider;
|
|
399
484
|
nativeSessionId: string;
|
|
@@ -427,20 +512,24 @@ export declare function createApi(transport: Transport): {
|
|
|
427
512
|
}) => Promise<{
|
|
428
513
|
commands: import("./sessions.js").Command[];
|
|
429
514
|
}>;
|
|
430
|
-
get: (commandId: string, wait?: number
|
|
431
|
-
|
|
432
|
-
|
|
515
|
+
get: (commandId: string, wait?: number, options?: {
|
|
516
|
+
signal?: AbortSignal;
|
|
517
|
+
timeoutMs?: number;
|
|
518
|
+
}) => Promise<import("./sessions.js").Command<"start" | "stop" | "restart" | "status" | "resume" | "send" | "sync" | "subagents">>;
|
|
519
|
+
wait: (commandId: string, seconds: number, signal?: AbortSignal) => Promise<import("./sessions.js").Command<"start" | "stop" | "restart" | "status" | "resume" | "send" | "sync" | "subagents">>;
|
|
520
|
+
cancel: (commandId: string) => Promise<import("./sessions.js").Command<"start" | "stop" | "restart" | "status" | "resume" | "send" | "sync" | "subagents">>;
|
|
433
521
|
renew: (commandId: string, runnerId: string, leaseToken: string) => Promise<{
|
|
434
522
|
leaseMs: number;
|
|
435
523
|
cancelRequested?: boolean;
|
|
436
524
|
}>;
|
|
437
|
-
reconcile: (commandId: string, runnerId: string, observation: Record<string, unknown>) => Promise<import("./sessions.js").Command<"
|
|
438
|
-
finish: (commandId: string, runnerId: string, receipt: import("./sessions.js").CommandReceipt) => Promise<import("./sessions.js").Command<"
|
|
525
|
+
reconcile: (commandId: string, runnerId: string, observation: Record<string, unknown>) => Promise<import("./sessions.js").Command<"start" | "stop" | "restart" | "status" | "resume" | "send" | "sync" | "subagents">>;
|
|
526
|
+
finish: (commandId: string, runnerId: string, receipt: import("./sessions.js").CommandReceipt) => Promise<import("./sessions.js").Command<"start" | "stop" | "restart" | "status" | "resume" | "send" | "sync" | "subagents">>;
|
|
439
527
|
};
|
|
440
528
|
runners: {
|
|
441
529
|
list: () => Promise<import("./sessions.js").Runner[]>;
|
|
442
530
|
register: (input: import("./sessions.js").RunnerRegistration) => Promise<import("./sessions.js").Runner>;
|
|
443
531
|
claim: (runnerId: string, seconds: number, signal?: AbortSignal) => Promise<import("./sessions.js").ClaimedCommand | null>;
|
|
532
|
+
deregister: (runnerId: string) => Promise<import("./sessions.js").Runner | null>;
|
|
444
533
|
};
|
|
445
534
|
};
|
|
446
535
|
terminal: (namespace: string) => {
|
|
@@ -473,256 +562,19 @@ export declare function createApi(transport: Transport): {
|
|
|
473
562
|
}) => Promise<unknown>;
|
|
474
563
|
managed: (id: string, action: "status" | "start" | "reconnect" | "stop", input: Record<string, unknown>) => Promise<unknown>;
|
|
475
564
|
};
|
|
476
|
-
notes: (
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
patch: (noteId: string, input: import("./note-edits.js").NotePatch) => Promise<{
|
|
490
|
-
note: string;
|
|
491
|
-
hash: string;
|
|
492
|
-
revision: string;
|
|
493
|
-
baseRevision: string;
|
|
494
|
-
mode: "exact" | "merge";
|
|
495
|
-
}>;
|
|
496
|
-
replaceContent: (noteId: string, baseRevision: string, content: string, mode?: "exact" | "merge") => Promise<{
|
|
497
|
-
note: string;
|
|
498
|
-
hash: string;
|
|
499
|
-
revision: string;
|
|
500
|
-
baseRevision: string;
|
|
501
|
-
mode: "exact" | "merge";
|
|
502
|
-
}>;
|
|
503
|
-
replace: (noteId: string, baseRevision: string, text: string, where: import("./note-editing.js").Where, mode?: "exact" | "merge") => Promise<{
|
|
504
|
-
note: string;
|
|
505
|
-
hash: string;
|
|
506
|
-
revision: string;
|
|
507
|
-
baseRevision: string;
|
|
508
|
-
mode: "exact" | "merge";
|
|
509
|
-
}>;
|
|
510
|
-
insert: (noteId: string, baseRevision: string, text: string, where: {
|
|
511
|
-
line?: number;
|
|
512
|
-
ind?: number;
|
|
513
|
-
}, mode?: "exact" | "merge") => Promise<{
|
|
514
|
-
note: string;
|
|
515
|
-
hash: string;
|
|
516
|
-
revision: string;
|
|
517
|
-
baseRevision: string;
|
|
518
|
-
mode: "exact" | "merge";
|
|
519
|
-
}>;
|
|
520
|
-
removeText: (noteId: string, baseRevision: string, where: import("./note-editing.js").Where, mode?: "exact" | "merge") => Promise<{
|
|
521
|
-
note: string;
|
|
522
|
-
hash: string;
|
|
523
|
-
revision: string;
|
|
524
|
-
baseRevision: string;
|
|
525
|
-
mode: "exact" | "merge";
|
|
526
|
-
}>;
|
|
527
|
-
findInSource: (noteId: string, at: string, query?: string, options?: import("./note-editing.js").FindOpts) => Promise<{
|
|
528
|
-
matches: import("./note-editing.js").Match[];
|
|
529
|
-
note: string;
|
|
530
|
-
content: string;
|
|
531
|
-
hash: string;
|
|
532
|
-
revision: string;
|
|
533
|
-
}>;
|
|
534
|
-
outline: (noteId: string, at?: string) => Promise<{
|
|
535
|
-
note: string;
|
|
536
|
-
revision: string;
|
|
537
|
-
hash: string;
|
|
538
|
-
entries: import("./note-toc.js").TocEntry[];
|
|
539
|
-
}>;
|
|
540
|
-
get: (noteId: string) => Promise<import("./notes.js").NoteRow & {
|
|
541
|
-
namespaceSlug: string;
|
|
542
|
-
permissions: Record<string, boolean>;
|
|
543
|
-
}>;
|
|
544
|
-
archive: (noteId: string) => Promise<import("./notes.js").NoteRow>;
|
|
545
|
-
unarchive: (noteId: string) => Promise<import("./notes.js").NoteRow>;
|
|
546
|
-
delete: (noteId: string) => Promise<unknown>;
|
|
547
|
-
shared: (query?: {
|
|
548
|
-
includeArchived?: boolean;
|
|
549
|
-
}) => Promise<{
|
|
550
|
-
notes: import("./notes.js").NoteRow[];
|
|
551
|
-
}>;
|
|
552
|
-
projects: (noteId: string, view?: "nodes") => Promise<unknown>;
|
|
553
|
-
move: (noteId: string, input: {
|
|
554
|
-
namespace: string;
|
|
555
|
-
projects: string[];
|
|
556
|
-
dryRun?: boolean;
|
|
557
|
-
}) => Promise<unknown>;
|
|
558
|
-
share: (noteId: string) => {
|
|
559
|
-
get: () => Promise<Record<string, unknown>>;
|
|
560
|
-
create: (role?: "read" | "write") => Promise<unknown>;
|
|
561
|
-
revoke: (revokeAccepted?: boolean) => Promise<unknown>;
|
|
562
|
-
visibility: (visibility: "private" | "public" | "team") => Promise<unknown>;
|
|
563
|
-
access: () => Promise<unknown>;
|
|
564
|
-
remove: (userId: string) => Promise<unknown>;
|
|
565
|
-
};
|
|
566
|
-
files: (noteId: string) => {
|
|
567
|
-
list: (query?: import("./note-files.js").NoteFileListOptions) => Promise<import("./note-files.js").NoteFilePage>;
|
|
568
|
-
get: (id: string) => Promise<import("./note-files.js").NoteFile>;
|
|
569
|
-
resolve: (ref: string, includeTrashed?: boolean) => Promise<import("./note-files.js").NoteFile>;
|
|
570
|
-
text: (ref: string) => Promise<{
|
|
571
|
-
text: string;
|
|
572
|
-
etag: string;
|
|
573
|
-
}>;
|
|
574
|
-
cat: (ref: string) => Promise<{
|
|
575
|
-
text: string;
|
|
576
|
-
etag: string;
|
|
577
|
-
}>;
|
|
578
|
-
download: (ref: string, signal?: AbortSignal) => Promise<Response>;
|
|
579
|
-
upload: (path: string, body: NonNullable<import("./client.js").RequestOptions["body"]> | import("stream").Readable, options?: {
|
|
580
|
-
contentType?: string;
|
|
581
|
-
overwrite?: boolean;
|
|
582
|
-
ifMatch?: string;
|
|
583
|
-
contentLength?: number;
|
|
584
|
-
signal?: AbortSignal;
|
|
585
|
-
}) => Promise<import("./note-files.js").NoteFile>;
|
|
586
|
-
write: (input: {
|
|
587
|
-
path: string;
|
|
588
|
-
text: string;
|
|
589
|
-
overwrite?: boolean;
|
|
590
|
-
contentType?: string;
|
|
591
|
-
}, options?: {
|
|
592
|
-
ifMatch?: string;
|
|
593
|
-
idempotencyKey?: string;
|
|
594
|
-
}) => Promise<import("./note-files.js").NoteFileWriteReceipt>;
|
|
595
|
-
move: (ref: string, path: string, options?: {
|
|
596
|
-
overwrite?: boolean;
|
|
597
|
-
ifMatch?: string;
|
|
598
|
-
}) => Promise<import("./note-files.js").NoteFile>;
|
|
599
|
-
copy: (ref: string, path: string, options?: {
|
|
600
|
-
overwrite?: boolean;
|
|
601
|
-
idempotencyKey?: string;
|
|
602
|
-
}) => Promise<import("./note-files.js").NoteFileWriteReceipt>;
|
|
603
|
-
operation: (operationId: string, action?: "status" | "reconcile" | "cancel") => Promise<import("./note-files.js").NoteFileOperationReceipt>;
|
|
604
|
-
status: (id: string) => Promise<import("./note-files.js").NoteFileOperationReceipt>;
|
|
605
|
-
reconcile: (id: string) => Promise<import("./note-files.js").NoteFileOperationReceipt>;
|
|
606
|
-
cancel: (id: string) => Promise<import("./note-files.js").NoteFileOperationReceipt>;
|
|
607
|
-
delete: (ref: string, options?: {
|
|
608
|
-
purge?: boolean;
|
|
609
|
-
ifMatch?: string;
|
|
610
|
-
}) => Promise<{
|
|
611
|
-
id: string;
|
|
612
|
-
purged: boolean;
|
|
613
|
-
}>;
|
|
614
|
-
restore: (ref: string, path?: string) => Promise<import("./note-files.js").NoteFile>;
|
|
615
|
-
preview: (ref: string, share?: boolean) => Promise<import("./note-files.js").NoteFilePreview>;
|
|
616
|
-
revokePreview: (ref: string) => Promise<{
|
|
617
|
-
id: string;
|
|
618
|
-
shared: boolean;
|
|
619
|
-
}>;
|
|
620
|
-
};
|
|
621
|
-
media: (form: FormData) => Promise<import("./notes.js").NoteMediaReceipt>;
|
|
622
|
-
read: (noteId: string, query?: import("./common.js").Query) => Promise<import("./notes.js").NoteReadResult>;
|
|
623
|
-
readView: (noteId: string, options?: import("./note-reading.js").NoteReadingOptions) => Promise<import("./note-reading.js").NoteReadingPage>;
|
|
624
|
-
html: (noteId: string, options?: {
|
|
625
|
-
at?: string;
|
|
626
|
-
section?: string;
|
|
627
|
-
toc?: boolean;
|
|
628
|
-
tag?: string;
|
|
629
|
-
ifMatch?: string;
|
|
630
|
-
}) => Promise<{
|
|
631
|
-
note: string;
|
|
632
|
-
revision: string;
|
|
633
|
-
html: string;
|
|
634
|
-
bytes: Uint8Array<ArrayBuffer>;
|
|
635
|
-
}>;
|
|
636
|
-
diff: (noteId: string, query: {
|
|
637
|
-
from?: string;
|
|
638
|
-
to?: string;
|
|
639
|
-
since?: string;
|
|
640
|
-
format?: "diff" | "inline-dff";
|
|
641
|
-
}) => Promise<unknown>;
|
|
642
|
-
saveVersion: (noteId: string, input: {
|
|
643
|
-
hash: string;
|
|
644
|
-
tag?: string;
|
|
645
|
-
summary?: string;
|
|
646
|
-
parentId?: string;
|
|
647
|
-
}) => Promise<unknown>;
|
|
648
|
-
find: (query: {
|
|
649
|
-
q: string;
|
|
650
|
-
note?: string;
|
|
651
|
-
cursor?: string;
|
|
652
|
-
limit?: number;
|
|
653
|
-
includeArchived?: boolean;
|
|
654
|
-
caseSensitive?: boolean;
|
|
655
|
-
glob?: string;
|
|
656
|
-
regex?: string;
|
|
657
|
-
flags?: string;
|
|
658
|
-
context?: string;
|
|
659
|
-
}) => Promise<import("./notes.js").NoteSearchPage>;
|
|
660
|
-
create: (input: {
|
|
661
|
-
name: string;
|
|
662
|
-
summary?: string;
|
|
663
|
-
projects?: string[];
|
|
664
|
-
visibility?: "private" | "public";
|
|
665
|
-
}) => Promise<{
|
|
666
|
-
note: import("./notes.js").NoteRow;
|
|
667
|
-
rtc: {
|
|
668
|
-
rtcDocId: string;
|
|
669
|
-
};
|
|
670
|
-
}>;
|
|
671
|
-
edit: (noteId: string, baseRevision: string, edits: import("./note-edits.js").NoteEdit[], mode?: "merge" | "exact") => Promise<{
|
|
672
|
-
note: string;
|
|
673
|
-
hash: string;
|
|
674
|
-
revision: string;
|
|
675
|
-
baseRevision: string;
|
|
676
|
-
mode: "exact" | "merge";
|
|
677
|
-
}>;
|
|
678
|
-
versions: (noteId: string, query?: {
|
|
679
|
-
before?: string;
|
|
680
|
-
}) => Promise<{
|
|
681
|
-
versions: import("./notes.js").NoteVersion[];
|
|
682
|
-
nextCursor?: string | null;
|
|
683
|
-
}>;
|
|
684
|
-
version: (noteId: string, versionId: string) => Promise<import("./notes.js").NoteVersion>;
|
|
685
|
-
list: (query?: {
|
|
686
|
-
q?: string;
|
|
687
|
-
limit?: number;
|
|
688
|
-
offset?: number;
|
|
689
|
-
includeArchived?: boolean;
|
|
690
|
-
}) => Promise<{
|
|
691
|
-
notes: import("./notes.js").NoteRow[];
|
|
692
|
-
}>;
|
|
693
|
-
search: (q: string, limit?: number, offset?: number, options?: {
|
|
694
|
-
includeArchived?: boolean;
|
|
695
|
-
}) => Promise<{
|
|
696
|
-
notes: import("./notes.js").NoteRow[];
|
|
697
|
-
total: number;
|
|
698
|
-
}>;
|
|
699
|
-
body: (noteId: string) => Promise<import("./notes.js").NoteBody>;
|
|
700
|
-
sections: (noteId: string) => Promise<{
|
|
701
|
-
sections: import("./notes.js").Section[];
|
|
702
|
-
etag: string;
|
|
703
|
-
}>;
|
|
704
|
-
section: (noteId: string, anchor: string) => Promise<import("./notes.js").NoteBody & Partial<import("./notes.js").Section>>;
|
|
705
|
-
write: (noteId: string, text: string, ifMatch: string) => Promise<import("./notes.js").WriteReceipt>;
|
|
706
|
-
append: (noteId: string, addition: string, ifMatch?: string) => Promise<import("./notes.js").WriteReceipt>;
|
|
707
|
-
addSection: (noteId: string, text: string, placement?: {
|
|
708
|
-
before?: string;
|
|
709
|
-
after?: string;
|
|
710
|
-
}, ifMatch?: string) => Promise<import("./notes.js").WriteReceipt>;
|
|
711
|
-
removeSection: (noteId: string, anchor: string, ifMatch?: string) => Promise<import("./notes.js").WriteReceipt>;
|
|
712
|
-
presence: {
|
|
713
|
-
(id: string): Promise<import("./note-presence.js").NotePresenceRoster>;
|
|
714
|
-
(id: string, input: Record<string, unknown>): Promise<import("./note-presence.js").NotePresenceReceipt>;
|
|
715
|
-
};
|
|
716
|
-
presenceText: (id: string) => Promise<string>;
|
|
717
|
-
updatePresence: (id: string, input: Record<string, unknown>, options?: import("./client.js").RequestOptions) => Promise<import("./note-presence.js").NotePresenceReceipt>;
|
|
718
|
-
visit: (id: string, options?: {
|
|
719
|
-
intent?: string;
|
|
720
|
-
}) => Promise<import("./note-presence.js").NotePresenceReceipt>;
|
|
721
|
-
activity: (id: string, options?: import("./client.js").RequestOptions) => Promise<{
|
|
722
|
-
activities: import("./note-presence.js").NoteActivity[];
|
|
723
|
-
}>;
|
|
724
|
-
events: (id: string, signal: AbortSignal, receive: (event: import("./note-events.js").NoteEvent) => void) => Promise<void>;
|
|
725
|
-
selectText: (id: string, options: import("./note-presence.js").NoteSelectionOptions) => Promise<import("./note-presence.js").NoteSelectionReceipt>;
|
|
565
|
+
notes: import("./note-facade.js").NotesFacade;
|
|
566
|
+
skills: {
|
|
567
|
+
list: () => Promise<import("./skills.js").SkillsList>;
|
|
568
|
+
skill: (name: string) => Promise<import("./skills.js").SkillDetail>;
|
|
569
|
+
read: (input: {
|
|
570
|
+
skill: string;
|
|
571
|
+
path?: string;
|
|
572
|
+
}) => Promise<import("./skills.js").SkillReadResult>;
|
|
573
|
+
file: (input: {
|
|
574
|
+
skill: string;
|
|
575
|
+
path: string;
|
|
576
|
+
ifNoneMatch?: string;
|
|
577
|
+
}) => Promise<import("./skills.js").SkillFileResult>;
|
|
726
578
|
};
|
|
727
579
|
projects: (namespace: string) => {
|
|
728
580
|
grants: (project: string) => Promise<unknown>;
|
|
@@ -1375,6 +1227,72 @@ export declare function createClient(options: ClientOptions): {
|
|
|
1375
1227
|
};
|
|
1376
1228
|
};
|
|
1377
1229
|
};
|
|
1230
|
+
experiments: (namespace: string, project: string) => {
|
|
1231
|
+
status: () => Promise<unknown>;
|
|
1232
|
+
session: (mode: "read" | "write") => Promise<{
|
|
1233
|
+
token: string;
|
|
1234
|
+
expiresAt: number;
|
|
1235
|
+
apiUrl: string;
|
|
1236
|
+
provider: string;
|
|
1237
|
+
}>;
|
|
1238
|
+
create: (key: string) => Promise<{
|
|
1239
|
+
experiment: import("./native-experiments.js").NativeExperimentRun;
|
|
1240
|
+
}>;
|
|
1241
|
+
list: (query?: {
|
|
1242
|
+
limit?: number;
|
|
1243
|
+
cursor?: string;
|
|
1244
|
+
includeArchived?: boolean;
|
|
1245
|
+
}) => Promise<{
|
|
1246
|
+
runs: import("./native-experiments.js").NativeExperimentRun[];
|
|
1247
|
+
hasMore: boolean;
|
|
1248
|
+
nextCursor: string | null;
|
|
1249
|
+
}>;
|
|
1250
|
+
get: (id: string) => Promise<{
|
|
1251
|
+
experiment: import("./native-experiments.js").NativeExperimentRun;
|
|
1252
|
+
}>;
|
|
1253
|
+
trash: (query?: {
|
|
1254
|
+
limit?: number;
|
|
1255
|
+
cursor?: string;
|
|
1256
|
+
}) => Promise<{
|
|
1257
|
+
runs: import("./native-experiments.js").NativeExperimentRun[];
|
|
1258
|
+
hasMore: boolean;
|
|
1259
|
+
nextCursor: string | null;
|
|
1260
|
+
}>;
|
|
1261
|
+
delete: (id: string) => Promise<{
|
|
1262
|
+
experiment: import("./native-experiments.js").NativeExperimentRun;
|
|
1263
|
+
}>;
|
|
1264
|
+
restoreDeleted: (id: string) => Promise<{
|
|
1265
|
+
experiment: import("./native-experiments.js").NativeExperimentRun;
|
|
1266
|
+
}>;
|
|
1267
|
+
archive: (id: string, archived: boolean) => Promise<{
|
|
1268
|
+
experiment: import("./native-experiments.js").NativeExperimentRun;
|
|
1269
|
+
}>;
|
|
1270
|
+
parameters: {
|
|
1271
|
+
get: (id: string) => Promise<unknown>;
|
|
1272
|
+
set: (id: string, data: Record<string, unknown>) => Promise<unknown>;
|
|
1273
|
+
};
|
|
1274
|
+
logs: {
|
|
1275
|
+
list: (id: string, query?: {
|
|
1276
|
+
limit?: number;
|
|
1277
|
+
cursor?: string;
|
|
1278
|
+
}) => Promise<unknown>;
|
|
1279
|
+
append: (id: string, entries: Array<{
|
|
1280
|
+
timestamp: string;
|
|
1281
|
+
level: string;
|
|
1282
|
+
message: string;
|
|
1283
|
+
metadata?: unknown;
|
|
1284
|
+
}>) => Promise<unknown>;
|
|
1285
|
+
};
|
|
1286
|
+
metrics: {
|
|
1287
|
+
list: (id: string) => Promise<unknown>;
|
|
1288
|
+
rows: (id: string, name: string, query?: {
|
|
1289
|
+
limit?: number;
|
|
1290
|
+
cursor?: string;
|
|
1291
|
+
}) => Promise<unknown>;
|
|
1292
|
+
append: (id: string, name: string, dataPoints: Record<string, unknown>[]) => Promise<unknown>;
|
|
1293
|
+
};
|
|
1294
|
+
setStatus: (id: string, status: "RUNNING" | "COMPLETED" | "FAILED" | "CANCELLED") => Promise<unknown>;
|
|
1295
|
+
};
|
|
1378
1296
|
machine: {
|
|
1379
1297
|
self: () => Promise<unknown>;
|
|
1380
1298
|
host: (id: string) => Promise<unknown>;
|
|
@@ -1612,6 +1530,23 @@ export declare function createClient(options: ClientOptions): {
|
|
|
1612
1530
|
}>;
|
|
1613
1531
|
rename: (sessionId: string, name: string) => Promise<import("./sessions.js").Session>;
|
|
1614
1532
|
archive: (sessionId: string, archived: boolean) => Promise<import("./sessions.js").Session>;
|
|
1533
|
+
permission: (sessionId: string, input: {
|
|
1534
|
+
permissionLevel: import("./sessions.js").PermissionLevel;
|
|
1535
|
+
reason?: string;
|
|
1536
|
+
raise?: boolean;
|
|
1537
|
+
}) => Promise<{
|
|
1538
|
+
session: import("./sessions.js").Session;
|
|
1539
|
+
changed: boolean;
|
|
1540
|
+
}>;
|
|
1541
|
+
tree: (sessionId: string) => Promise<import("./sessions.js").SessionTree>;
|
|
1542
|
+
watch: (query?: {
|
|
1543
|
+
sessionId?: string;
|
|
1544
|
+
}, signal?: AbortSignal) => AsyncGenerator<import("./sessions.js").WatchEvent>;
|
|
1545
|
+
heartbeat: (sessionId: string, input: import("./sessions.js").HeartbeatInput) => Promise<import("./sessions.js").HeartbeatResult>;
|
|
1546
|
+
event: (sessionId: string, input: import("./sessions.js").SessionEventInput) => Promise<{
|
|
1547
|
+
sessionId: string;
|
|
1548
|
+
subagent: import("./sessions.js").SubagentNode;
|
|
1549
|
+
}>;
|
|
1615
1550
|
register: (input: {
|
|
1616
1551
|
provider: import("./sessions.js").Provider;
|
|
1617
1552
|
nativeSessionId: string;
|
|
@@ -1645,20 +1580,24 @@ export declare function createClient(options: ClientOptions): {
|
|
|
1645
1580
|
}) => Promise<{
|
|
1646
1581
|
commands: import("./sessions.js").Command[];
|
|
1647
1582
|
}>;
|
|
1648
|
-
get: (commandId: string, wait?: number
|
|
1649
|
-
|
|
1650
|
-
|
|
1583
|
+
get: (commandId: string, wait?: number, options?: {
|
|
1584
|
+
signal?: AbortSignal;
|
|
1585
|
+
timeoutMs?: number;
|
|
1586
|
+
}) => Promise<import("./sessions.js").Command<"start" | "stop" | "restart" | "status" | "resume" | "send" | "sync" | "subagents">>;
|
|
1587
|
+
wait: (commandId: string, seconds: number, signal?: AbortSignal) => Promise<import("./sessions.js").Command<"start" | "stop" | "restart" | "status" | "resume" | "send" | "sync" | "subagents">>;
|
|
1588
|
+
cancel: (commandId: string) => Promise<import("./sessions.js").Command<"start" | "stop" | "restart" | "status" | "resume" | "send" | "sync" | "subagents">>;
|
|
1651
1589
|
renew: (commandId: string, runnerId: string, leaseToken: string) => Promise<{
|
|
1652
1590
|
leaseMs: number;
|
|
1653
1591
|
cancelRequested?: boolean;
|
|
1654
1592
|
}>;
|
|
1655
|
-
reconcile: (commandId: string, runnerId: string, observation: Record<string, unknown>) => Promise<import("./sessions.js").Command<"
|
|
1656
|
-
finish: (commandId: string, runnerId: string, receipt: import("./sessions.js").CommandReceipt) => Promise<import("./sessions.js").Command<"
|
|
1593
|
+
reconcile: (commandId: string, runnerId: string, observation: Record<string, unknown>) => Promise<import("./sessions.js").Command<"start" | "stop" | "restart" | "status" | "resume" | "send" | "sync" | "subagents">>;
|
|
1594
|
+
finish: (commandId: string, runnerId: string, receipt: import("./sessions.js").CommandReceipt) => Promise<import("./sessions.js").Command<"start" | "stop" | "restart" | "status" | "resume" | "send" | "sync" | "subagents">>;
|
|
1657
1595
|
};
|
|
1658
1596
|
runners: {
|
|
1659
1597
|
list: () => Promise<import("./sessions.js").Runner[]>;
|
|
1660
1598
|
register: (input: import("./sessions.js").RunnerRegistration) => Promise<import("./sessions.js").Runner>;
|
|
1661
1599
|
claim: (runnerId: string, seconds: number, signal?: AbortSignal) => Promise<import("./sessions.js").ClaimedCommand | null>;
|
|
1600
|
+
deregister: (runnerId: string) => Promise<import("./sessions.js").Runner | null>;
|
|
1662
1601
|
};
|
|
1663
1602
|
};
|
|
1664
1603
|
terminal: (namespace: string) => {
|
|
@@ -1691,256 +1630,19 @@ export declare function createClient(options: ClientOptions): {
|
|
|
1691
1630
|
}) => Promise<unknown>;
|
|
1692
1631
|
managed: (id: string, action: "status" | "start" | "reconnect" | "stop", input: Record<string, unknown>) => Promise<unknown>;
|
|
1693
1632
|
};
|
|
1694
|
-
notes: (
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
patch: (noteId: string, input: import("./note-edits.js").NotePatch) => Promise<{
|
|
1708
|
-
note: string;
|
|
1709
|
-
hash: string;
|
|
1710
|
-
revision: string;
|
|
1711
|
-
baseRevision: string;
|
|
1712
|
-
mode: "exact" | "merge";
|
|
1713
|
-
}>;
|
|
1714
|
-
replaceContent: (noteId: string, baseRevision: string, content: string, mode?: "exact" | "merge") => Promise<{
|
|
1715
|
-
note: string;
|
|
1716
|
-
hash: string;
|
|
1717
|
-
revision: string;
|
|
1718
|
-
baseRevision: string;
|
|
1719
|
-
mode: "exact" | "merge";
|
|
1720
|
-
}>;
|
|
1721
|
-
replace: (noteId: string, baseRevision: string, text: string, where: import("./note-editing.js").Where, mode?: "exact" | "merge") => Promise<{
|
|
1722
|
-
note: string;
|
|
1723
|
-
hash: string;
|
|
1724
|
-
revision: string;
|
|
1725
|
-
baseRevision: string;
|
|
1726
|
-
mode: "exact" | "merge";
|
|
1727
|
-
}>;
|
|
1728
|
-
insert: (noteId: string, baseRevision: string, text: string, where: {
|
|
1729
|
-
line?: number;
|
|
1730
|
-
ind?: number;
|
|
1731
|
-
}, mode?: "exact" | "merge") => Promise<{
|
|
1732
|
-
note: string;
|
|
1733
|
-
hash: string;
|
|
1734
|
-
revision: string;
|
|
1735
|
-
baseRevision: string;
|
|
1736
|
-
mode: "exact" | "merge";
|
|
1737
|
-
}>;
|
|
1738
|
-
removeText: (noteId: string, baseRevision: string, where: import("./note-editing.js").Where, mode?: "exact" | "merge") => Promise<{
|
|
1739
|
-
note: string;
|
|
1740
|
-
hash: string;
|
|
1741
|
-
revision: string;
|
|
1742
|
-
baseRevision: string;
|
|
1743
|
-
mode: "exact" | "merge";
|
|
1744
|
-
}>;
|
|
1745
|
-
findInSource: (noteId: string, at: string, query?: string, options?: import("./note-editing.js").FindOpts) => Promise<{
|
|
1746
|
-
matches: import("./note-editing.js").Match[];
|
|
1747
|
-
note: string;
|
|
1748
|
-
content: string;
|
|
1749
|
-
hash: string;
|
|
1750
|
-
revision: string;
|
|
1751
|
-
}>;
|
|
1752
|
-
outline: (noteId: string, at?: string) => Promise<{
|
|
1753
|
-
note: string;
|
|
1754
|
-
revision: string;
|
|
1755
|
-
hash: string;
|
|
1756
|
-
entries: import("./note-toc.js").TocEntry[];
|
|
1757
|
-
}>;
|
|
1758
|
-
get: (noteId: string) => Promise<import("./notes.js").NoteRow & {
|
|
1759
|
-
namespaceSlug: string;
|
|
1760
|
-
permissions: Record<string, boolean>;
|
|
1761
|
-
}>;
|
|
1762
|
-
archive: (noteId: string) => Promise<import("./notes.js").NoteRow>;
|
|
1763
|
-
unarchive: (noteId: string) => Promise<import("./notes.js").NoteRow>;
|
|
1764
|
-
delete: (noteId: string) => Promise<unknown>;
|
|
1765
|
-
shared: (query?: {
|
|
1766
|
-
includeArchived?: boolean;
|
|
1767
|
-
}) => Promise<{
|
|
1768
|
-
notes: import("./notes.js").NoteRow[];
|
|
1769
|
-
}>;
|
|
1770
|
-
projects: (noteId: string, view?: "nodes") => Promise<unknown>;
|
|
1771
|
-
move: (noteId: string, input: {
|
|
1772
|
-
namespace: string;
|
|
1773
|
-
projects: string[];
|
|
1774
|
-
dryRun?: boolean;
|
|
1775
|
-
}) => Promise<unknown>;
|
|
1776
|
-
share: (noteId: string) => {
|
|
1777
|
-
get: () => Promise<Record<string, unknown>>;
|
|
1778
|
-
create: (role?: "read" | "write") => Promise<unknown>;
|
|
1779
|
-
revoke: (revokeAccepted?: boolean) => Promise<unknown>;
|
|
1780
|
-
visibility: (visibility: "private" | "public" | "team") => Promise<unknown>;
|
|
1781
|
-
access: () => Promise<unknown>;
|
|
1782
|
-
remove: (userId: string) => Promise<unknown>;
|
|
1783
|
-
};
|
|
1784
|
-
files: (noteId: string) => {
|
|
1785
|
-
list: (query?: import("./note-files.js").NoteFileListOptions) => Promise<import("./note-files.js").NoteFilePage>;
|
|
1786
|
-
get: (id: string) => Promise<import("./note-files.js").NoteFile>;
|
|
1787
|
-
resolve: (ref: string, includeTrashed?: boolean) => Promise<import("./note-files.js").NoteFile>;
|
|
1788
|
-
text: (ref: string) => Promise<{
|
|
1789
|
-
text: string;
|
|
1790
|
-
etag: string;
|
|
1791
|
-
}>;
|
|
1792
|
-
cat: (ref: string) => Promise<{
|
|
1793
|
-
text: string;
|
|
1794
|
-
etag: string;
|
|
1795
|
-
}>;
|
|
1796
|
-
download: (ref: string, signal?: AbortSignal) => Promise<Response>;
|
|
1797
|
-
upload: (path: string, body: NonNullable<import("./client.js").RequestOptions["body"]> | import("stream").Readable, options?: {
|
|
1798
|
-
contentType?: string;
|
|
1799
|
-
overwrite?: boolean;
|
|
1800
|
-
ifMatch?: string;
|
|
1801
|
-
contentLength?: number;
|
|
1802
|
-
signal?: AbortSignal;
|
|
1803
|
-
}) => Promise<import("./note-files.js").NoteFile>;
|
|
1804
|
-
write: (input: {
|
|
1805
|
-
path: string;
|
|
1806
|
-
text: string;
|
|
1807
|
-
overwrite?: boolean;
|
|
1808
|
-
contentType?: string;
|
|
1809
|
-
}, options?: {
|
|
1810
|
-
ifMatch?: string;
|
|
1811
|
-
idempotencyKey?: string;
|
|
1812
|
-
}) => Promise<import("./note-files.js").NoteFileWriteReceipt>;
|
|
1813
|
-
move: (ref: string, path: string, options?: {
|
|
1814
|
-
overwrite?: boolean;
|
|
1815
|
-
ifMatch?: string;
|
|
1816
|
-
}) => Promise<import("./note-files.js").NoteFile>;
|
|
1817
|
-
copy: (ref: string, path: string, options?: {
|
|
1818
|
-
overwrite?: boolean;
|
|
1819
|
-
idempotencyKey?: string;
|
|
1820
|
-
}) => Promise<import("./note-files.js").NoteFileWriteReceipt>;
|
|
1821
|
-
operation: (operationId: string, action?: "status" | "reconcile" | "cancel") => Promise<import("./note-files.js").NoteFileOperationReceipt>;
|
|
1822
|
-
status: (id: string) => Promise<import("./note-files.js").NoteFileOperationReceipt>;
|
|
1823
|
-
reconcile: (id: string) => Promise<import("./note-files.js").NoteFileOperationReceipt>;
|
|
1824
|
-
cancel: (id: string) => Promise<import("./note-files.js").NoteFileOperationReceipt>;
|
|
1825
|
-
delete: (ref: string, options?: {
|
|
1826
|
-
purge?: boolean;
|
|
1827
|
-
ifMatch?: string;
|
|
1828
|
-
}) => Promise<{
|
|
1829
|
-
id: string;
|
|
1830
|
-
purged: boolean;
|
|
1831
|
-
}>;
|
|
1832
|
-
restore: (ref: string, path?: string) => Promise<import("./note-files.js").NoteFile>;
|
|
1833
|
-
preview: (ref: string, share?: boolean) => Promise<import("./note-files.js").NoteFilePreview>;
|
|
1834
|
-
revokePreview: (ref: string) => Promise<{
|
|
1835
|
-
id: string;
|
|
1836
|
-
shared: boolean;
|
|
1837
|
-
}>;
|
|
1838
|
-
};
|
|
1839
|
-
media: (form: FormData) => Promise<import("./notes.js").NoteMediaReceipt>;
|
|
1840
|
-
read: (noteId: string, query?: import("./common.js").Query) => Promise<import("./notes.js").NoteReadResult>;
|
|
1841
|
-
readView: (noteId: string, options?: import("./note-reading.js").NoteReadingOptions) => Promise<import("./note-reading.js").NoteReadingPage>;
|
|
1842
|
-
html: (noteId: string, options?: {
|
|
1843
|
-
at?: string;
|
|
1844
|
-
section?: string;
|
|
1845
|
-
toc?: boolean;
|
|
1846
|
-
tag?: string;
|
|
1847
|
-
ifMatch?: string;
|
|
1848
|
-
}) => Promise<{
|
|
1849
|
-
note: string;
|
|
1850
|
-
revision: string;
|
|
1851
|
-
html: string;
|
|
1852
|
-
bytes: Uint8Array<ArrayBuffer>;
|
|
1853
|
-
}>;
|
|
1854
|
-
diff: (noteId: string, query: {
|
|
1855
|
-
from?: string;
|
|
1856
|
-
to?: string;
|
|
1857
|
-
since?: string;
|
|
1858
|
-
format?: "diff" | "inline-dff";
|
|
1859
|
-
}) => Promise<unknown>;
|
|
1860
|
-
saveVersion: (noteId: string, input: {
|
|
1861
|
-
hash: string;
|
|
1862
|
-
tag?: string;
|
|
1863
|
-
summary?: string;
|
|
1864
|
-
parentId?: string;
|
|
1865
|
-
}) => Promise<unknown>;
|
|
1866
|
-
find: (query: {
|
|
1867
|
-
q: string;
|
|
1868
|
-
note?: string;
|
|
1869
|
-
cursor?: string;
|
|
1870
|
-
limit?: number;
|
|
1871
|
-
includeArchived?: boolean;
|
|
1872
|
-
caseSensitive?: boolean;
|
|
1873
|
-
glob?: string;
|
|
1874
|
-
regex?: string;
|
|
1875
|
-
flags?: string;
|
|
1876
|
-
context?: string;
|
|
1877
|
-
}) => Promise<import("./notes.js").NoteSearchPage>;
|
|
1878
|
-
create: (input: {
|
|
1879
|
-
name: string;
|
|
1880
|
-
summary?: string;
|
|
1881
|
-
projects?: string[];
|
|
1882
|
-
visibility?: "private" | "public";
|
|
1883
|
-
}) => Promise<{
|
|
1884
|
-
note: import("./notes.js").NoteRow;
|
|
1885
|
-
rtc: {
|
|
1886
|
-
rtcDocId: string;
|
|
1887
|
-
};
|
|
1888
|
-
}>;
|
|
1889
|
-
edit: (noteId: string, baseRevision: string, edits: import("./note-edits.js").NoteEdit[], mode?: "merge" | "exact") => Promise<{
|
|
1890
|
-
note: string;
|
|
1891
|
-
hash: string;
|
|
1892
|
-
revision: string;
|
|
1893
|
-
baseRevision: string;
|
|
1894
|
-
mode: "exact" | "merge";
|
|
1895
|
-
}>;
|
|
1896
|
-
versions: (noteId: string, query?: {
|
|
1897
|
-
before?: string;
|
|
1898
|
-
}) => Promise<{
|
|
1899
|
-
versions: import("./notes.js").NoteVersion[];
|
|
1900
|
-
nextCursor?: string | null;
|
|
1901
|
-
}>;
|
|
1902
|
-
version: (noteId: string, versionId: string) => Promise<import("./notes.js").NoteVersion>;
|
|
1903
|
-
list: (query?: {
|
|
1904
|
-
q?: string;
|
|
1905
|
-
limit?: number;
|
|
1906
|
-
offset?: number;
|
|
1907
|
-
includeArchived?: boolean;
|
|
1908
|
-
}) => Promise<{
|
|
1909
|
-
notes: import("./notes.js").NoteRow[];
|
|
1910
|
-
}>;
|
|
1911
|
-
search: (q: string, limit?: number, offset?: number, options?: {
|
|
1912
|
-
includeArchived?: boolean;
|
|
1913
|
-
}) => Promise<{
|
|
1914
|
-
notes: import("./notes.js").NoteRow[];
|
|
1915
|
-
total: number;
|
|
1916
|
-
}>;
|
|
1917
|
-
body: (noteId: string) => Promise<import("./notes.js").NoteBody>;
|
|
1918
|
-
sections: (noteId: string) => Promise<{
|
|
1919
|
-
sections: import("./notes.js").Section[];
|
|
1920
|
-
etag: string;
|
|
1921
|
-
}>;
|
|
1922
|
-
section: (noteId: string, anchor: string) => Promise<import("./notes.js").NoteBody & Partial<import("./notes.js").Section>>;
|
|
1923
|
-
write: (noteId: string, text: string, ifMatch: string) => Promise<import("./notes.js").WriteReceipt>;
|
|
1924
|
-
append: (noteId: string, addition: string, ifMatch?: string) => Promise<import("./notes.js").WriteReceipt>;
|
|
1925
|
-
addSection: (noteId: string, text: string, placement?: {
|
|
1926
|
-
before?: string;
|
|
1927
|
-
after?: string;
|
|
1928
|
-
}, ifMatch?: string) => Promise<import("./notes.js").WriteReceipt>;
|
|
1929
|
-
removeSection: (noteId: string, anchor: string, ifMatch?: string) => Promise<import("./notes.js").WriteReceipt>;
|
|
1930
|
-
presence: {
|
|
1931
|
-
(id: string): Promise<import("./note-presence.js").NotePresenceRoster>;
|
|
1932
|
-
(id: string, input: Record<string, unknown>): Promise<import("./note-presence.js").NotePresenceReceipt>;
|
|
1933
|
-
};
|
|
1934
|
-
presenceText: (id: string) => Promise<string>;
|
|
1935
|
-
updatePresence: (id: string, input: Record<string, unknown>, options?: import("./client.js").RequestOptions) => Promise<import("./note-presence.js").NotePresenceReceipt>;
|
|
1936
|
-
visit: (id: string, options?: {
|
|
1937
|
-
intent?: string;
|
|
1938
|
-
}) => Promise<import("./note-presence.js").NotePresenceReceipt>;
|
|
1939
|
-
activity: (id: string, options?: import("./client.js").RequestOptions) => Promise<{
|
|
1940
|
-
activities: import("./note-presence.js").NoteActivity[];
|
|
1941
|
-
}>;
|
|
1942
|
-
events: (id: string, signal: AbortSignal, receive: (event: import("./note-events.js").NoteEvent) => void) => Promise<void>;
|
|
1943
|
-
selectText: (id: string, options: import("./note-presence.js").NoteSelectionOptions) => Promise<import("./note-presence.js").NoteSelectionReceipt>;
|
|
1633
|
+
notes: import("./note-facade.js").NotesFacade;
|
|
1634
|
+
skills: {
|
|
1635
|
+
list: () => Promise<import("./skills.js").SkillsList>;
|
|
1636
|
+
skill: (name: string) => Promise<import("./skills.js").SkillDetail>;
|
|
1637
|
+
read: (input: {
|
|
1638
|
+
skill: string;
|
|
1639
|
+
path?: string;
|
|
1640
|
+
}) => Promise<import("./skills.js").SkillReadResult>;
|
|
1641
|
+
file: (input: {
|
|
1642
|
+
skill: string;
|
|
1643
|
+
path: string;
|
|
1644
|
+
ifNoneMatch?: string;
|
|
1645
|
+
}) => Promise<import("./skills.js").SkillFileResult>;
|
|
1944
1646
|
};
|
|
1945
1647
|
projects: (namespace: string) => {
|
|
1946
1648
|
grants: (project: string) => Promise<unknown>;
|
|
@@ -2404,4 +2106,8 @@ export * from "./note-html-read.js";
|
|
|
2404
2106
|
export { characterDiff, NotePatchError, PATCH_LIMITS, } from "./note-character-plan.js";
|
|
2405
2107
|
export * from "./presigned-transfer.js";
|
|
2406
2108
|
export * from "./note-events.js";
|
|
2407
|
-
export
|
|
2109
|
+
export * from "./note-write.js";
|
|
2110
|
+
export { documentEdits, documentInsertion } from "./note-edits.js";
|
|
2111
|
+
export * from "./note-facade.js";
|
|
2112
|
+
export type { NoteReadingOptions, NoteReadingPage, NoteFocusedRead } from "./note-reading.js";
|
|
2113
|
+
export { lineRange, focusedRead, InvalidLineRange } from "./note-reading.js";
|