@monoflake/sdk 2026.1005.3 → 2026.1005.4
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.
|
@@ -11,7 +11,7 @@ import { LOCALE_CODES } from "@canmi/me/locales";
|
|
|
11
11
|
*
|
|
12
12
|
* So there is one route, `POST /batch`, and the body says which question it is. `type` selects the
|
|
13
13
|
* module that reads the rest; adding a batchable question adds a variant here and a handler there,
|
|
14
|
-
* and no route at all. See spec/architecture/
|
|
14
|
+
* and no route at all. See web's spec/architecture/site-api.md, "One batch entry point".
|
|
15
15
|
*/
|
|
16
16
|
/** A slug names an article; the list is bounded so one request cannot ask for the whole corpus. */
|
|
17
17
|
const slugs = v.pipe(v.array(v.string()), v.maxLength(64));
|
|
@@ -4052,7 +4052,7 @@ export type RootView = v.InferOutput<typeof RootViewSchema>;
|
|
|
4052
4052
|
* The root's view grouped as it is stored, plus the two things only a request can supply: which
|
|
4053
4053
|
* article was asked for. No read count: a counter is written by every visitor and a view is not,
|
|
4054
4054
|
* so carrying it here gave one number nine cached copies of itself. See
|
|
4055
|
-
* spec/architecture/
|
|
4055
|
+
* web's spec/architecture/site-api.md, "A read count is not here at all".
|
|
4056
4056
|
*/
|
|
4057
4057
|
export type ViewAnswer = Omit<RootView, 'locale'> & {
|
|
4058
4058
|
/** What was asked for: the identity, which is the only thing `?slug=` takes. */
|
|
@@ -4062,7 +4062,7 @@ export type ViewAnswer = Omit<RootView, 'locale'> & {
|
|
|
4062
4062
|
*
|
|
4063
4063
|
* This is what lets the site tell a canonical address from one that merely reaches the
|
|
4064
4064
|
* article: `/{wrong}/{slug}` and `/{slug}` both resolve, and both are redirected here. See
|
|
4065
|
-
* spec/architecture/
|
|
4065
|
+
* web's spec/architecture/site-api.md, "Reaching an article by name".
|
|
4066
4066
|
*/
|
|
4067
4067
|
path: string;
|
|
4068
4068
|
url: string;
|