@kirkchinese/dsh-citeciter 0.8.2 → 0.9.0-alpha.2

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.
Files changed (65) hide show
  1. package/README.md +80 -30
  2. package/README.zh.md +78 -30
  3. package/lib/client.js +7539 -6260
  4. package/lib/index.js +921 -386
  5. package/lib/{typert-common-BMA9IB7p.js → typert-common-BQpqe5Ph.js} +24 -17
  6. package/lib/typert.host.js +9 -30
  7. package/lib/typert.remote-client.js +1 -1
  8. package/lib/types/actions.d.ts +10 -0
  9. package/lib/types/atomic-replace.d.ts +9 -0
  10. package/lib/types/board-capture-protocol.d.ts +45 -0
  11. package/lib/types/board-capture.d.ts +6 -1
  12. package/lib/types/board.d.ts +4 -4
  13. package/lib/types/citer-agent-registry.d.ts +2 -2
  14. package/lib/types/citer-session-access.d.ts +1 -1
  15. package/lib/types/client/action-controller.d.ts +2 -5
  16. package/lib/types/client/action-executor.d.ts +1 -1
  17. package/lib/types/client/board-capture-controller.d.ts +17 -0
  18. package/lib/types/client/citer-session-face.d.ts +17 -1
  19. package/lib/types/client/companion-controller.d.ts +17 -9
  20. package/lib/types/client/components/ActionWheel.d.ts +2 -4
  21. package/lib/types/client/components/BoardCaptureWorker.d.ts +7 -0
  22. package/lib/types/client/components/CitePanel.d.ts +6 -3
  23. package/lib/types/client/components/LearningExample.d.ts +5 -0
  24. package/lib/types/client/components/MessageImage.d.ts +8 -0
  25. package/lib/types/client/components/ToolMessage.d.ts +10 -0
  26. package/lib/types/client/components/TopicComposer.d.ts +1 -4
  27. package/lib/types/client/dock-geometry.d.ts +4 -2
  28. package/lib/types/client/draft-controller.d.ts +45 -0
  29. package/lib/types/client/draft-references.d.ts +4 -7
  30. package/lib/types/client/host-dock.d.ts +4 -2
  31. package/lib/types/client/host-icons.d.ts +13 -0
  32. package/lib/types/client/host-image-preview.d.ts +8 -0
  33. package/lib/types/client/host-ui-adapter.d.ts +24 -0
  34. package/lib/types/client/native-composer.d.ts +7 -3
  35. package/lib/types/client/native-document.d.ts +2 -8
  36. package/lib/types/client/prompt.d.ts +2 -0
  37. package/lib/types/client/selection-references.d.ts +4 -0
  38. package/lib/types/client/transcript-position.d.ts +2 -1
  39. package/lib/types/client/types.d.ts +2 -0
  40. package/lib/types/client/update-controller.d.ts +2 -2
  41. package/lib/types/document-access.d.ts +3 -0
  42. package/lib/types/document-tools.d.ts +10 -0
  43. package/lib/types/draft-contract.d.ts +98 -0
  44. package/lib/types/draft-store.d.ts +23 -0
  45. package/lib/types/host-agent-modules.d.ts +4 -2
  46. package/lib/types/host-settings-adapter.d.ts +11 -0
  47. package/lib/types/index.d.ts +3 -1
  48. package/lib/types/learning-example.d.ts +53 -0
  49. package/lib/types/learning.d.ts +24 -3
  50. package/lib/types/message-projection.d.ts +15 -0
  51. package/lib/types/model-admission.d.ts +7 -0
  52. package/lib/types/native-session-contract.d.ts +1 -0
  53. package/lib/types/package-version.d.ts +9 -0
  54. package/lib/types/session-format-guard.d.ts +6 -0
  55. package/lib/types/source-storage.d.ts +3 -0
  56. package/lib/types/tool-events.d.ts +18 -0
  57. package/lib/types/topic-archive.d.ts +5 -0
  58. package/lib/types/topic-prompts.d.ts +5 -3
  59. package/lib/types/topic-runtime.d.ts +4 -2
  60. package/lib/types/topic.d.ts +204 -17
  61. package/lib/types/typert-codec.d.ts +13 -0
  62. package/lib/types/typert-common.d.ts +1165 -100
  63. package/lib/types/typert.host.d.ts +3271 -825
  64. package/lib/{update-BtuUBRbP.js → update-CRD1jFLf.js} +220 -50
  65. package/package.json +81 -77
