@kitsuden/shared 0.0.0-stage → 0.9.0-beta
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/LICENSE +21 -0
- package/README.md +65 -2
- package/dist/admin-registry-contract.d.ts +99 -0
- package/dist/admin-registry-contract.d.ts.map +1 -0
- package/dist/admin-view.d.ts +123 -0
- package/dist/admin-view.d.ts.map +1 -0
- package/dist/agent-permission.d.ts +161 -0
- package/dist/agent-permission.d.ts.map +1 -0
- package/dist/approvals.d.ts +164 -0
- package/dist/approvals.d.ts.map +1 -0
- package/dist/automation.d.ts +175 -0
- package/dist/automation.d.ts.map +1 -0
- package/dist/block-keys.d.ts +82 -0
- package/dist/block-keys.d.ts.map +1 -0
- package/dist/code-scan.d.ts +64 -0
- package/dist/code-scan.d.ts.map +1 -0
- package/dist/comment-subjects.d.ts +129 -0
- package/dist/comment-subjects.d.ts.map +1 -0
- package/dist/connections.d.ts +96 -0
- package/dist/connections.d.ts.map +1 -0
- package/dist/constants.d.ts +37 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/content-publishing.d.ts +34 -0
- package/dist/content-publishing.d.ts.map +1 -0
- package/dist/contracts.d.ts +87 -0
- package/dist/contracts.d.ts.map +1 -0
- package/dist/dataset-catalog.d.ts +91 -0
- package/dist/dataset-catalog.d.ts.map +1 -0
- package/dist/deck-analysis.d.ts +63 -0
- package/dist/deck-analysis.d.ts.map +1 -0
- package/dist/env.d.ts +2 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/errors.d.ts +275 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/field-types.d.ts +304 -0
- package/dist/field-types.d.ts.map +1 -0
- package/dist/index.d.ts +79 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7785 -0
- package/dist/kon-api.d.ts +914 -0
- package/dist/kon-api.d.ts.map +1 -0
- package/dist/kon-entities.d.ts +204 -0
- package/dist/kon-entities.d.ts.map +1 -0
- package/dist/kon-events.d.ts +103 -0
- package/dist/kon-events.d.ts.map +1 -0
- package/dist/kon-package.d.ts +124 -0
- package/dist/kon-package.d.ts.map +1 -0
- package/dist/link-relations.d.ts +73 -0
- package/dist/link-relations.d.ts.map +1 -0
- package/dist/meta-levels.d.ts +81 -0
- package/dist/meta-levels.d.ts.map +1 -0
- package/dist/models-sql.d.ts +110 -0
- package/dist/models-sql.d.ts.map +1 -0
- package/dist/models.d.ts +354 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/operations.d.ts +428 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/promotion.d.ts +244 -0
- package/dist/promotion.d.ts.map +1 -0
- package/dist/public-site.d.ts +106 -0
- package/dist/public-site.d.ts.map +1 -0
- package/dist/render-blocks.d.ts +150 -0
- package/dist/render-blocks.d.ts.map +1 -0
- package/dist/reports.d.ts +109 -0
- package/dist/reports.d.ts.map +1 -0
- package/dist/rls-builder.d.ts +136 -0
- package/dist/rls-builder.d.ts.map +1 -0
- package/dist/safe-pattern.d.ts +47 -0
- package/dist/safe-pattern.d.ts.map +1 -0
- package/dist/schemas.d.ts +977 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/sensitivity.d.ts +37 -0
- package/dist/sensitivity.d.ts.map +1 -0
- package/dist/signer.d.ts +67 -0
- package/dist/signer.d.ts.map +1 -0
- package/dist/tier-ranges.d.ts +37 -0
- package/dist/tier-ranges.d.ts.map +1 -0
- package/dist/types.d.ts +261 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils.d.ts +71 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/wiki-links.d.ts +56 -0
- package/dist/wiki-links.d.ts.map +1 -0
- package/package.json +53 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-publishing.d.ts","sourceRoot":"","sources":["../src/content-publishing.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE3D,qBAAa,yBAAyB;IACpC,OAAO,CAAC,OAAO,CAAoC;IACnD,OAAO,CAAC,GAAG,CAAa;gBAEZ,GAAG,EAAE,UAAU;IAI3B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAKrC;;OAEG;IACH,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAKlC;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS;IAIhD;;OAEG;IACH,MAAM,IAAI,aAAa,EAAE;IAIzB;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;CAG/B;AAGD,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CONTRACT versions of Kitsuden's public API
|
|
3
|
+
* ============================================================================
|
|
4
|
+
*
|
|
5
|
+
* Kitsuden's version (`0.9.0-beta`, the one in `apps/api/package.json`) says
|
|
6
|
+
* which code is running. It does not say whether an outside client —Inti with
|
|
7
|
+
* `@intijs/adapter-kitsuden`, an alternative panel, a script— still
|
|
8
|
+
* understands what it responds: two Kitsuden versions can speak the
|
|
9
|
+
* same contract, and a single minor version can break it.
|
|
10
|
+
*
|
|
11
|
+
* That is why each surface consumed by someone outside carries its own INTEGER
|
|
12
|
+
* number (a "major" version), which `GET /api/version` publishes as is:
|
|
13
|
+
*
|
|
14
|
+
* page-builder /api/page-builder/pages, /pages/:id, /block-types and the
|
|
15
|
+
* block writes (POST/PATCH/DELETE, reorder,
|
|
16
|
+
* duplicate)
|
|
17
|
+
* games reading entries: GET /api/games/slug/:slug and /:id
|
|
18
|
+
* (mostly `blocks[]`: id, type, order, data, editorial)
|
|
19
|
+
* games-editorial PATCH /api/games/:id/blocks/:blockId/editorial and
|
|
20
|
+
* PUT /api/games/:id/blocks/order
|
|
21
|
+
* admin-registry GET /api/admin/registry (see admin-registry-contract.ts)
|
|
22
|
+
*
|
|
23
|
+
* ─────────────────────────────────────────────────────────────────────────────
|
|
24
|
+
* When a number is bumped (full policy: docs/install/versiones.md)
|
|
25
|
+
*
|
|
26
|
+
* It does NOT bump (compatible):
|
|
27
|
+
* - adding a field to a response
|
|
28
|
+
* - adding a new route, or an optional parameter to an existing one
|
|
29
|
+
* - adding a block type to `/block-types`
|
|
30
|
+
* - accepting more input forms than were accepted
|
|
31
|
+
*
|
|
32
|
+
* It DOES bump (incompatible):
|
|
33
|
+
* - removing or renaming a field of a response or a body
|
|
34
|
+
* - changing its type or meaning (e.g. `sortOrder` stops being a number,
|
|
35
|
+
* `order` starts counting from 1, `editorial.hidden` changes meaning)
|
|
36
|
+
* - making something mandatory that was optional in a request
|
|
37
|
+
* - changing the envelope (`{ blockTypes: [...] }` → bare array)
|
|
38
|
+
* - removing or moving a route, or changing the status code of a documented
|
|
39
|
+
* case (404 ↔ 403, 200 ↔ 201)
|
|
40
|
+
* - requiring a different permission/scope for what was already possible
|
|
41
|
+
*
|
|
42
|
+
* When bumping one: change the number HERE, regenerate the reference responses
|
|
43
|
+
* (`contracts/inti/reference-responses.json`) and note it in
|
|
44
|
+
* the compatibility matrix of docs/install/versiones.md.
|
|
45
|
+
* ─────────────────────────────────────────────────────────────────────────────
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* Semver version of Kitsuden (the API). It must match `version` in
|
|
49
|
+
* `apps/api/package.json` and in the root `package.json`: it is guarded by
|
|
50
|
+
* `tests/unit/inti-contract.test.ts`. It lives here and is not read from package.json
|
|
51
|
+
* because the API is packaged with `bun build` and its tsconfig does not resolve JSON.
|
|
52
|
+
*/
|
|
53
|
+
export declare const KITSUDEN_VERSION = "0.9.0-beta";
|
|
54
|
+
export declare const CONTRACTS: {
|
|
55
|
+
readonly "page-builder": 1;
|
|
56
|
+
readonly "page-builder-publish": 1;
|
|
57
|
+
readonly "page-builder-patch": 1;
|
|
58
|
+
readonly games: 2;
|
|
59
|
+
readonly "games-editorial": 2;
|
|
60
|
+
readonly "admin-registry": 1;
|
|
61
|
+
};
|
|
62
|
+
export type ContractName = keyof typeof CONTRACTS;
|
|
63
|
+
/**
|
|
64
|
+
* Versions of the CODE contracts (not HTTP): what a third-party kon
|
|
65
|
+
* needs to know to declare itself compatible. Same criterion as `CONTRACTS`
|
|
66
|
+
* (integer, bumped only if something breaks), but in its own field of
|
|
67
|
+
* `GET /api/version` (`sdk`): an HTTP client like Inti does not depend on them.
|
|
68
|
+
*
|
|
69
|
+
* kons the operations SDK (`operations.ts`, docs/kons/README.md).
|
|
70
|
+
* A kon declares it with `sdk: 1` (in its definition or in kon.json);
|
|
71
|
+
* the loader refuses to mount one that asks for a higher major version.
|
|
72
|
+
*/
|
|
73
|
+
export declare const SDKS: {
|
|
74
|
+
readonly kons: 1;
|
|
75
|
+
};
|
|
76
|
+
/** What `GET /api/version` responds with */
|
|
77
|
+
export interface VersionResponse {
|
|
78
|
+
/** Product name: always "kitsuden" (lets the API be recognized). Up to 0.8: `producto`. */
|
|
79
|
+
product: "kitsuden";
|
|
80
|
+
/** Semver version of the API (the one in `apps/api/package.json`) */
|
|
81
|
+
version: string;
|
|
82
|
+
/** Major version of each public contract. Up to 0.8: `contratos`. */
|
|
83
|
+
contracts: Record<string, number>;
|
|
84
|
+
/** Version of each code contract (`SDKS`): the kon SDK. */
|
|
85
|
+
sdk?: Record<string, number>;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAKH;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAE7C,eAAO,MAAM,SAAS;;;;;;;CAaZ,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAElD;;;;;;;;;GASG;AACH,eAAO,MAAM,IAAI;;CAEP,CAAC;AAEX,4CAA4C;AAC5C,MAAM,WAAW,eAAe;IAC9B,2FAA2F;IAC3F,OAAO,EAAE,UAAU,CAAC;IACpB,qEAAqE;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,2DAA2D;IAC3D,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { type RLSUser } from "./rls-builder";
|
|
2
|
+
/**
|
|
3
|
+
* Reading a CMS dataset as a kon's catalog
|
|
4
|
+
* ============================================================================
|
|
5
|
+
*
|
|
6
|
+
* ── WHY IT IS HERE AND NOT IN A KON ────────────────────────────────────────
|
|
7
|
+
*
|
|
8
|
+
* `kon-tierlist` was the first to read `data_sets`/`data_entries` to build
|
|
9
|
+
* its catalog, and it did it well: respecting `checkReadAccess` and taking the
|
|
10
|
+
* image field from what the dataset DECLARES instead of guessing by name.
|
|
11
|
+
*
|
|
12
|
+
* As soon as a second kon needed the same —the card simulator and the
|
|
13
|
+
* character builder— copying those fifty lines would have created three
|
|
14
|
+
* readers that drift apart. And the one that silently drifts is the ACCESS
|
|
15
|
+
* one: it is enough for one copy to forget `checkReadAccess` for that kon
|
|
16
|
+
* to become a back door into another kon's private datasets. It is not
|
|
17
|
+
* hypothetical, it is the default failure mode of copy-pasting a read function.
|
|
18
|
+
*
|
|
19
|
+
* That is why it lives in `@kitsuden/shared`, next to the access check it
|
|
20
|
+
* forces you to use.
|
|
21
|
+
*
|
|
22
|
+
* ── NOTHING IS GUESSED ─────────────────────────────────────────────────────
|
|
23
|
+
*
|
|
24
|
+
* Fields come from the `schema` the dataset declares, never from heuristics
|
|
25
|
+
* on the column name. "If it is called `name` it will be the label" is where
|
|
26
|
+
* catalogs with the wrong label come from, and it fails as soon as
|
|
27
|
+
* someone writes their dataset in another language.
|
|
28
|
+
*/
|
|
29
|
+
/** A field as declared by the dataset's `schema`. */
|
|
30
|
+
export interface DatasetField {
|
|
31
|
+
name?: string;
|
|
32
|
+
key?: string;
|
|
33
|
+
type?: string;
|
|
34
|
+
label?: string;
|
|
35
|
+
}
|
|
36
|
+
/** A row of the dataset. `title` is `NOT NULL` in the model: it is always there. */
|
|
37
|
+
export interface DatasetEntry {
|
|
38
|
+
id: string;
|
|
39
|
+
title: string;
|
|
40
|
+
data: Record<string, unknown>;
|
|
41
|
+
}
|
|
42
|
+
export interface DatasetCatalog {
|
|
43
|
+
dataset: {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
};
|
|
47
|
+
fields: DatasetField[];
|
|
48
|
+
entries: DatasetEntry[];
|
|
49
|
+
/**
|
|
50
|
+
* Field declared as an image, or `null`. It goes in the responses: if the
|
|
51
|
+
* whole catalog comes out without a photo, this says why without having to
|
|
52
|
+
* open the code.
|
|
53
|
+
*/
|
|
54
|
+
imageField: string | null;
|
|
55
|
+
/** The first field declared with that type, or `null`. */
|
|
56
|
+
fieldOfType(type: string): string | null;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Row cap.
|
|
60
|
+
*
|
|
61
|
+
* A dataset does not have to be small —the One Piece dump is 2,876
|
|
62
|
+
* cards— and an unbounded query is the one that takes the process down the day
|
|
63
|
+
* someone uploads a catalog of a hundred thousand rows. The cap is declared here,
|
|
64
|
+
* can be raised per call, and routes say in their response whether they hit it.
|
|
65
|
+
*/
|
|
66
|
+
export declare const DATASET_MAX_ROWS = 5000;
|
|
67
|
+
/** The minimum asked of the database: run SQL. */
|
|
68
|
+
export interface DatasetReader {
|
|
69
|
+
execute(query: unknown): Promise<unknown>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A CMS dataset, with its access control already applied.
|
|
73
|
+
*
|
|
74
|
+
* Returns `null` both if the dataset does not exist and if the user cannot
|
|
75
|
+
* read it: from the outside they are the same result on purpose, because
|
|
76
|
+
* telling them apart turns the route into an oracle that confirms which datasets exist.
|
|
77
|
+
*/
|
|
78
|
+
export declare function readDatasetCatalog(db: DatasetReader, datasetId: string, user: RLSUser, options?: {
|
|
79
|
+
limit?: number;
|
|
80
|
+
}): Promise<DatasetCatalog | null>;
|
|
81
|
+
/**
|
|
82
|
+
* A usable image URL, or `null`.
|
|
83
|
+
*
|
|
84
|
+
* Only what is ALREADY an address is accepted. An `image` field stores the id of
|
|
85
|
+
* a media item, and putting a uuid in a `src` gives a broken image — which reads as
|
|
86
|
+
* "this row has no photo" and not as "the id needs resolving".
|
|
87
|
+
*/
|
|
88
|
+
export declare function datasetImageUrl(value: unknown): string | null;
|
|
89
|
+
/** A number from the dataset, or `undefined`. Datasets often store text. */
|
|
90
|
+
export declare function datasetNumber(value: unknown): number | undefined;
|
|
91
|
+
//# sourceMappingURL=dataset-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataset-catalog.d.ts","sourceRoot":"","sources":["../src/dataset-catalog.ts"],"names":[],"mappings":"AAGA,OAAO,EAAoC,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,oFAAoF;AACpF,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB;;;;OAIG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0DAA0D;IAC1D,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAC1C;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,kDAAkD;AAClD,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC3C;AASD;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACtC,EAAE,EAAE,aAAa,EACjB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,OAAO,EACb,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,GAC/B,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAgDhC;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAE7D;AAED,4EAA4E;AAC5E,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAOhE"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The vocabulary of a deck's analysis. ONE, for both sides.
|
|
3
|
+
* ============================================================================
|
|
4
|
+
*
|
|
5
|
+
* Which bars a deck's profile has, what the "skill ceiling" measures, which
|
|
6
|
+
* roles a card can play. Both of these need it at once:
|
|
7
|
+
*
|
|
8
|
+
* · the card-game loader (in the site repository), which uses it to build
|
|
9
|
+
* the SCHEMA of the editorial dataset that the panel fills in;
|
|
10
|
+
* · the site's deck-analysis page code, which uses it to know which fields to read
|
|
11
|
+
* and what name to draw them with.
|
|
12
|
+
*
|
|
13
|
+
* If they lived duplicated, adding a bar on one side would leave it without a
|
|
14
|
+
* label on the other —or worse: saved and never drawn—, which is exactly the
|
|
15
|
+
* failure that makes a panel field look like it does not save. Same reason
|
|
16
|
+
* `renderBlocks` lives here.
|
|
17
|
+
*
|
|
18
|
+
* ── WHAT THIS IS NOT ───────────────────────────────────────────────────────
|
|
19
|
+
*
|
|
20
|
+
* It is not data: it is the BOXES. What goes inside is written by the team and
|
|
21
|
+
* is their opinion. A deck's figures —share, lists, most-included
|
|
22
|
+
* cards— come from the source and live elsewhere.
|
|
23
|
+
*/
|
|
24
|
+
export interface AnalysisMeasure {
|
|
25
|
+
key: string;
|
|
26
|
+
label: string;
|
|
27
|
+
/** What it means, for the bar's footer */
|
|
28
|
+
note?: string;
|
|
29
|
+
}
|
|
30
|
+
/** The seven bars of the profile, in reading order. */
|
|
31
|
+
export declare const DECK_BARS: AnalysisMeasure[];
|
|
32
|
+
/** How much the deck depends on whoever pilots it. */
|
|
33
|
+
export declare const SKILL_MEASURES: AnalysisMeasure[];
|
|
34
|
+
/** What is valued about a card within its deck. */
|
|
35
|
+
export declare const CARD_MEASURES: AnalysisMeasure[];
|
|
36
|
+
/** The deck archetypes that repeat in any card game. */
|
|
37
|
+
export declare const DECK_TYPES: string[];
|
|
38
|
+
export declare const GRADES: string[];
|
|
39
|
+
export declare const LEARNING_CURVES: string[];
|
|
40
|
+
/** The roles a card can have within the deck. */
|
|
41
|
+
export declare const CARD_ROLES: string[];
|
|
42
|
+
/** The phases in which a deck's resilience is measured. */
|
|
43
|
+
export declare const ENDURANCE_PHASES: string[];
|
|
44
|
+
/**
|
|
45
|
+
* The factors the grade is composed of, with their weight.
|
|
46
|
+
*
|
|
47
|
+
* They come proposed because they are the ones used in the genre, but the weight
|
|
48
|
+
* is decided by whoever signs the analysis: the final grade is theirs, not this file's.
|
|
49
|
+
*/
|
|
50
|
+
export declare const GRADE_FACTORS: string[];
|
|
51
|
+
/**
|
|
52
|
+
* The grade composed from the factors and their weights.
|
|
53
|
+
*
|
|
54
|
+
* It is calculated and not written by hand because a hand-written weighted
|
|
55
|
+
* average drifts as soon as a weight is touched, and then the grade stops
|
|
56
|
+
* meaning what the table underneath it says. It returns `null` when there are
|
|
57
|
+
* no weighted factors: a grade with nothing to calculate it from is not invented.
|
|
58
|
+
*/
|
|
59
|
+
export declare function weightedScore(factors: Array<{
|
|
60
|
+
weight?: unknown;
|
|
61
|
+
score?: unknown;
|
|
62
|
+
}>): number | null;
|
|
63
|
+
//# sourceMappingURL=deck-analysis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deck-analysis.d.ts","sourceRoot":"","sources":["../src/deck-analysis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,uDAAuD;AACvD,eAAO,MAAM,SAAS,EAAE,eAAe,EAQtC,CAAC;AAEF,sDAAsD;AACtD,eAAO,MAAM,cAAc,EAAE,eAAe,EAsB3C,CAAC;AAEF,mDAAmD;AACnD,eAAO,MAAM,aAAa,EAAE,eAAe,EAM1C,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,UAAU,UAUtB,CAAC;AAEF,eAAO,MAAM,MAAM,UAAiD,CAAC;AAErE,eAAO,MAAM,eAAe,UAAwD,CAAC;AAErF,iDAAiD;AACjD,eAAO,MAAM,UAAU,UAOtB,CAAC;AAEF,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,UAQ5B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,UAWzB,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,KAAK,CAAC;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,GACpD,MAAM,GAAG,IAAI,CAWf"}
|
package/dist/env.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAIA,wBAAgB,OAAO,CACrB,IAAI,EAAE,MAAM,EACZ,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAgB,GACrD,MAAM,GAAG,SAAS,CAEpB"}
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog of Kitsuden API errors (RFC 9457, `application/problem+json`)
|
|
3
|
+
* ============================================================================
|
|
4
|
+
*
|
|
5
|
+
* An agent cannot read "HTTP 409" and guess whether to retry, wait or
|
|
6
|
+
* change the request. That is why every error response from `/api/*` carries:
|
|
7
|
+
*
|
|
8
|
+
* - `code` — stable, from this catalog (`KITSUDEN_E_*`). It is the
|
|
9
|
+
* contract: it is not renamed or reused for something else.
|
|
10
|
+
* - `retryable` — whether repeating the SAME request might succeed.
|
|
11
|
+
* - `retry_after` — seconds to wait before retrying (or `null`).
|
|
12
|
+
* - `hint` — what to do, in one sentence.
|
|
13
|
+
* - `docs` and `type` — the URL of this code's entry in the public guide.
|
|
14
|
+
*
|
|
15
|
+
* And the RFC 9457 fields: `type`, `title`, `status`, `detail`, `instance`.
|
|
16
|
+
*
|
|
17
|
+
* The `error` field is kept exactly as each route sent it (text or object
|
|
18
|
+
* `{ code, message, details }`): the panel, the websites, Inti and the SDK read it.
|
|
19
|
+
*
|
|
20
|
+
* Only the catalog and the body construction live here (pure, no Hono):
|
|
21
|
+
* the API (output middleware), the MCP server and the clients share them.
|
|
22
|
+
* The public guide is `docs/install/errors-and-retries.md`; a test checks
|
|
23
|
+
* that every code has its entry there.
|
|
24
|
+
*/
|
|
25
|
+
/** Where the error guide lives (each code is an anchor on that page). */
|
|
26
|
+
export declare const ERROR_DOCS = "https://github.com/Kitsuden/kitsuden/blob/main/docs/install/errors-and-retries.md";
|
|
27
|
+
export interface ErrorCatalogEntry {
|
|
28
|
+
/** HTTP status it normally comes out with. */
|
|
29
|
+
status: number;
|
|
30
|
+
/** Short, stable title (RFC 9457 `title`). */
|
|
31
|
+
title: string;
|
|
32
|
+
/** Might repeating the same request succeed? */
|
|
33
|
+
retryable: boolean;
|
|
34
|
+
/** Suggested wait in seconds if the response has no `Retry-After`. */
|
|
35
|
+
retryAfter?: number;
|
|
36
|
+
/** What to do, in one sentence. */
|
|
37
|
+
hint: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The catalog. Adding is compatible; renaming or removing a code is NOT
|
|
41
|
+
* (there are agents that branch on it).
|
|
42
|
+
*/
|
|
43
|
+
export declare const KITSUDEN_ERRORS: {
|
|
44
|
+
readonly KITSUDEN_E_BAD_REQUEST: {
|
|
45
|
+
readonly status: 400;
|
|
46
|
+
readonly title: "Bad request";
|
|
47
|
+
readonly retryable: false;
|
|
48
|
+
readonly hint: "Fix the request (syntax, parameters or headers) before sending it again.";
|
|
49
|
+
};
|
|
50
|
+
readonly KITSUDEN_E_VALIDATION: {
|
|
51
|
+
readonly status: 422;
|
|
52
|
+
readonly title: "Validation failed";
|
|
53
|
+
readonly retryable: false;
|
|
54
|
+
readonly hint: "Correct the fields listed in `error.details` and send the request again.";
|
|
55
|
+
};
|
|
56
|
+
readonly KITSUDEN_E_UNAUTHENTICATED: {
|
|
57
|
+
readonly status: 401;
|
|
58
|
+
readonly title: "Authentication required";
|
|
59
|
+
readonly retryable: false;
|
|
60
|
+
readonly hint: "Send a valid session cookie or an `Authorization: Bearer kitsuden_agent_…` key.";
|
|
61
|
+
};
|
|
62
|
+
readonly KITSUDEN_E_LEGACY_KEY_RETIRED: {
|
|
63
|
+
readonly status: 401;
|
|
64
|
+
readonly title: "Legacy API key retired";
|
|
65
|
+
readonly retryable: false;
|
|
66
|
+
readonly hint: "`kitsuden_sk_*` keys no longer work. Create an agent identity and use its `kitsuden_agent_*` key.";
|
|
67
|
+
};
|
|
68
|
+
readonly KITSUDEN_E_FORBIDDEN: {
|
|
69
|
+
readonly status: 403;
|
|
70
|
+
readonly title: "Forbidden";
|
|
71
|
+
readonly retryable: false;
|
|
72
|
+
readonly hint: "The caller is authenticated but lacks the role or scope this operation needs.";
|
|
73
|
+
};
|
|
74
|
+
readonly KITSUDEN_E_NOT_FOUND: {
|
|
75
|
+
readonly status: 404;
|
|
76
|
+
readonly title: "Not found";
|
|
77
|
+
readonly retryable: false;
|
|
78
|
+
readonly hint: "Check the identifier or path. Every route is listed in GET /api/docs/openapi.json.";
|
|
79
|
+
};
|
|
80
|
+
readonly KITSUDEN_E_METHOD_NOT_ALLOWED: {
|
|
81
|
+
readonly status: 405;
|
|
82
|
+
readonly title: "Method not allowed";
|
|
83
|
+
readonly retryable: false;
|
|
84
|
+
readonly hint: "The path exists; use one of the methods in the `Allow` header.";
|
|
85
|
+
};
|
|
86
|
+
readonly KITSUDEN_E_CONFLICT: {
|
|
87
|
+
readonly status: 409;
|
|
88
|
+
readonly title: "Conflict";
|
|
89
|
+
readonly retryable: false;
|
|
90
|
+
readonly hint: "The current state of the resource does not allow this change. Read it again and decide.";
|
|
91
|
+
};
|
|
92
|
+
readonly KITSUDEN_E_PAYLOAD_TOO_LARGE: {
|
|
93
|
+
readonly status: 413;
|
|
94
|
+
readonly title: "Payload too large";
|
|
95
|
+
readonly retryable: false;
|
|
96
|
+
readonly hint: "Send a smaller body (the limit is in `maxBytes` when known).";
|
|
97
|
+
};
|
|
98
|
+
readonly KITSUDEN_E_UNSUPPORTED_MEDIA_TYPE: {
|
|
99
|
+
readonly status: 415;
|
|
100
|
+
readonly title: "Unsupported media type";
|
|
101
|
+
readonly retryable: false;
|
|
102
|
+
readonly hint: "Send the body with a supported `Content-Type` (usually `application/json`).";
|
|
103
|
+
};
|
|
104
|
+
readonly KITSUDEN_E_RATE_LIMITED: {
|
|
105
|
+
readonly status: 429;
|
|
106
|
+
readonly title: "Too many requests";
|
|
107
|
+
readonly retryable: true;
|
|
108
|
+
readonly retryAfter: 60;
|
|
109
|
+
readonly hint: "Wait `retry_after` seconds before sending more requests.";
|
|
110
|
+
};
|
|
111
|
+
readonly KITSUDEN_E_QUOTA_EXCEEDED: {
|
|
112
|
+
readonly status: 429;
|
|
113
|
+
readonly title: "Agent quota exceeded";
|
|
114
|
+
readonly retryable: true;
|
|
115
|
+
readonly retryAfter: 3600;
|
|
116
|
+
readonly hint: "This agent used up its daily writes or budget units. Wait `retry_after` seconds (until 00:00 UTC) or ask an admin to raise the quota.";
|
|
117
|
+
};
|
|
118
|
+
readonly KITSUDEN_E_APPROVAL_REQUIRED: {
|
|
119
|
+
readonly status: 202;
|
|
120
|
+
readonly title: "Pending human approval";
|
|
121
|
+
readonly retryable: false;
|
|
122
|
+
readonly hint: "Nothing was executed yet: the request was stored as a proposal for a human to approve. Do not resend it; poll `proposal.statusUrl` (or the MCP tool `kitsuden_proposal_status`) until it is executed, rejected or expired.";
|
|
123
|
+
};
|
|
124
|
+
readonly KITSUDEN_E_APPROVAL_UNSUPPORTED: {
|
|
125
|
+
readonly status: 403;
|
|
126
|
+
readonly title: "Request cannot be held for approval";
|
|
127
|
+
readonly retryable: false;
|
|
128
|
+
readonly hint: "This agent needs human approval for this request, but it cannot be stored as a proposal (it carries a secret, a file that is not an image, or a body that is too large). Ask a human to do it, or ask an admin to change the agent's approval mode.";
|
|
129
|
+
};
|
|
130
|
+
readonly KITSUDEN_E_APPROVAL_STALE: {
|
|
131
|
+
readonly status: 409;
|
|
132
|
+
readonly title: "Approval does not match the proposal shown";
|
|
133
|
+
readonly retryable: false;
|
|
134
|
+
readonly hint: "The approval must carry the `operationHash` of the proposal as it was shown, and the proposal is no longer (or never was) that operation. Nothing was executed: reload the proposal, check it again and approve with its current `operationHash`.";
|
|
135
|
+
};
|
|
136
|
+
readonly KITSUDEN_E_DENIED_UNATTENDED: {
|
|
137
|
+
readonly status: 403;
|
|
138
|
+
readonly title: "Refused in an unattended run";
|
|
139
|
+
readonly retryable: false;
|
|
140
|
+
readonly hint: "This request would wait for human approval, but nobody is attending this run, so it was refused instead and nothing was executed. Do what `alternative` says (usually: record the decision for a person with kitsuden_record_decision) rather than retrying.";
|
|
141
|
+
};
|
|
142
|
+
readonly KITSUDEN_E_AGENT_SPONSOR_INVALID: {
|
|
143
|
+
readonly status: 403;
|
|
144
|
+
readonly title: "Agent signer no longer valid";
|
|
145
|
+
readonly retryable: false;
|
|
146
|
+
readonly hint: "This agent signs what it creates with a human signer that no longer exists or is no longer an admin or editor. An admin must assign a new signer in the panel (Agents → agent → Signer).";
|
|
147
|
+
};
|
|
148
|
+
readonly KITSUDEN_E_IDEMPOTENCY_KEY_INVALID: {
|
|
149
|
+
readonly status: 422;
|
|
150
|
+
readonly title: "Invalid Idempotency-Key";
|
|
151
|
+
readonly retryable: false;
|
|
152
|
+
readonly hint: "Use 8-128 characters from [A-Za-z0-9_.:-]; a UUID works.";
|
|
153
|
+
};
|
|
154
|
+
readonly KITSUDEN_E_IDEMPOTENCY_KEY_REUSED: {
|
|
155
|
+
readonly status: 422;
|
|
156
|
+
readonly title: "Idempotency-Key reused with a different request";
|
|
157
|
+
readonly retryable: false;
|
|
158
|
+
readonly hint: "This key was already used for a different method, path or body. Generate a new key for a new operation.";
|
|
159
|
+
};
|
|
160
|
+
readonly KITSUDEN_E_IDEMPOTENCY_IN_PROGRESS: {
|
|
161
|
+
readonly status: 409;
|
|
162
|
+
readonly title: "Request with this Idempotency-Key still in progress";
|
|
163
|
+
readonly retryable: true;
|
|
164
|
+
readonly retryAfter: 1;
|
|
165
|
+
readonly hint: "Another request with the same key is running. Retry with the same key after `retry_after` seconds to get its result.";
|
|
166
|
+
};
|
|
167
|
+
readonly KITSUDEN_E_IDEMPOTENCY_NOT_REPLAYABLE: {
|
|
168
|
+
readonly status: 409;
|
|
169
|
+
readonly title: "Original response cannot be replayed";
|
|
170
|
+
readonly retryable: false;
|
|
171
|
+
readonly hint: "The original request with this key already succeeded, but its response carried a secret or was too large to store. Read the resource instead of repeating the write.";
|
|
172
|
+
};
|
|
173
|
+
readonly KITSUDEN_E_IDEMPOTENCY_UNAVAILABLE: {
|
|
174
|
+
readonly status: 503;
|
|
175
|
+
readonly title: "Idempotency store unavailable";
|
|
176
|
+
readonly retryable: true;
|
|
177
|
+
readonly retryAfter: 5;
|
|
178
|
+
readonly hint: "The request was NOT executed. Retry later with the same Idempotency-Key.";
|
|
179
|
+
};
|
|
180
|
+
readonly KITSUDEN_E_INTERNAL: {
|
|
181
|
+
readonly status: 500;
|
|
182
|
+
readonly title: "Internal server error";
|
|
183
|
+
readonly retryable: false;
|
|
184
|
+
readonly hint: "Not caused by the request. Report the `requestId`; retry only if the operation is idempotent or carries an Idempotency-Key.";
|
|
185
|
+
};
|
|
186
|
+
readonly KITSUDEN_E_BAD_GATEWAY: {
|
|
187
|
+
readonly status: 502;
|
|
188
|
+
readonly title: "Bad gateway";
|
|
189
|
+
readonly retryable: true;
|
|
190
|
+
readonly retryAfter: 5;
|
|
191
|
+
readonly hint: "An upstream service failed. Retry after `retry_after` seconds.";
|
|
192
|
+
};
|
|
193
|
+
readonly KITSUDEN_E_UNAVAILABLE: {
|
|
194
|
+
readonly status: 503;
|
|
195
|
+
readonly title: "Service unavailable";
|
|
196
|
+
readonly retryable: true;
|
|
197
|
+
readonly retryAfter: 5;
|
|
198
|
+
readonly hint: "Temporary. Retry after `retry_after` seconds.";
|
|
199
|
+
};
|
|
200
|
+
readonly KITSUDEN_E_DB_POOL_EXHAUSTED: {
|
|
201
|
+
readonly status: 503;
|
|
202
|
+
readonly title: "Database busy";
|
|
203
|
+
readonly retryable: true;
|
|
204
|
+
readonly retryAfter: 5;
|
|
205
|
+
readonly hint: "All database connections are in use. Retry after `retry_after` seconds.";
|
|
206
|
+
};
|
|
207
|
+
readonly KITSUDEN_E_TIMEOUT: {
|
|
208
|
+
readonly status: 504;
|
|
209
|
+
readonly title: "Gateway timeout";
|
|
210
|
+
readonly retryable: true;
|
|
211
|
+
readonly retryAfter: 5;
|
|
212
|
+
readonly hint: "The operation took too long. Retry after `retry_after` seconds (with an Idempotency-Key for writes).";
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
export type KitsudenErrorCode = keyof typeof KITSUDEN_ERRORS;
|
|
216
|
+
export declare function isKitsudenErrorCode(code: unknown): code is KitsudenErrorCode;
|
|
217
|
+
/** URL of a code's entry in the guide (the anchor is the lowercase code). */
|
|
218
|
+
export declare function errorDocsUrl(code: KitsudenErrorCode): string;
|
|
219
|
+
/** The default code for an HTTP status. */
|
|
220
|
+
export declare function errorCodeForStatus(status: number): KitsudenErrorCode;
|
|
221
|
+
/** Translates an old code (or one already in the catalog) to the catalog; `null` if unknown. */
|
|
222
|
+
export declare function errorCodeFromLegacy(code: unknown): KitsudenErrorCode | null;
|
|
223
|
+
/** Kitsuden `application/problem+json` body. */
|
|
224
|
+
export interface ProblemDetails {
|
|
225
|
+
/** RFC 9457: URI of the problem type (the guide entry). */
|
|
226
|
+
type: string;
|
|
227
|
+
title: string;
|
|
228
|
+
status: number;
|
|
229
|
+
detail: string;
|
|
230
|
+
/** Path of the request. */
|
|
231
|
+
instance?: string;
|
|
232
|
+
code: KitsudenErrorCode;
|
|
233
|
+
retryable: boolean;
|
|
234
|
+
/** Seconds; `null` if there is no suggested wait. */
|
|
235
|
+
retry_after: number | null;
|
|
236
|
+
hint: string;
|
|
237
|
+
docs: string;
|
|
238
|
+
requestId?: string | null;
|
|
239
|
+
traceId?: string | null;
|
|
240
|
+
/**
|
|
241
|
+
* Compatibility: what the route used to send in `error` (text or object
|
|
242
|
+
* `{ code, message, details }`). Always present.
|
|
243
|
+
*/
|
|
244
|
+
error: unknown;
|
|
245
|
+
[extension: string]: unknown;
|
|
246
|
+
}
|
|
247
|
+
export declare const PROBLEM_JSON = "application/problem+json";
|
|
248
|
+
/**
|
|
249
|
+
* Builds the body of a problem.
|
|
250
|
+
*
|
|
251
|
+
* `retryAfter` (from the `Retry-After` header, if there was one) overrides the
|
|
252
|
+
* catalog's default wait. `retryable` can be forced (e.g. a business 409
|
|
253
|
+
* known to be transient), but by default it comes from the catalog.
|
|
254
|
+
*/
|
|
255
|
+
export declare function buildProblem(opts: {
|
|
256
|
+
code: KitsudenErrorCode;
|
|
257
|
+
status?: number;
|
|
258
|
+
detail?: string;
|
|
259
|
+
instance?: string;
|
|
260
|
+
retryAfter?: number | null;
|
|
261
|
+
retryable?: boolean;
|
|
262
|
+
hint?: string;
|
|
263
|
+
requestId?: string | null;
|
|
264
|
+
traceId?: string | null;
|
|
265
|
+
/** Compatibility value for `error`; by default, the `detail`. */
|
|
266
|
+
error?: unknown;
|
|
267
|
+
/** Extension fields (they do not override those of RFC 9457 or Kitsuden). */
|
|
268
|
+
extensions?: Record<string, unknown>;
|
|
269
|
+
}): ProblemDetails;
|
|
270
|
+
/**
|
|
271
|
+
* Seconds from a `Retry-After` header (number or HTTP date). `null` if it is
|
|
272
|
+
* not understood.
|
|
273
|
+
*/
|
|
274
|
+
export declare function parseRetryAfter(value: string | null | undefined, now?: number): number | null;
|
|
275
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,yEAAyE;AACzE,eAAO,MAAM,UAAU,sFAC8D,CAAC;AAEtF,MAAM,WAAW,iBAAiB;IAChC,8CAA8C;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,SAAS,EAAE,OAAO,CAAC;IACnB,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2K0B,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,eAAe,CAAC;AAE7D,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,iBAAiB,CAE5E;AAED,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAE5D;AAED,2CAA2C;AAC3C,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,CAiCpE;AA6BD,gGAAgG;AAChG,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,iBAAiB,GAAG,IAAI,CAI3E;AAED,gDAAgD;AAChD,MAAM,WAAW,cAAc;IAC7B,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,qDAAqD;IACrD,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;OAGG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,YAAY,6BAA6B,CAAC;AAEvD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE;IACjC,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,iEAAiE;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC,GAAG,cAAc,CA4BjB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG,SAAa,GAAG,MAAM,GAAG,IAAI,CAOjG"}
|