@@ -68,6 +68,10 @@ export declare const citeCiterSettingsSchema: z.ZodObject<{
68
68
  side: "side";
69
69
  floating: "floating";
70
70
  }>;
71
+ target: z.ZodOptional<z.ZodEnum<{
72
+ current: "current";
73
+ new: "new";
74
+ }>>;
71
75
  }, z.core.$strict>>>>;
72
76
  wheelTrigger: z.ZodOptional<z.ZodEnum<{
73
77
  "right-button": "right-button";
@@ -133,8 +137,8 @@ export declare const citationEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
133
137
  }>;
134
138
  fileIndex: z.ZodOptional<z.ZodNumber>;
135
139
  side: z.ZodOptional<z.ZodEnum<{
136
- old: "old";
137
140
  new: "new";
141
+ old: "old";
138
142
  }>>;
139
143
  }, z.core.$strict>, z.ZodObject<{
140
144
  kind: z.ZodLiteral<"document-range">;
@@ -161,8 +165,8 @@ export declare const citationRecordSchema: z.ZodObject<{
161
165
  }>;
162
166
  fileIndex: z.ZodOptional<z.ZodNumber>;
163
167
  side: z.ZodOptional<z.ZodEnum<{
164
- old: "old";
165
168
  new: "new";
169
+ old: "old";
166
170
  }>>;
167
171
  }, z.core.$strict>, z.ZodObject<{
168
172
  kind: z.ZodLiteral<"document-range">;
@@ -203,8 +207,8 @@ declare const citationRecordFileSchema: z.ZodObject<{
203
207
  }>;
204
208
  fileIndex: z.ZodOptional<z.ZodNumber>;
205
209
  side: z.ZodOptional<z.ZodEnum<{
206
- old: "old";
207
210
  new: "new";
211
+ old: "old";
208
212
  }>>;
209
213
  }, z.core.$strict>, z.ZodObject<{
210
214
  kind: z.ZodLiteral<"document-range">;
@@ -264,8 +268,8 @@ export declare const topicMetadataSchema: z.ZodObject<{
264
268
  }>;
265
269
  fileIndex: z.ZodOptional<z.ZodNumber>;
266
270
  side: z.ZodOptional<z.ZodEnum<{
267
- old: "old";
268
271
  new: "new";
272
+ old: "old";
269
273
  }>>;
270
274
  }, z.core.$strict>, z.ZodObject<{
271
275
  kind: z.ZodLiteral<"document-range">;
@@ -292,6 +296,7 @@ export declare const topicMetadataSchema: z.ZodObject<{
292
296
  investigate: "investigate";
293
297
  }>;
294
298
  documentId: z.ZodNullable<z.ZodString>;
299
+ modelSelectionRequired: z.ZodOptional<z.ZodBoolean>;
295
300
  hosted: z.ZodOptional<z.ZodBoolean>;
296
301
  storage: z.ZodOptional<z.ZodLiteral<"source">>;
297
302
  topicId: z.ZodNumber;
@@ -342,6 +347,7 @@ export declare const permissionSchema: z.ZodEnum<{
342
347
  "danger-full-access": "danger-full-access";
343
348
  }>;
344
349
  export declare const topicSummarySchema: z.ZodObject<{
350
+ modelSelectionRequired: z.ZodOptional<z.ZodBoolean>;
345
351
  permission: z.ZodOptional<z.ZodEnum<{
346
352
  "read-only": "read-only";
347
353
  "workspace-write": "workspace-write";
@@ -379,8 +385,8 @@ export declare const topicSummarySchema: z.ZodObject<{
379
385
  }>;
380
386
  fileIndex: z.ZodOptional<z.ZodNumber>;
381
387
  side: z.ZodOptional<z.ZodEnum<{
382
- old: "old";
383
388
  new: "new";
389
+ old: "old";
384
390
  }>>;
385
391
  }, z.core.$strict>, z.ZodObject<{
386
392
  kind: z.ZodLiteral<"document-range">;
@@ -422,8 +428,8 @@ export declare const topicMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
422
428
  role: z.ZodLiteral<"user">;
423
429
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
424
430
  kind: z.ZodEnum<{
425
- image: "image";
426
431
  file: "file";
432
+ image: "image";
427
433
  }>;
428
434
  id: z.ZodString;
429
435
  name: z.ZodString;
@@ -449,8 +455,8 @@ export declare const topicMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
449
455
  role: z.ZodLiteral<"tool">;
450
456
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
451
457
  kind: z.ZodEnum<{
452
- image: "image";
453
458
  file: "file";
459
+ image: "image";
454
460
  }>;
455
461
  id: z.ZodString;
456
462
  name: z.ZodString;
@@ -515,6 +521,7 @@ export declare const topicSnapshotSchema: z.ZodObject<{
515
521
  captureId: z.ZodOptional<z.ZodString>;
516
522
  documentTitle: z.ZodOptional<z.ZodString>;
517
523
  topic: z.ZodObject<{
524
+ modelSelectionRequired: z.ZodOptional<z.ZodBoolean>;
518
525
  permission: z.ZodOptional<z.ZodEnum<{
519
526
  "read-only": "read-only";
520
527
  "workspace-write": "workspace-write";
@@ -552,8 +559,8 @@ export declare const topicSnapshotSchema: z.ZodObject<{
552
559
  }>;
553
560
  fileIndex: z.ZodOptional<z.ZodNumber>;
554
561
  side: z.ZodOptional<z.ZodEnum<{
555
- old: "old";
556
562
  new: "new";
563
+ old: "old";
557
564
  }>>;
558
565
  }, z.core.$strict>, z.ZodObject<{
559
566
  kind: z.ZodLiteral<"document-range">;
@@ -594,8 +601,8 @@ export declare const topicSnapshotSchema: z.ZodObject<{
594
601
  role: z.ZodLiteral<"user">;
595
602
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
596
603
  kind: z.ZodEnum<{
597
- image: "image";
598
604
  file: "file";
605
+ image: "image";
599
606
  }>;
600
607
  id: z.ZodString;
601
608
  name: z.ZodString;
@@ -621,8 +628,8 @@ export declare const topicSnapshotSchema: z.ZodObject<{
621
628
  role: z.ZodLiteral<"tool">;
622
629
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
623
630
  kind: z.ZodEnum<{
624
- image: "image";
625
631
  file: "file";
632
+ image: "image";
626
633
  }>;
627
634
  id: z.ZodString;
628
635
  name: z.ZodString;
@@ -666,8 +673,8 @@ export declare const topicSnapshotSchema: z.ZodObject<{
666
673
  elements: z.ZodArray<z.ZodObject<{
667
674
  id: z.ZodString;
668
675
  kind: z.ZodEnum<{
669
- image: "image";
670
676
  text: "text";
677
+ image: "image";
671
678
  markdown: "markdown";
672
679
  math: "math";
673
680
  svg: "svg";
@@ -906,6 +913,78 @@ export declare const citeCiterRequestSchema: z.ZodUnion<readonly [z.ZodUnion<rea
906
913
  investigate: "investigate";
907
914
  }>>;
908
915
  }, z.core.$strict>]>, z.ZodDiscriminatedUnion<[z.ZodObject<{
916
+ action: z.ZodLiteral<"draft-get">;
917
+ topicSessionId: z.ZodString;
918
+ }, z.core.$strict>, z.ZodObject<{
919
+ action: z.ZodLiteral<"draft-save">;
920
+ topicSessionId: z.ZodString;
921
+ state: z.ZodObject<{
922
+ version: z.ZodLiteral<1>;
923
+ revision: z.ZodNumber;
924
+ content: z.ZodObject<{
925
+ text: z.ZodString;
926
+ references: z.ZodArray<z.ZodObject<{
927
+ id: z.ZodString;
928
+ kind: z.ZodEnum<{
929
+ source: "source";
930
+ excerpt: "excerpt";
931
+ board: "board";
932
+ }>;
933
+ label: z.ZodString;
934
+ content: z.ZodString;
935
+ address: z.ZodOptional<z.ZodString>;
936
+ }, z.core.$strict>>;
937
+ files: z.ZodArray<z.ZodObject<{
938
+ id: z.ZodUUID;
939
+ name: z.ZodString;
940
+ type: z.ZodString;
941
+ size: z.ZodNumber;
942
+ lastModified: z.ZodNumber;
943
+ }, z.core.$strict>>;
944
+ }, z.core.$strict>;
945
+ pending: z.ZodNullable<z.ZodObject<{
946
+ requestId: z.ZodUUID;
947
+ content: z.ZodObject<{
948
+ text: z.ZodString;
949
+ references: z.ZodArray<z.ZodObject<{
950
+ id: z.ZodString;
951
+ kind: z.ZodEnum<{
952
+ source: "source";
953
+ excerpt: "excerpt";
954
+ board: "board";
955
+ }>;
956
+ label: z.ZodString;
957
+ content: z.ZodString;
958
+ address: z.ZodOptional<z.ZodString>;
959
+ }, z.core.$strict>>;
960
+ files: z.ZodArray<z.ZodObject<{
961
+ id: z.ZodUUID;
962
+ name: z.ZodString;
963
+ type: z.ZodString;
964
+ size: z.ZodNumber;
965
+ lastModified: z.ZodNumber;
966
+ }, z.core.$strict>>;
967
+ }, z.core.$strict>;
968
+ }, z.core.$strict>>;
969
+ }, z.core.$strict>;
970
+ }, z.core.$strict>, z.ZodObject<{
971
+ action: z.ZodLiteral<"draft-file-put">;
972
+ topicSessionId: z.ZodString;
973
+ file: z.ZodObject<{
974
+ id: z.ZodUUID;
975
+ name: z.ZodString;
976
+ type: z.ZodString;
977
+ size: z.ZodNumber;
978
+ lastModified: z.ZodNumber;
979
+ }, z.core.$strict>;
980
+ offset: z.ZodNumber;
981
+ data: z.ZodString;
982
+ }, z.core.$strict>, z.ZodObject<{
983
+ action: z.ZodLiteral<"draft-file-get">;
984
+ topicSessionId: z.ZodString;
985
+ fileId: z.ZodUUID;
986
+ offset: z.ZodNumber;
987
+ }, z.core.$strict>, z.ZodObject<{
909
988
  action: z.ZodLiteral<"list">;
910
989
  sourceSessionId: z.ZodString;
911
990
  includeArchived: z.ZodOptional<z.ZodBoolean>;
@@ -915,6 +994,8 @@ export declare const citeCiterRequestSchema: z.ZodUnion<readonly [z.ZodUnion<rea
915
994
  id: z.ZodString;
916
995
  png: z.ZodOptional<z.ZodString>;
917
996
  error: z.ZodOptional<z.ZodString>;
997
+ }, z.core.$strict>, z.ZodObject<{
998
+ action: z.ZodLiteral<"board-capture-pending">;
918
999
  }, z.core.$strict>, z.ZodObject<{
919
1000
  action: z.ZodLiteral<"get">;
920
1001
  topicSessionId: z.ZodString;
@@ -1005,8 +1086,112 @@ export declare const citeCiterRequestSchema: z.ZodUnion<readonly [z.ZodUnion<rea
1005
1086
  export type CiteCiterRequest = z.infer<typeof citeCiterRequestSchema>;
1006
1087
  /** Strict response union returned by the single Remote command endpoint. */
1007
1088
  export declare const citeCiterResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1089
+ kind: z.ZodLiteral<"draft">;
1090
+ state: z.ZodObject<{
1091
+ version: z.ZodLiteral<1>;
1092
+ revision: z.ZodNumber;
1093
+ content: z.ZodObject<{
1094
+ text: z.ZodString;
1095
+ references: z.ZodArray<z.ZodObject<{
1096
+ id: z.ZodString;
1097
+ kind: z.ZodEnum<{
1098
+ source: "source";
1099
+ excerpt: "excerpt";
1100
+ board: "board";
1101
+ }>;
1102
+ label: z.ZodString;
1103
+ content: z.ZodString;
1104
+ address: z.ZodOptional<z.ZodString>;
1105
+ }, z.core.$strict>>;
1106
+ files: z.ZodArray<z.ZodObject<{
1107
+ id: z.ZodUUID;
1108
+ name: z.ZodString;
1109
+ type: z.ZodString;
1110
+ size: z.ZodNumber;
1111
+ lastModified: z.ZodNumber;
1112
+ }, z.core.$strict>>;
1113
+ }, z.core.$strict>;
1114
+ pending: z.ZodNullable<z.ZodObject<{
1115
+ requestId: z.ZodUUID;
1116
+ content: z.ZodObject<{
1117
+ text: z.ZodString;
1118
+ references: z.ZodArray<z.ZodObject<{
1119
+ id: z.ZodString;
1120
+ kind: z.ZodEnum<{
1121
+ source: "source";
1122
+ excerpt: "excerpt";
1123
+ board: "board";
1124
+ }>;
1125
+ label: z.ZodString;
1126
+ content: z.ZodString;
1127
+ address: z.ZodOptional<z.ZodString>;
1128
+ }, z.core.$strict>>;
1129
+ files: z.ZodArray<z.ZodObject<{
1130
+ id: z.ZodUUID;
1131
+ name: z.ZodString;
1132
+ type: z.ZodString;
1133
+ size: z.ZodNumber;
1134
+ lastModified: z.ZodNumber;
1135
+ }, z.core.$strict>>;
1136
+ }, z.core.$strict>;
1137
+ }, z.core.$strict>>;
1138
+ }, z.core.$strict>;
1139
+ conflict: z.ZodBoolean;
1140
+ }, z.core.$strict>, z.ZodObject<{
1141
+ kind: z.ZodLiteral<"draft-file-saved">;
1142
+ }, z.core.$strict>, z.ZodObject<{
1143
+ kind: z.ZodLiteral<"draft-file">;
1144
+ data: z.ZodString;
1145
+ }, z.core.$strict>, z.ZodObject<{
1146
+ kind: z.ZodLiteral<"board-captures">;
1147
+ jobs: z.ZodArray<z.ZodObject<{
1148
+ id: z.ZodString;
1149
+ sessionId: z.ZodString;
1150
+ board: z.ZodObject<{
1151
+ version: z.ZodLiteral<4>;
1152
+ revision: z.ZodNumber;
1153
+ elements: z.ZodArray<z.ZodObject<{
1154
+ id: z.ZodString;
1155
+ kind: z.ZodEnum<{
1156
+ text: "text";
1157
+ image: "image";
1158
+ markdown: "markdown";
1159
+ math: "math";
1160
+ svg: "svg";
1161
+ html: "html";
1162
+ table: "table";
1163
+ }>;
1164
+ content: z.ZodString;
1165
+ x: z.ZodNumber;
1166
+ y: z.ZodNumber;
1167
+ w: z.ZodNumber;
1168
+ h: z.ZodNumber;
1169
+ style: z.ZodObject<{
1170
+ color: z.ZodOptional<z.ZodString>;
1171
+ fontSize: z.ZodOptional<z.ZodString>;
1172
+ }, z.core.$strict>;
1173
+ focused: z.ZodBoolean;
1174
+ animation: z.ZodOptional<z.ZodObject<{
1175
+ name: z.ZodEnum<{
1176
+ "fade-in": "fade-in";
1177
+ "slide-in": "slide-in";
1178
+ pulse: "pulse";
1179
+ highlight: "highlight";
1180
+ }>;
1181
+ durationMs: z.ZodNumber;
1182
+ iterations: z.ZodNumber;
1183
+ run: z.ZodNumber;
1184
+ }, z.core.$strict>>;
1185
+ }, z.core.$strict>>;
1186
+ invalid: z.ZodNumber;
1187
+ }, z.core.$strict>;
1188
+ }, z.core.$strict>>;
1189
+ }, z.core.$strict>, z.ZodObject<{
1190
+ kind: z.ZodLiteral<"board-capture-accepted">;
1191
+ }, z.core.$strict>, z.ZodObject<{
1008
1192
  kind: z.ZodLiteral<"native-state">;
1009
1193
  state: z.ZodObject<{
1194
+ modelSelectionRequired: z.ZodOptional<z.ZodBoolean>;
1010
1195
  running: z.ZodBoolean;
1011
1196
  blank: z.ZodBoolean;
1012
1197
  error: z.ZodNullable<z.ZodString>;
@@ -1141,6 +1326,7 @@ export declare const citeCiterResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1141
1326
  captureId: z.ZodOptional<z.ZodString>;
1142
1327
  documentTitle: z.ZodOptional<z.ZodString>;
1143
1328
  topic: z.ZodObject<{
1329
+ modelSelectionRequired: z.ZodOptional<z.ZodBoolean>;
1144
1330
  permission: z.ZodOptional<z.ZodEnum<{
1145
1331
  "read-only": "read-only";
1146
1332
  "workspace-write": "workspace-write";
@@ -1178,8 +1364,8 @@ export declare const citeCiterResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1178
1364
  }>;
1179
1365
  fileIndex: z.ZodOptional<z.ZodNumber>;
1180
1366
  side: z.ZodOptional<z.ZodEnum<{
1181
- old: "old";
1182
1367
  new: "new";
1368
+ old: "old";
1183
1369
  }>>;
1184
1370
  }, z.core.$strict>, z.ZodObject<{
1185
1371
  kind: z.ZodLiteral<"document-range">;
@@ -1220,8 +1406,8 @@ export declare const citeCiterResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1220
1406
  role: z.ZodLiteral<"user">;
1221
1407
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1222
1408
  kind: z.ZodEnum<{
1223
- image: "image";
1224
1409
  file: "file";
1410
+ image: "image";
1225
1411
  }>;
1226
1412
  id: z.ZodString;
1227
1413
  name: z.ZodString;
@@ -1247,8 +1433,8 @@ export declare const citeCiterResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1247
1433
  role: z.ZodLiteral<"tool">;
1248
1434
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1249
1435
  kind: z.ZodEnum<{
1250
- image: "image";
1251
1436
  file: "file";
1437
+ image: "image";
1252
1438
  }>;
1253
1439
  id: z.ZodString;
1254
1440
  name: z.ZodString;
@@ -1292,8 +1478,8 @@ export declare const citeCiterResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1292
1478
  elements: z.ZodArray<z.ZodObject<{
1293
1479
  id: z.ZodString;
1294
1480
  kind: z.ZodEnum<{
1295
- image: "image";
1296
1481
  text: "text";
1482
+ image: "image";
1297
1483
  markdown: "markdown";
1298
1484
  math: "math";
1299
1485
  svg: "svg";
@@ -1328,6 +1514,7 @@ export declare const citeCiterResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1328
1514
  }, z.core.$strict>, z.ZodObject<{
1329
1515
  kind: z.ZodLiteral<"topics">;
1330
1516
  topics: z.ZodArray<z.ZodObject<{
1517
+ modelSelectionRequired: z.ZodOptional<z.ZodBoolean>;
1331
1518
  permission: z.ZodOptional<z.ZodEnum<{
1332
1519
  "read-only": "read-only";
1333
1520
  "workspace-write": "workspace-write";
@@ -1365,8 +1552,8 @@ export declare const citeCiterResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1365
1552
  }>;
1366
1553
  fileIndex: z.ZodOptional<z.ZodNumber>;
1367
1554
  side: z.ZodOptional<z.ZodEnum<{
1368
- old: "old";
1369
1555
  new: "new";
1556
+ old: "old";
1370
1557
  }>>;
1371
1558
  }, z.core.$strict>, z.ZodObject<{
1372
1559
  kind: z.ZodLiteral<"document-range">;
@@ -1424,8 +1611,8 @@ export declare const citeCiterResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1424
1611
  sourceSessionId: z.ZodString;
1425
1612
  topicId: z.ZodNumber;
1426
1613
  cleanup: z.ZodEnum<{
1427
- complete: "complete";
1428
1614
  pending: "pending";
1615
+ complete: "complete";
1429
1616
  }>;
1430
1617
  }, z.core.$strict>, z.ZodObject<{
1431
1618
  kind: z.ZodLiteral<"document">;
@@ -0,0 +1,13 @@
1
+ /** Public Typert schema forms: 0.1.5 reads schema; 0.1.7 creates it lazily. Both refer to one schema. */
2
+ export declare function strictCodec<T>(typeSymbol: string, schema: T): {
3
+ mode: "strict";
4
+ typeSymbol: string;
5
+ schema: T;
6
+ create: () => T;
7
+ };
8
+ /** Publish the same named schema through both supported registry contracts. */
9
+ export declare function namedSchema<T>(name: string, schema: T): {
10
+ name: string;
11
+ schema: T;
12
+ create: () => T;
13
+ };