@krizaka/org 0.6.0 → 0.7.1
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/README.md +29 -1
- package/bin/krizaka-code-names.mjs +57 -0
- package/dist/index.d.ts +74 -1
- package/dist/index.js +211 -6
- package/dist/index.js.map +1 -1
- package/dist/org.json +4 -13
- package/dist/org.schema.json +4 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Without a build step, read it from the CDN: [krizaka-assets.b-cdn.net/org/v1/org
|
|
|
21
21
|
`fetchDefaults(ORG_URL)` reads the section from the published JSON. A folder is never given a person.
|
|
22
22
|
- **One name per entry of the family.** `org.family` (and `familyName(id)`) is the only place a name is written: the company
|
|
23
23
|
is « Krizaka », a product goes by its own name (Orazaka, Yomizaka, Akinaza — never « Krizaka Yomizaka »), a library or a tool
|
|
24
|
-
is « Krizaka <X> » (Krizaka UI, Krizaka Java, Krizaka TypeScript, Krizaka Lab
|
|
24
|
+
is « Krizaka <X> » (Krizaka UI, Krizaka Java, Krizaka TypeScript, Krizaka Lab; the short name only under a
|
|
25
25
|
heading « Open source »). The bar, the switcher and every footer read it; a test holds the rule.
|
|
26
26
|
- **Public facts only.** Never an address, a phone number, figures, a secret, an IP address or an internal host: the test
|
|
27
27
|
scans for them and the schema refuses any field it does not list.
|
|
@@ -33,3 +33,31 @@ Without a build step, read it from the CDN: [krizaka-assets.b-cdn.net/org/v1/org
|
|
|
33
33
|
`MEDIA_STORAGE_API_KEY` and `MEDIA_STORAGE_ZONE`; without them it warns and publishes nothing.
|
|
34
34
|
|
|
35
35
|
Apache-2.0 · [Krizaka TypeScript](https://github.com/krizaka/krizaka-ts)
|
|
36
|
+
|
|
37
|
+
## What `org.json` is, and what it is not
|
|
38
|
+
|
|
39
|
+
**Service discovery only** (founder, 2026-11-01): the addresses and versions clients resolve (API URLs, minimum and latest app
|
|
40
|
+
versions, the default media, the family's names and addresses). It is read at start by the apps and published at each release.
|
|
41
|
+
Names, status, store availability, social links and the footer contents are **not** in it: they are admin configuration of each
|
|
42
|
+
app in its database, through `@krizaka/settings` (audit trail), read at runtime and at build where needed (a save redeploys).
|
|
43
|
+
The shared validation (no code name as a display name, FR/EN labels, valid URLs) lives in the settings package.
|
|
44
|
+
|
|
45
|
+
A rename is therefore: the administrator edits the value in the app's settings, saves, and the build-time pages redeploy.
|
|
46
|
+
The seed below is only the default of that setting.
|
|
47
|
+
|
|
48
|
+
## Commercial names (`brands`, a seed)
|
|
49
|
+
|
|
50
|
+
The code names (`yomizaka`, `akinaza`, `orazaka`, `kachizaka`) stay internal: repositories, packages, coordinates, CLI. A customer
|
|
51
|
+
reads the commercial name, endorsed by the company — **« Verikora by Krizaka »** / **« Verikora par Krizaka »**.
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
import { brandOf, displayName, lockup } from "@krizaka/org";
|
|
55
|
+
brandOf("akinaza").domains.shop; // "https://folioviv.shop"
|
|
56
|
+
displayName("yomizaka", settingValue); // the admin's choice (`brand.displayName`), else « Verikora »
|
|
57
|
+
lockup("orazaka", "fr"); // « Sovkora par Krizaka »
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**The guard.** `npx krizaka-code-names [--report] [--allow <path-part>] <built-html-dir> messages/ stores/` fails when a
|
|
61
|
+
public surface shows a code name (or « Krizaka ECM ») where the commercial name is required. Allowed, declared once: URLs
|
|
62
|
+
and hosts, `@krizaka/*` and `com.krizaka.*` coordinates, `krizaka/<repo>`, code (backticks, `<pre>`, `<code>`), class names
|
|
63
|
+
and attributes other than `alt` / `title` / `aria-label`, catalogue keys, and each brand's one « formerly » line.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// krizaka-code-names — a public surface never shows a code name where the commercial name is required (krizaka-internal#2036).
|
|
3
|
+
// krizaka-code-names [--report] [--allow <path-part>]... <file-or-dir>...
|
|
4
|
+
// Reads built HTML (visible text, title, description, social metadata, alt/title/aria-label), message catalogues (values only),
|
|
5
|
+
// and any other text file (emails, receipts, stores/*.json, llms.txt). `--allow` skips the files whose path contains the part
|
|
6
|
+
// (internal pages, developer pages). Exit 1 on a hit; `--report` prints and exits 0 (a repo starts as a report, then requires it).
|
|
7
|
+
import { readdirSync, readFileSync, statSync } from "node:fs";
|
|
8
|
+
import { extname, join } from "node:path";
|
|
9
|
+
|
|
10
|
+
import { catalogueValues, findCodeNames, visibleText } from "../dist/index.js";
|
|
11
|
+
|
|
12
|
+
const args = process.argv.slice(2);
|
|
13
|
+
const report = args.includes("--report");
|
|
14
|
+
const allow = [];
|
|
15
|
+
const roots = [];
|
|
16
|
+
for (let i = 0; i < args.length; i++) {
|
|
17
|
+
if (args[i] === "--report") continue;
|
|
18
|
+
if (args[i] === "--allow") allow.push(args[++i]);
|
|
19
|
+
else roots.push(args[i]);
|
|
20
|
+
}
|
|
21
|
+
if (roots.length === 0) {
|
|
22
|
+
console.error("usage: krizaka-code-names [--report] [--allow <path-part>]... <file-or-dir>...");
|
|
23
|
+
process.exit(2);
|
|
24
|
+
}
|
|
25
|
+
const TEXT = new Set([".html", ".htm", ".json", ".txt", ".md", ".mjml", ".hbs", ".xml", ".vtt"]);
|
|
26
|
+
const files = [];
|
|
27
|
+
const walk = (p) => {
|
|
28
|
+
if (allow.some((a) => p.includes(a))) return;
|
|
29
|
+
if (statSync(p).isDirectory()) {
|
|
30
|
+
for (const e of readdirSync(p)) if (e !== "node_modules" && !e.startsWith(".")) walk(join(p, e));
|
|
31
|
+
} else if (TEXT.has(extname(p).toLowerCase())) files.push(p);
|
|
32
|
+
};
|
|
33
|
+
roots.forEach(walk);
|
|
34
|
+
|
|
35
|
+
let count = 0;
|
|
36
|
+
for (const file of files) {
|
|
37
|
+
const raw = readFileSync(file, "utf8");
|
|
38
|
+
const ext = extname(file).toLowerCase();
|
|
39
|
+
let pieces;
|
|
40
|
+
if (ext === ".html" || ext === ".htm") pieces = [["", visibleText(raw)]];
|
|
41
|
+
else if (ext === ".json") {
|
|
42
|
+
try {
|
|
43
|
+
pieces = catalogueValues(JSON.parse(raw));
|
|
44
|
+
} catch {
|
|
45
|
+
pieces = [["", raw]];
|
|
46
|
+
}
|
|
47
|
+
} else pieces = [["", raw]];
|
|
48
|
+
for (const [key, text] of pieces) {
|
|
49
|
+
for (const hit of findCodeNames(text)) {
|
|
50
|
+
count++;
|
|
51
|
+
const where = key ? `${file} ${key}` : file;
|
|
52
|
+
console.log(`${where}: « ${hit.word} » → « ${hit.use} » …${hit.context}…`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
console.log(`${count} code name(s) on public surfaces in ${files.length} file(s)${report ? " (report only)" : ""}.`);
|
|
57
|
+
process.exit(count > 0 && !report ? 1 : 0);
|
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ interface FamilyEntry {
|
|
|
35
35
|
short: string;
|
|
36
36
|
group: FamilyGroup;
|
|
37
37
|
status: FamilyStatus;
|
|
38
|
+
/** The day it was released (`YYYY-MM-DD`): `released` on a product or an open-source entry needs it, data not words. */
|
|
39
|
+
releasedAt?: string;
|
|
38
40
|
/** Its home: the site, or the repository while it has no site. */
|
|
39
41
|
url: string;
|
|
40
42
|
/** Its public source repository (`null` for GitHub itself). */
|
|
@@ -171,6 +173,73 @@ declare const APP_SCHEMA_URL = "https://krizaka-assets.b-cdn.net/org/v1/app.sche
|
|
|
171
173
|
/** The runtime config a mobile app may know, per live product. The app reads it at start, with a copy built into the binary as fallback. */
|
|
172
174
|
declare const apps: Record<string, AppConfig>;
|
|
173
175
|
|
|
176
|
+
/**
|
|
177
|
+
* The commercial names (krizaka-internal#2033, #2035, #2036): the code name stays internal, the customer reads the
|
|
178
|
+
* commercial name, « Verikora by Krizaka ». Every app, site and template reads them from here — never a literal.
|
|
179
|
+
*
|
|
180
|
+
* These are NOT in `org.json`: the org JSON is service discovery only (the addresses and versions clients resolve). Names,
|
|
181
|
+
* status, stores and the footer are admin configuration of each app (`@krizaka/settings`, audit trail); this module is the
|
|
182
|
+
* seed and the validation vocabulary, not a published file.
|
|
183
|
+
*/
|
|
184
|
+
/** `product`: sold on its own. `service`: a part the products carry (Kridoc, the managed storage). */
|
|
185
|
+
type BrandKind = "product" | "service";
|
|
186
|
+
interface OrgBrand {
|
|
187
|
+
/** The internal name: the repository, the packages, the CLI (`yomizaka`). Never on a public page. */
|
|
188
|
+
codeName: string;
|
|
189
|
+
/** The name the customer reads (`Verikora`). One capital; capitals only in the wordmark. */
|
|
190
|
+
commercialName: string;
|
|
191
|
+
kind: BrandKind;
|
|
192
|
+
/** The endorsement after the name: « by Krizaka » / « par Krizaka ». */
|
|
193
|
+
endorsement: Localized;
|
|
194
|
+
/** The hosts of the brand (https URLs); `null` where it has none. */
|
|
195
|
+
domains: {
|
|
196
|
+
site: string;
|
|
197
|
+
app: string | null;
|
|
198
|
+
shop: string | null;
|
|
199
|
+
dev: string | null;
|
|
200
|
+
};
|
|
201
|
+
/** The one dated « formerly » line of the transition; `null` when the code name was never public. */
|
|
202
|
+
formerly: Localized | null;
|
|
203
|
+
}
|
|
204
|
+
/** The seed: one commercial name per code name. Nothing flips to it until the readiness checklist (krizaka-internal#2092). */
|
|
205
|
+
declare const brands: readonly OrgBrand[];
|
|
206
|
+
/** The brand of a code name (`brandOf("yomizaka").commercialName` → « Verikora »). */
|
|
207
|
+
declare const brandOf: (codeName: string) => OrgBrand;
|
|
208
|
+
/** The longest name an administrator may set (a bar, a store listing and an email subject must hold it). */
|
|
209
|
+
declare const DISPLAY_NAME_MAX = 30;
|
|
210
|
+
/**
|
|
211
|
+
* The name an app shows: the administrator's choice (`brand.displayName` in its settings) when one is set, else the
|
|
212
|
+
* commercial name. Never the code name: a setting equal to a code name falls back to the commercial name.
|
|
213
|
+
*/
|
|
214
|
+
declare const displayName: (codeName: string, chosen?: string | null) => string;
|
|
215
|
+
/** The lockup in words: « Verikora by Krizaka » / « Verikora par Krizaka ». `fr` reads French, anything else English. */
|
|
216
|
+
declare const lockup: (codeName: string, locale: string, chosen?: string | null) => string;
|
|
217
|
+
/** The words a public surface never shows: every code name, and « Krizaka ECM » (it is Kridoc). */
|
|
218
|
+
declare const CODE_NAMES: readonly string[];
|
|
219
|
+
/** The code name → commercial name map the guard prints in its hints. */
|
|
220
|
+
declare const codeNameMap: () => Record<string, string>;
|
|
221
|
+
interface CodeNameHit {
|
|
222
|
+
/** The word found, as written. */
|
|
223
|
+
word: string;
|
|
224
|
+
/** What to write instead. */
|
|
225
|
+
use: string;
|
|
226
|
+
/** Up to 40 characters around it. */
|
|
227
|
+
context: string;
|
|
228
|
+
}
|
|
229
|
+
/** The code names a piece of customer-facing text shows (case-insensitive, whole words), minus the allowed spans. */
|
|
230
|
+
declare const findCodeNames: (text: string) => CodeNameHit[];
|
|
231
|
+
/**
|
|
232
|
+
* The text a visitor reads in a built HTML page: the body text, the title, the description and social metadata, and the
|
|
233
|
+
* `alt`, `title` and `aria-label` attributes. Scripts, styles, `<pre>` and `<code>` (developer pages' commands) and
|
|
234
|
+
* comments are left out, and so are class names and links (a `brand-yomizaka` class or a GitHub href is not shown).
|
|
235
|
+
*/
|
|
236
|
+
declare const visibleText: (html: string) => string;
|
|
237
|
+
/**
|
|
238
|
+
* The values of a message catalogue (EN/FR JSON), keyed by their path. A key path may name a code name
|
|
239
|
+
* (`site.yomizaka.title`): keys are structure; only the values are read by a customer.
|
|
240
|
+
*/
|
|
241
|
+
declare const catalogueValues: (catalogue: unknown, path?: string) => [string, string][];
|
|
242
|
+
|
|
174
243
|
/** The products that have a demo cast. */
|
|
175
244
|
type CastProduct = "orazaka" | "yomizaka" | "akinaza";
|
|
176
245
|
/** What a persona does in the app: a member, a shop owner or a customer of one, an administrator. */
|
|
@@ -744,6 +813,10 @@ declare const orgSchema: {
|
|
|
744
813
|
readonly status: {
|
|
745
814
|
readonly enum: readonly ["released", "development"];
|
|
746
815
|
};
|
|
816
|
+
readonly releasedAt: {
|
|
817
|
+
readonly type: "string";
|
|
818
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
819
|
+
};
|
|
747
820
|
readonly url: {
|
|
748
821
|
readonly type: "string";
|
|
749
822
|
readonly format: "uri";
|
|
@@ -928,4 +1001,4 @@ declare const footerLine: (locale: string) => string;
|
|
|
928
1001
|
declare const familyEntry: (id: string) => FamilyEntry;
|
|
929
1002
|
declare const familyName: (id: string) => string;
|
|
930
1003
|
|
|
931
|
-
export { APP_SCHEMA_URL, type AppConfig, type AppEnvironment, CAST, CAST_VERSION, CDN, type CastPersona, type CastProduct, type CastRole, DEFAULT_KINDS, type FamilyEntry, type FamilyGroup, type FamilyStatus, type Localized, ORG_SCHEMA_URL, ORG_URL, type Org, type OrgAvatar, type OrgBanner, type OrgDefaultItem, type OrgDefaultKind, type OrgDefaults, type OrgMark, type OrgProduct, type OrgSite, type ProductStatus, appSchema, apps, castMedia, castOf, defaultFor, defaultUrl, defaults, familyEntry, familyName, fetchDefaults, footerLine, listDefaults, localized, org, orgSchema, persona, personaByRole, seedFingerprint, seedHash };
|
|
1004
|
+
export { APP_SCHEMA_URL, type AppConfig, type AppEnvironment, type BrandKind, CAST, CAST_VERSION, CDN, CODE_NAMES, type CastPersona, type CastProduct, type CastRole, type CodeNameHit, DEFAULT_KINDS, DISPLAY_NAME_MAX, type FamilyEntry, type FamilyGroup, type FamilyStatus, type Localized, ORG_SCHEMA_URL, ORG_URL, type Org, type OrgAvatar, type OrgBanner, type OrgBrand, type OrgDefaultItem, type OrgDefaultKind, type OrgDefaults, type OrgMark, type OrgProduct, type OrgSite, type ProductStatus, appSchema, apps, brandOf, brands, castMedia, castOf, catalogueValues, codeNameMap, defaultFor, defaultUrl, defaults, displayName, familyEntry, familyName, fetchDefaults, findCodeNames, footerLine, listDefaults, localized, lockup, org, orgSchema, persona, personaByRole, seedFingerprint, seedHash, visibleText };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@krizaka/org",
|
|
4
|
-
version: "0.
|
|
4
|
+
version: "0.7.1",
|
|
5
5
|
description: "The public facts about Krizaka, in one validated JSON that every footer, site and app reads: legal name, NEQ, \xAB Fait \xE0 Montr\xE9al \xBB in French and English, brand marks, default avatars and banners, the live products and sites, the public contact, the footer line and the mobile apps' public runtime config. Typed data, JSON Schema, and the files published on the CDN.",
|
|
6
6
|
keywords: [
|
|
7
7
|
"krizaka",
|
|
@@ -33,8 +33,12 @@ var package_default = {
|
|
|
33
33
|
"./apps/*.json": "./dist/apps/*.json",
|
|
34
34
|
"./package.json": "./package.json"
|
|
35
35
|
},
|
|
36
|
+
bin: {
|
|
37
|
+
"krizaka-code-names": "./bin/krizaka-code-names.mjs"
|
|
38
|
+
},
|
|
36
39
|
files: [
|
|
37
40
|
"dist",
|
|
41
|
+
"bin",
|
|
38
42
|
"README.md",
|
|
39
43
|
"LICENSE"
|
|
40
44
|
],
|
|
@@ -364,11 +368,10 @@ var FAMILY_ROWS = [
|
|
|
364
368
|
["orazaka", "Orazaka", "Orazaka", "products", "development", "https://www.orazaka.com", gh("orazaka")],
|
|
365
369
|
["yomizaka", "Yomizaka", "Yomizaka", "products", "development", "https://www.yomizaka.com", gh("yomizaka")],
|
|
366
370
|
["akinaza", "Akinaza", "Akinaza", "products", "development", "https://www.akinaza.com", gh("akinaza")],
|
|
367
|
-
["ui", "Krizaka UI", "UI", "open-source", "
|
|
368
|
-
["java", "Krizaka Java", "Java", "open-source", "
|
|
369
|
-
["ts", "Krizaka TypeScript", "TypeScript", "open-source", "
|
|
371
|
+
["ui", "Krizaka UI", "UI", "open-source", "development", "https://ui.krizaka.com", gh("krizaka-ui")],
|
|
372
|
+
["java", "Krizaka Java", "Java", "open-source", "development", "https://java.krizaka.com", gh("krizaka-build")],
|
|
373
|
+
["ts", "Krizaka TypeScript", "TypeScript", "open-source", "development", "https://ts.krizaka.com", gh("krizaka-ts")],
|
|
370
374
|
["lab", "Krizaka Lab", "Lab", "open-source", "development", "https://lab.krizaka.com", gh("krizaka-lab")],
|
|
371
|
-
["skills", "Krizaka Skills", "Skills", "open-source", "released", gh("krizaka-skills"), gh("krizaka-skills")],
|
|
372
375
|
["github", "GitHub", "GitHub", "github", "released", GITHUB, null]
|
|
373
376
|
];
|
|
374
377
|
var family = FAMILY_ROWS.map(([id, name, short, group, status, url, repo]) => ({
|
|
@@ -485,6 +488,197 @@ var apps = {
|
|
|
485
488
|
akinaza: app("akinaza", "https://dev.akinaza.com")
|
|
486
489
|
};
|
|
487
490
|
|
|
491
|
+
// src/brands.ts
|
|
492
|
+
var ENDORSEMENT = { en: "by Krizaka", fr: "par Krizaka" };
|
|
493
|
+
var brand = (codeName, commercialName, kind, domains, formerly) => ({
|
|
494
|
+
codeName,
|
|
495
|
+
commercialName,
|
|
496
|
+
kind,
|
|
497
|
+
endorsement: ENDORSEMENT,
|
|
498
|
+
domains,
|
|
499
|
+
formerly: formerly ? { en: `${formerly} is now ${commercialName}`, fr: `${formerly} s\u2019appelle d\xE9sormais ${commercialName}` } : null
|
|
500
|
+
});
|
|
501
|
+
var brands = [
|
|
502
|
+
brand(
|
|
503
|
+
"yomizaka",
|
|
504
|
+
"Verikora",
|
|
505
|
+
"product",
|
|
506
|
+
{ site: "https://www.verikora.com", app: null, shop: null, dev: "https://dev.verikora.com" },
|
|
507
|
+
"Yomizaka"
|
|
508
|
+
),
|
|
509
|
+
brand(
|
|
510
|
+
"akinaza",
|
|
511
|
+
"Folioviv",
|
|
512
|
+
"product",
|
|
513
|
+
{
|
|
514
|
+
site: "https://www.folioviv.com",
|
|
515
|
+
app: "https://folioviv.app",
|
|
516
|
+
shop: "https://folioviv.shop",
|
|
517
|
+
dev: "https://dev.folioviv.com"
|
|
518
|
+
},
|
|
519
|
+
"Akinaza"
|
|
520
|
+
),
|
|
521
|
+
brand(
|
|
522
|
+
"orazaka",
|
|
523
|
+
"Sovkora",
|
|
524
|
+
"product",
|
|
525
|
+
{ site: "https://www.sovkora.com", app: null, shop: null, dev: "https://dev.sovkora.com" },
|
|
526
|
+
"Orazaka"
|
|
527
|
+
),
|
|
528
|
+
// Kachizaka is the code name of the managed storage (Krizaka ECM, krizaka-internal#1916); it was never public.
|
|
529
|
+
brand("kachizaka", "Kridoc", "service", { site: "https://www.kridoc.com", app: null, shop: null, dev: null }, null)
|
|
530
|
+
];
|
|
531
|
+
var brandOf = (codeName) => {
|
|
532
|
+
const found = brands.find((b) => b.codeName === codeName);
|
|
533
|
+
if (!found) throw new Error(`Unknown Krizaka code name "${codeName}".`);
|
|
534
|
+
return found;
|
|
535
|
+
};
|
|
536
|
+
var DISPLAY_NAME_MAX = 30;
|
|
537
|
+
var displayName = (codeName, chosen) => {
|
|
538
|
+
const own = chosen?.trim() ?? "";
|
|
539
|
+
if (own.length === 0 || own.length > DISPLAY_NAME_MAX || codeNamePattern().test(own))
|
|
540
|
+
return brandOf(codeName).commercialName;
|
|
541
|
+
return own;
|
|
542
|
+
};
|
|
543
|
+
var lockup = (codeName, locale, chosen) => {
|
|
544
|
+
const { endorsement } = brandOf(codeName);
|
|
545
|
+
return `${displayName(codeName, chosen)} ${locale === "fr" ? endorsement.fr : endorsement.en}`;
|
|
546
|
+
};
|
|
547
|
+
var CODE_NAMES = brands.map((b) => b.codeName);
|
|
548
|
+
var FORMER_WORDINGS = [[/\bkrizaka\s+ecm\b/gi, "Kridoc"]];
|
|
549
|
+
var codeNameMap = () => Object.fromEntries(brands.map((b) => [b.codeName, b.commercialName]));
|
|
550
|
+
var codeNamePattern = (flags = "i") => new RegExp(String.raw`\b(${CODE_NAMES.join("|")})\b`, flags);
|
|
551
|
+
var HOST_ENDINGS = [".com", ".app", ".shop", ".dev"];
|
|
552
|
+
var LEADING = /* @__PURE__ */ new Set(["(", "<", "\xAB", '"', "'"]);
|
|
553
|
+
var TRAILING = /* @__PURE__ */ new Set([".", ",", ";", ":", "!", "?", ")", "]", ">", "\xBB", '"', "'"]);
|
|
554
|
+
var trimPunctuation = (raw) => {
|
|
555
|
+
let start = 0;
|
|
556
|
+
let end = raw.length;
|
|
557
|
+
while (start < end && LEADING.has(raw[start] ?? "")) start++;
|
|
558
|
+
while (end > start && TRAILING.has(raw[end - 1] ?? "")) end--;
|
|
559
|
+
return raw.slice(start, end);
|
|
560
|
+
};
|
|
561
|
+
var allowedToken = (raw) => {
|
|
562
|
+
const token = trimPunctuation(raw);
|
|
563
|
+
const lower = token.toLowerCase();
|
|
564
|
+
return token.includes("://") && URL.canParse(token) || lower.startsWith("@krizaka/") || lower.startsWith("com.krizaka") || lower.startsWith("krizaka/") || HOST_ENDINGS.some((end) => lower.endsWith(end) && lower.includes("."));
|
|
565
|
+
};
|
|
566
|
+
var CODE_SPAN = /`[^`\n]*`/g;
|
|
567
|
+
var blankLinkTargets = (text) => {
|
|
568
|
+
let out = "";
|
|
569
|
+
let at = 0;
|
|
570
|
+
for (; ; ) {
|
|
571
|
+
const open = text.indexOf("](", at);
|
|
572
|
+
if (open < 0) return out + text.slice(at);
|
|
573
|
+
const start = open + 2;
|
|
574
|
+
let end = start;
|
|
575
|
+
while (end < text.length && text[end] !== ")" && text[end] !== "\n") end++;
|
|
576
|
+
if (text[end] !== ")") {
|
|
577
|
+
out += text.slice(at, start);
|
|
578
|
+
at = start;
|
|
579
|
+
continue;
|
|
580
|
+
}
|
|
581
|
+
out += text.slice(at, start) + " ".repeat(end - start);
|
|
582
|
+
at = end;
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
var blankAllowed = (text) => {
|
|
586
|
+
let out = text;
|
|
587
|
+
for (const brand2 of brands) {
|
|
588
|
+
for (const line of brand2.formerly ? [brand2.formerly.en, brand2.formerly.fr] : [])
|
|
589
|
+
out = out.split(line).join(" ".repeat(line.length));
|
|
590
|
+
}
|
|
591
|
+
out = blankLinkTargets(out).replace(CODE_SPAN, (m) => " ".repeat(m.length));
|
|
592
|
+
return out.replace(/\S+/g, (m) => allowedToken(m) ? " ".repeat(m.length) : m);
|
|
593
|
+
};
|
|
594
|
+
var findCodeNames = (text) => {
|
|
595
|
+
const scanned = blankAllowed(text);
|
|
596
|
+
const map = codeNameMap();
|
|
597
|
+
const hits = [];
|
|
598
|
+
const around = (i, n) => text.slice(Math.max(0, i - 20), i + n + 20).replace(/\s+/g, " ").trim();
|
|
599
|
+
for (const m of scanned.matchAll(codeNamePattern("gi"))) {
|
|
600
|
+
hits.push({ word: m[0], use: map[m[0].toLowerCase()] ?? "", context: around(m.index ?? 0, m[0].length) });
|
|
601
|
+
}
|
|
602
|
+
for (const [re, use] of FORMER_WORDINGS) {
|
|
603
|
+
for (const m of scanned.matchAll(re)) hits.push({ word: m[0], use, context: around(m.index ?? 0, m[0].length) });
|
|
604
|
+
}
|
|
605
|
+
return hits;
|
|
606
|
+
};
|
|
607
|
+
var stripBlocks = (text, open, close) => {
|
|
608
|
+
let out = "";
|
|
609
|
+
let at = 0;
|
|
610
|
+
for (; ; ) {
|
|
611
|
+
const start = text.indexOf(open, at);
|
|
612
|
+
if (start < 0) return out + text.slice(at);
|
|
613
|
+
out += `${text.slice(at, start)} `;
|
|
614
|
+
const end = text.indexOf(close, start + open.length);
|
|
615
|
+
if (end < 0) return out;
|
|
616
|
+
at = end + close.length;
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
var SKIPPED_ELEMENTS = ["script", "style", "pre", "code", "svg"];
|
|
620
|
+
var openingOf = (lower, name, at) => {
|
|
621
|
+
for (let i = lower.indexOf(`<${name}`, at); i >= 0; i = lower.indexOf(`<${name}`, i + 1)) {
|
|
622
|
+
if (!/[a-z0-9-]/.test(lower[i + name.length + 1] ?? " ")) return i;
|
|
623
|
+
}
|
|
624
|
+
return -1;
|
|
625
|
+
};
|
|
626
|
+
var nextSkipped = (lower, at) => {
|
|
627
|
+
let found = [-1, ""];
|
|
628
|
+
for (const name of SKIPPED_ELEMENTS) {
|
|
629
|
+
const i = openingOf(lower, name, at);
|
|
630
|
+
if (i >= 0 && (found[0] < 0 || i < found[0])) found = [i, name];
|
|
631
|
+
}
|
|
632
|
+
return found;
|
|
633
|
+
};
|
|
634
|
+
var stripTags = (html) => {
|
|
635
|
+
let out = "";
|
|
636
|
+
let at = 0;
|
|
637
|
+
for (let open = html.indexOf("<"); open >= 0; open = html.indexOf("<", at)) {
|
|
638
|
+
const close = html.indexOf(">", open + 1);
|
|
639
|
+
if (close < 0) break;
|
|
640
|
+
out += `${html.slice(at, open)} `;
|
|
641
|
+
at = close + 1;
|
|
642
|
+
}
|
|
643
|
+
return out + html.slice(at);
|
|
644
|
+
};
|
|
645
|
+
var stripElements = (html) => {
|
|
646
|
+
const lower = html.toLowerCase();
|
|
647
|
+
let out = "";
|
|
648
|
+
let at = 0;
|
|
649
|
+
while (at < html.length) {
|
|
650
|
+
const [next, tag] = nextSkipped(lower, at);
|
|
651
|
+
if (next < 0) return out + html.slice(at);
|
|
652
|
+
out += `${html.slice(at, next)} `;
|
|
653
|
+
const end = lower.indexOf(`</${tag}>`, next);
|
|
654
|
+
if (end < 0) return out;
|
|
655
|
+
at = end + tag.length + 3;
|
|
656
|
+
}
|
|
657
|
+
return out;
|
|
658
|
+
};
|
|
659
|
+
var visibleText = (html) => {
|
|
660
|
+
const attrs = [];
|
|
661
|
+
for (const m of html.matchAll(/<meta\b[^>]*>/gi)) {
|
|
662
|
+
if (/\b(?:name|property)\s*=\s*["'](?:description|og:[\w:]+|twitter:[\w:]+|application-name|apple-mobile-web-app-title)["']/i.test(
|
|
663
|
+
m[0]
|
|
664
|
+
)) {
|
|
665
|
+
const content = /\bcontent\s*=\s*"([^"]*)"|\bcontent\s*=\s*'([^']*)'/i.exec(m[0]);
|
|
666
|
+
if (content) attrs.push(content[1] ?? content[2] ?? "");
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
for (const m of html.matchAll(/\b(?:alt|title|aria-label)\s*=\s*"([^"]*)"/gi)) attrs.push(m[1] ?? "");
|
|
670
|
+
const body = stripTags(stripElements(stripBlocks(html, "<!--", "-->"))).replaceAll(" ", " ").replaceAll("&", "&");
|
|
671
|
+
return [body, ...attrs].join("\n");
|
|
672
|
+
};
|
|
673
|
+
var catalogueValues = (catalogue, path = "") => {
|
|
674
|
+
if (typeof catalogue === "string") return [[path, catalogue]];
|
|
675
|
+
if (Array.isArray(catalogue)) return catalogue.flatMap((v, i) => catalogueValues(v, `${path}[${i}]`));
|
|
676
|
+
if (catalogue && typeof catalogue === "object") {
|
|
677
|
+
return Object.entries(catalogue).flatMap(([k, v]) => catalogueValues(v, path ? `${path}.${k}` : k));
|
|
678
|
+
}
|
|
679
|
+
return [];
|
|
680
|
+
};
|
|
681
|
+
|
|
488
682
|
// src/cast.ts
|
|
489
683
|
var CAST_VERSION = 1;
|
|
490
684
|
var CAST = [
|
|
@@ -862,6 +1056,7 @@ var orgSchema = {
|
|
|
862
1056
|
short: { type: "string", minLength: 1 },
|
|
863
1057
|
group: { enum: ["krizaka", "products", "open-source", "github"] },
|
|
864
1058
|
status: { enum: ["released", "development"] },
|
|
1059
|
+
releasedAt: { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2}$" },
|
|
865
1060
|
url: httpsUrl,
|
|
866
1061
|
repo: { anyOf: [httpsUrl, { type: "null" }] }
|
|
867
1062
|
}
|
|
@@ -947,27 +1142,37 @@ export {
|
|
|
947
1142
|
CAST,
|
|
948
1143
|
CAST_VERSION,
|
|
949
1144
|
CDN,
|
|
1145
|
+
CODE_NAMES,
|
|
950
1146
|
DEFAULT_KINDS,
|
|
1147
|
+
DISPLAY_NAME_MAX,
|
|
951
1148
|
ORG_SCHEMA_URL,
|
|
952
1149
|
ORG_URL,
|
|
953
1150
|
appSchema,
|
|
954
1151
|
apps,
|
|
1152
|
+
brandOf,
|
|
1153
|
+
brands,
|
|
955
1154
|
castMedia,
|
|
956
1155
|
castOf,
|
|
1156
|
+
catalogueValues,
|
|
1157
|
+
codeNameMap,
|
|
957
1158
|
defaultFor,
|
|
958
1159
|
defaultUrl,
|
|
959
1160
|
defaults,
|
|
1161
|
+
displayName,
|
|
960
1162
|
familyEntry,
|
|
961
1163
|
familyName,
|
|
962
1164
|
fetchDefaults,
|
|
1165
|
+
findCodeNames,
|
|
963
1166
|
footerLine,
|
|
964
1167
|
listDefaults,
|
|
965
1168
|
localized2 as localized,
|
|
1169
|
+
lockup,
|
|
966
1170
|
org,
|
|
967
1171
|
orgSchema,
|
|
968
1172
|
persona,
|
|
969
1173
|
personaByRole,
|
|
970
1174
|
seedFingerprint,
|
|
971
|
-
seedHash
|
|
1175
|
+
seedHash,
|
|
1176
|
+
visibleText
|
|
972
1177
|
};
|
|
973
1178
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/defaults.ts","../src/org.ts","../src/apps.ts","../src/cast.ts","../src/schema.ts","../src/index.ts"],"sourcesContent":["{\n \"name\": \"@krizaka/org\",\n \"version\": \"0.6.0\",\n \"description\": \"The public facts about Krizaka, in one validated JSON that every footer, site and app reads: legal name, NEQ, « Fait à Montréal » in French and English, brand marks, default avatars and banners, the live products and sites, the public contact, the footer line and the mobile apps' public runtime config. Typed data, JSON Schema, and the files published on the CDN.\",\n \"keywords\": [\n \"krizaka\",\n \"organization\",\n \"footer\",\n \"brand\",\n \"json-schema\"\n ],\n \"homepage\": \"https://ts.krizaka.com/org\",\n \"bugs\": \"https://github.com/krizaka/krizaka-ts/issues\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/krizaka/krizaka-ts.git\",\n \"directory\": \"packages/org\"\n },\n \"license\": \"Apache-2.0\",\n \"author\": \"Krizaka (https://www.krizaka.com)\",\n \"type\": \"module\",\n \"main\": \"./dist/index.js\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\"\n },\n \"./org.json\": \"./dist/org.json\",\n \"./org.schema.json\": \"./dist/org.schema.json\",\n \"./apps/*.json\": \"./dist/apps/*.json\",\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"README.md\",\n \"LICENSE\"\n ],\n \"sideEffects\": false,\n \"scripts\": {\n \"build\": \"node -e \\\"require('node:fs').rmSync('dist',{recursive:true,force:true})\\\" && tsup && node scripts/emit.mjs\",\n \"lint\": \"eslint . --max-warnings 0 && tsc --noEmit\",\n \"typecheck\": \"tsc --noEmit\",\n \"test\": \"vitest run --coverage --coverage.provider=v8 --coverage.reporter=lcov --coverage.reporter=text-summary \\\"--coverage.include=src/**/*.ts\\\"\",\n \"check\": \"pnpm run lint && pnpm run test && pnpm run build\",\n \"publish:cdn\": \"node scripts/publish.mjs\",\n \"prepublishOnly\": \"pnpm run build\"\n },\n \"engines\": {\n \"node\": \">=22\"\n },\n \"devDependencies\": {\n \"@krizaka/config\": \"workspace:^\",\n \"@types/node\": \"^22.10.0\",\n \"ajv\": \"^8.17.0\",\n \"eslint\": \"^9.39.0\",\n \"tsup\": \"^8.5.0\",\n \"typescript\": \"^5.9.3\",\n \"vitest\": \"^4.1.11\"\n }\n}\n","import type { Localized, OrgDefaultItem, OrgDefaultKind, OrgDefaults } from \"./org.types\";\n\n/** The pull zone that serves the sets. Declared here, not imported from `org.ts`, so `org.ts` can build its section from this file. */\nconst BASE = \"https://krizaka-assets.b-cdn.net/defaults/v1\";\n\n/** The kinds of entity that have a default set, in the order the JSON lists them. */\nexport const DEFAULT_KINDS = [\n \"person\",\n \"folder\",\n \"organisation\",\n \"shop\",\n \"banner\",\n] as const satisfies readonly OrgDefaultKind[];\n\n/** The sizes (px) each kind is served in: squares for the pictures, widths for the banners (3:1). */\nconst SIZES: Record<OrgDefaultKind, readonly number[]> = {\n person: [256, 512, 1024],\n folder: [256, 512, 1024],\n organisation: [256, 512, 1024],\n shop: [256, 512, 1024],\n banner: [960, 1920],\n};\n\n/** Withdrawn pictures, `<kind>/<id>`: kept in the JSON and on the CDN, never picked. The neon flamingo carries the wordmark of a paused product. */\nexport const DISABLED_DEFAULTS: ReadonlySet<string> = new Set([\"banner/the-neon-flamingo\"]);\n\nconst item = (kind: OrgDefaultKind, id: string, alt: Localized, drawn: boolean): OrgDefaultItem => ({\n id,\n alt,\n ...(DISABLED_DEFAULTS.has(`${kind}/${id}`) ? { disabled: true as const } : {}),\n urls: {\n ...(drawn ? { svg: `${BASE}/${kind}/${id}.svg` } : {}),\n webp: Object.fromEntries(SIZES[kind].map((size) => [String(size), `${BASE}/${kind}/${id}-${size}.webp`])),\n },\n});\n\nconst tones = (kind: OrgDefaultKind, id: string, alt: (n: number) => Localized): OrgDefaultItem[] =>\n Array.from({ length: 6 }, (_, i) => item(kind, `${id}-${i + 1}`, alt(i + 1), true));\n\n/** The founder's illustrated people (`defaults/v1/person/<id>-<size>.webp`). Alt texts say what the picture shows, never who. */\nconst PEOPLE: [string, Localized][] = [\n [\n \"boom-bap\",\n {\n en: \"Illustration: a rapper in a denim jacket and beanie, microphone in hand, in a rainy Montréal alley at night\",\n fr: \"Illustration : un rappeur en veste de jean et tuque, micro à la main, dans une ruelle de Montréal sous la pluie, la nuit\",\n },\n ],\n [\n \"rasta-creative\",\n {\n en: \"A smiling man with long dreadlocks in a paint-stained denim jacket, in an artist's workshop\",\n fr: \"Un homme souriant aux longues dreadlocks, en veste de jean tachée de peinture, dans un atelier d'artiste\",\n },\n ],\n [\n \"mile-end-hipster\",\n {\n en: \"A smiling person with round glasses and an orange beanie at a leatherworking bench, in a brick workshop\",\n fr: \"Une personne souriante à lunettes rondes et tuque orange, à son établi de cuir, dans un atelier de briques\",\n },\n ],\n [\n \"tech-architect\",\n {\n en: \"A person in a dark hoodie typing at a keyboard, between screens of code and a server rack\",\n fr: \"Une personne en chandail à capuchon sombre qui tape au clavier, entre des écrans de code et une baie de serveurs\",\n },\n ],\n [\n \"electronic-dj\",\n {\n en: \"A DJ with headphones behind synthesizers and a mixing desk, in a club with violet lights\",\n fr: \"Un DJ casque aux oreilles derrière des synthétiseurs et une table de mixage, dans un club aux lumières violettes\",\n },\n ],\n [\n \"visual-artist\",\n {\n en: \"A smiling painter with violet hair and big glasses, palette in hand, in a studio full of canvases\",\n fr: \"Une peintre souriante aux cheveux violets et aux grosses lunettes, palette à la main, dans un atelier plein de toiles\",\n },\n ],\n [\n \"salon-tattoo-maker\",\n {\n en: \"A tattoo artist with tattooed arms working on a client in a warm shop with wooden shelves\",\n fr: \"Une tatoueuse aux bras tatoués au travail sur un client, dans un salon chaleureux aux étagères de bois\",\n },\n ],\n [\n \"wise-auditor\",\n {\n en: \"A grey-haired person with glasses at a desk of old books and a lamp, a pen over open notes\",\n fr: \"Une personne aux cheveux gris et à lunettes à un bureau de vieux livres et de lampe, un stylo sur des notes ouvertes\",\n },\n ],\n [\n \"digital-creator\",\n {\n en: \"A laughing streamer with a microphone in a purple-lit studio under a neon « Creator Zone » sign\",\n fr: \"Une diffuseuse qui rit devant un micro, dans un studio violet sous une enseigne néon « Creator Zone »\",\n },\n ],\n [\n \"studio-maker\",\n {\n en: \"A potter in a linen apron holding a clay bowl, in a bright ceramics studio with plants\",\n fr: \"Une potière en tablier de lin tenant un bol d'argile, dans un atelier de céramique lumineux et plein de plantes\",\n },\n ],\n [\n \"community-lead\",\n {\n en: \"A smiling person with curly hair and a grey coat at a wooden table, a community space behind them\",\n fr: \"Une personne souriante aux cheveux bouclés et au manteau gris, à une table de bois, devant un espace communautaire\",\n },\n ],\n [\n \"ai-builder\",\n {\n en: \"A thoughtful person with blue-tinted glasses at a desk, screens of a neural network and code behind\",\n fr: \"Une personne pensive aux lunettes teintées de bleu à son bureau, devant des écrans de réseau neuronal et de code\",\n },\n ],\n];\n\n/** The founder's banners, 3:1 (`defaults/v1/banner/<id>-<width>.webp`). */\nconst BANNERS: [string, Localized][] = [\n [\n \"montreal-winter-night\",\n {\n en: \"Illustration: a snowy night in downtown Montréal, lit shop fronts and walkers\",\n fr: \"Illustration : une nuit de neige au centre-ville de Montréal, devantures éclairées et passants\",\n },\n ],\n [\n \"industrial-heritage\",\n {\n en: \"Dark blue skyline of old brick buildings with lit orange windows under a full moon\",\n fr: \"Silhouette bleu nuit de vieux immeubles de briques aux fenêtres orangées, sous la pleine lune\",\n },\n ],\n [\n \"creator-loft-studio\",\n {\n en: \"A dark loft desk with a plant, a code window and a mixing board\",\n fr: \"Un bureau de loft sombre avec une plante, une fenêtre de code et une table de mixage\",\n },\n ],\n [\n \"abstract-digital-flow\",\n {\n en: \"Flowing teal, violet and orange lines linking glowing points on a dark background\",\n fr: \"Des lignes ondulantes turquoise, violettes et orange reliant des points lumineux sur fond sombre\",\n },\n ],\n [\n \"paperwork-and-ink\",\n {\n en: \"Two dark document cards with colored stamps on a night-blue grid\",\n fr: \"Deux cartes de documents sombres tamponnées de couleur sur une grille bleu nuit\",\n },\n ],\n [\n \"nightlife-music-visual\",\n {\n en: \"A large glowing vinyl record with a pink label beside a small level meter, in violet light\",\n fr: \"Un grand disque vinyle lumineux à l'étiquette rose près d'un petit indicateur de niveau, en lumière violette\",\n },\n ],\n [\n \"the-mascot-flock\",\n {\n en: \"The Krizaka mascots — an owl, a beaver and a flamingo — standing on a shelf in the dark\",\n fr: \"Les mascottes de Krizaka — un hibou, un castor et un flamant — debout sur une étagère dans le noir\",\n },\n ],\n [\n \"abstract-stripes\",\n {\n en: \"Diagonal teal, indigo, violet and orange stripes with a white star and « Montréal // 514 »\",\n fr: \"Des bandes diagonales turquoise, indigo, violettes et orange avec une étoile blanche et « Montréal // 514 »\",\n },\n ],\n [\n \"open-source-horizon\",\n {\n en: \"A dark terminal window on a grid, a faint horizon behind\",\n fr: \"Une fenêtre de terminal sombre sur une grille, un horizon pâle derrière\",\n },\n ],\n [\n \"cafe-maker-studio\",\n {\n en: \"A warm dark brown scene with a card reading « Fabriqué à Montréal »\",\n fr: \"Une scène brun foncé chaleureuse avec une carte « Fabriqué à Montréal »\",\n },\n ],\n [\n \"the-neon-flamingo\",\n {\n en: \"A pink neon flamingo outline on black, with a violet halo\",\n fr: \"Le contour d'un flamant rose en néon sur fond noir, avec un halo violet\",\n },\n ],\n [\n \"cooperative-network\",\n {\n en: \"Small linked glowing points over a dark hill at dusk\",\n fr: \"De petits points lumineux reliés au-dessus d'une colline sombre au crépuscule\",\n },\n ],\n];\n\nconst GLYPH_ALT = {\n person: (n: number): Localized => ({\n en: `Default profile picture: a silhouette, tone ${n}`,\n fr: `Photo de profil par défaut : une silhouette, teinte ${n}`,\n }),\n folder: (n: number): Localized => ({\n en: `Default folder picture: a folder, tone ${n}`,\n fr: `Image de dossier par défaut : un dossier, teinte ${n}`,\n }),\n organisation: (n: number): Localized => ({\n en: `Default organisation picture: a building, tone ${n}`,\n fr: `Image d'organisation par défaut : un immeuble, teinte ${n}`,\n }),\n shop: (n: number): Localized => ({\n en: `Default shop picture: a storefront, tone ${n}`,\n fr: `Image de boutique par défaut : une devanture, teinte ${n}`,\n }),\n};\n\n/** The `defaults` section of the org JSON: the central sets on Bunny (`defaults/v1/<kind>/<id>-<size>.<ext>`), written by krizaka-ui `tools/export-defaults.mjs`. */\nexport const defaults: OrgDefaults = {\n version: \"v1\",\n base: BASE,\n rule: {\n pick: \"fnv1a32-modulo\",\n description:\n \"defaultFor(kind, seed) = items[fnv1a32(String(seed)) mod items.length] of the kind's list, in the order of the JSON; the same seed always gives the same item, in every app.\",\n },\n kinds: {\n person: [\n ...tones(\"person\", \"silhouette\", GLYPH_ALT.person),\n ...PEOPLE.map(([id, alt]) => item(\"person\", id, alt, false)),\n ],\n folder: tones(\"folder\", \"folder\", GLYPH_ALT.folder),\n organisation: tones(\"organisation\", \"organisation\", GLYPH_ALT.organisation),\n shop: tones(\"shop\", \"shop\", GLYPH_ALT.shop),\n banner: BANNERS.map(([id, alt]) => item(\"banner\", id, alt, false)),\n },\n};\n\n// ---- reading -------------------------------------------------------------------------------------------------------\n\n/** 32-bit FNV-1a of a seed: stable across runs, devices and products (the same one `@krizaka/ui`'s default avatars use). */\nexport function seedHash(seed: string | number): number {\n let h = 0x811c9dc5;\n for (const ch of String(seed)) {\n h ^= ch.codePointAt(0) ?? 0;\n h = Math.imul(h, 0x01000193) >>> 0;\n }\n return h;\n}\n\n/** The items of a kind that can be picked, in the order of the JSON (a withdrawn one is skipped). A source other than the bundled one is the JSON an app fetched. */\nexport function listDefaults(kind: OrgDefaultKind, source: OrgDefaults = defaults): readonly OrgDefaultItem[] {\n return (source.kinds[kind] ?? []).filter((entry) => entry.disabled !== true);\n}\n\n/** The item of a kind for a seed (an entity's id): deterministic, so a folder keeps its picture everywhere. `undefined` only when the kind's list is empty. */\nexport function defaultFor(\n kind: OrgDefaultKind,\n seed: string | number,\n source: OrgDefaults = defaults,\n): OrgDefaultItem | undefined {\n const items = listDefaults(kind, source);\n return items.length === 0 ? undefined : items[seedHash(seed) % items.length];\n}\n\n/** The URL of an item at the smallest size that is at least `size` px (or the largest there is); `svg` when the item has a vector and `format` says so. */\nexport function defaultUrl(entry: OrgDefaultItem, size: number, format: \"webp\" | \"svg\" = \"webp\"): string {\n if (format === \"svg\" && entry.urls.svg) return entry.urls.svg;\n const sizes = Object.keys(entry.urls.webp)\n .map(Number)\n .sort((a, b) => a - b);\n const chosen = sizes.find((s) => s >= size) ?? sizes[sizes.length - 1];\n return entry.urls.webp[String(chosen)] ?? \"\";\n}\n\n/** Reads the section from the published JSON (`ORG_URL`), for an app that does not bundle this package. */\nexport async function fetchDefaults(url: string, fetchImpl: typeof fetch = fetch): Promise<OrgDefaults> {\n const res = await fetchImpl(url, { headers: { Accept: \"application/json\" } });\n if (!res.ok) throw new Error(`${url} answered ${res.status}`);\n const json = (await res.json()) as { defaults?: OrgDefaults };\n if (!json.defaults) throw new Error(`${url} has no \\`defaults\\` section`);\n return json.defaults;\n}\n","import pkg from \"../package.json\" with { type: \"json\" };\nimport { defaults as centralDefaults } from \"./defaults\";\nimport type { Localized, Org, OrgAvatar, OrgMark } from \"./org.types\";\n\n/** The pull zone that serves the brand files and this JSON. */\nexport const CDN = \"https://krizaka-assets.b-cdn.net\";\nexport const ORG_URL = `${CDN}/org/v1/org.json`;\nexport const ORG_SCHEMA_URL = `${CDN}/org/v1/org.schema.json`;\n\nconst cdn = (path: string) => `${CDN}/${path}`;\n\nconst mark = (kind: \"logo\" | \"mark\", theme: \"dark\" | \"light\"): OrgMark => ({\n svg: cdn(`brand/krizaka/${kind}-${theme}.svg`),\n png64: cdn(`brand/krizaka/${kind}-${theme}-64.png`),\n png256: cdn(`brand/krizaka/${kind}-${theme}-256.png`),\n png512: cdn(`brand/krizaka/${kind}-${theme}-512.png`),\n png1024: cdn(`brand/krizaka/${kind}-${theme}-1024.png`),\n});\n\nconst TONES = [1, 2, 3, 4, 5, 6] as const;\n\nconst avatarAlt = (kind: \"person\" | \"plain\", n: number): Localized =>\n kind === \"person\"\n ? {\n fr: `Photo de profil par défaut : silhouette, teinte ${n}`,\n en: `Default profile picture: silhouette, tone ${n}`,\n }\n : {\n fr: `Photo de profil par défaut : disque uni, teinte ${n}`,\n en: `Default profile picture: plain disc, tone ${n}`,\n };\n\n/** The default profile pictures a product shows when a person has no photo (`people/defaults/v1`, krizaka-ui `tools/export-brand.mjs`). */\nconst defaults: OrgAvatar[] = ([\"person\", \"plain\"] as const).flatMap((kind) =>\n TONES.map((n) => ({\n id: `${kind}-${n}`,\n kind,\n svg: cdn(`people/defaults/v1/krizaka/${kind}-${n}.svg`),\n webp256: cdn(`people/defaults/v1/krizaka/${kind}-${n}-256.webp`),\n webp512: cdn(`people/defaults/v1/krizaka/${kind}-${n}-512.webp`),\n alt: avatarAlt(kind, n),\n })),\n);\n\n/** The public facts about Krizaka. Reviewed by pull request; changing a fact is one PR here and a release. */\ntype FamilyEntry = NonNullable<Org[\"family\"]>[number];\ntype FamilyRow = [\n FamilyEntry[\"id\"],\n string,\n string,\n FamilyEntry[\"group\"],\n FamilyEntry[\"status\"],\n string,\n string | null,\n];\n\nconst GITHUB = \"https://github.com/krizaka\";\nconst gh = (repo: string) => `${GITHUB}/${repo}`;\n\n/** The family list as data: one row per entry (id, name, short, group, status, url, repo). */\nconst FAMILY_ROWS: FamilyRow[] = [\n [\"krizaka\", \"Krizaka\", \"Krizaka\", \"krizaka\", \"released\", \"https://www.krizaka.com\", gh(\"krizaka-com\")],\n [\"blog\", \"Blog\", \"Blog\", \"krizaka\", \"released\", \"https://blog.krizaka.com\", gh(\"krizaka-blog\")],\n [\"orazaka\", \"Orazaka\", \"Orazaka\", \"products\", \"development\", \"https://www.orazaka.com\", gh(\"orazaka\")],\n [\"yomizaka\", \"Yomizaka\", \"Yomizaka\", \"products\", \"development\", \"https://www.yomizaka.com\", gh(\"yomizaka\")],\n [\"akinaza\", \"Akinaza\", \"Akinaza\", \"products\", \"development\", \"https://www.akinaza.com\", gh(\"akinaza\")],\n [\"ui\", \"Krizaka UI\", \"UI\", \"open-source\", \"released\", \"https://ui.krizaka.com\", gh(\"krizaka-ui\")],\n [\"java\", \"Krizaka Java\", \"Java\", \"open-source\", \"released\", \"https://java.krizaka.com\", gh(\"krizaka-build\")],\n [\"ts\", \"Krizaka TypeScript\", \"TypeScript\", \"open-source\", \"released\", \"https://ts.krizaka.com\", gh(\"krizaka-ts\")],\n [\"lab\", \"Krizaka Lab\", \"Lab\", \"open-source\", \"development\", \"https://lab.krizaka.com\", gh(\"krizaka-lab\")],\n [\"skills\", \"Krizaka Skills\", \"Skills\", \"open-source\", \"released\", gh(\"krizaka-skills\"), gh(\"krizaka-skills\")],\n [\"github\", \"GitHub\", \"GitHub\", \"github\", \"released\", GITHUB, null],\n];\n\nconst family: FamilyEntry[] = FAMILY_ROWS.map(([id, name, short, group, status, url, repo]) => ({\n id,\n name,\n short,\n group,\n status,\n url,\n repo,\n}));\n\nexport const org: Org = {\n $schema: ORG_SCHEMA_URL,\n schemaVersion: 2,\n version: pkg.version,\n updatedAt: \"2026-10-30\",\n company: {\n legalName: \"Technologies Krizaka Inc.\",\n tradeName: \"Krizaka\",\n neq: \"1182652231\",\n city: \"Montréal\",\n region: \"Québec\",\n country: \"CA\",\n license: \"Apache-2.0\",\n madeIn: { fr: \"Fait à Montréal\", en: \"Made in Montréal\" },\n },\n brand: {\n name: \"Krizaka\",\n logo: { dark: mark(\"logo\", \"dark\"), light: mark(\"logo\", \"light\") },\n mark: { dark: mark(\"mark\", \"dark\"), light: mark(\"mark\", \"light\") },\n favicon: cdn(\"brand/krizaka/favicon.svg\"),\n appleTouchIcon: cdn(\"brand/krizaka/apple-touch-icon.png\"),\n socialPreview: cdn(\"brand/krizaka/social-preview-1280x640.png\"),\n manifest: cdn(\"brand/manifest.json\"),\n },\n people: {\n defaults,\n // No banner is published on the CDN yet; the set joins here with its alts when it is.\n banners: [],\n },\n defaults: centralDefaults,\n products: [\n {\n id: \"orazaka\",\n name: \"Orazaka\",\n status: \"development\",\n url: \"https://www.orazaka.com\",\n repo: \"https://github.com/krizaka/orazaka\",\n },\n {\n id: \"yomizaka\",\n name: \"Yomizaka\",\n status: \"development\",\n url: \"https://www.yomizaka.com\",\n repo: \"https://github.com/krizaka/yomizaka\",\n },\n {\n id: \"akinaza\",\n name: \"Akinaza\",\n status: \"development\",\n url: \"https://www.akinaza.com\",\n repo: \"https://github.com/krizaka/akinaza\",\n },\n ],\n sites: [\n { id: \"www\", name: \"krizaka.com\", url: \"https://www.krizaka.com\" },\n { id: \"ui\", name: \"Krizaka UI\", url: \"https://ui.krizaka.com\" },\n { id: \"java\", name: \"Krizaka Java\", url: \"https://java.krizaka.com\" },\n { id: \"ts\", name: \"Krizaka TypeScript\", url: \"https://ts.krizaka.com\" },\n { id: \"motion\", name: \"Krizaka Lab\", url: \"https://lab.krizaka.com\" },\n { id: \"blog\", name: \"Blog\", url: \"https://blog.krizaka.com\" },\n ],\n family,\n contact: {\n page: { fr: \"https://www.krizaka.com/fr/contact\", en: \"https://www.krizaka.com/en/contact\" },\n email: null,\n },\n footer: {\n line: {\n fr: \"Une entreprise de Technologies Krizaka · Fait à Montréal\",\n en: \"A Technologies Krizaka company · Made in Montréal\",\n },\n legal: [\n {\n id: \"privacy\",\n label: { fr: \"Confidentialité\", en: \"Privacy\" },\n url: { fr: \"https://www.krizaka.com/fr/privacy\", en: \"https://www.krizaka.com/en/privacy\" },\n },\n {\n id: \"terms\",\n label: { fr: \"Conditions\", en: \"Terms\" },\n url: { fr: \"https://www.krizaka.com/fr/terms\", en: \"https://www.krizaka.com/en/terms\" },\n },\n ],\n },\n};\n","import { CDN } from \"./org\";\nimport type { AppConfig } from \"./org.types\";\n\nexport const APP_SCHEMA_URL = `${CDN}/org/v1/app.schema.json`;\nconst UPDATED = \"2026-10-26\";\n\nconst app = (id: string, devUrl: string): AppConfig => ({\n $schema: APP_SCHEMA_URL,\n schemaVersion: 1,\n app: id,\n // Public by nature: an address a client calls. No key, no token, no internal host.\n apiBaseUrl: { dev: devUrl, production: null },\n features: {},\n minAppVersion: \"0.0.0\",\n updatedAt: UPDATED,\n});\n\n/** The runtime config a mobile app may know, per live product. The app reads it at start, with a copy built into the binary as fallback. */\nexport const apps: Record<string, AppConfig> = {\n orazaka: app(\"orazaka\", \"https://dev.orazaka.com\"),\n yomizaka: app(\"yomizaka\", \"https://dev.yomizaka.com\"),\n akinaza: app(\"akinaza\", \"https://dev.akinaza.com\"),\n};\n","import { defaultUrl, listDefaults } from \"./defaults\";\nimport type { OrgDefaultItem } from \"./org.types\";\n\n/** The products that have a demo cast. */\nexport type CastProduct = \"orazaka\" | \"yomizaka\" | \"akinaza\";\n\n/** What a persona does in the app: a member, a shop owner or a customer of one, an administrator. */\nexport type CastRole = \"member\" | \"admin\" | \"owner\" | \"client\";\n\n/** One fictitious person of the demo cast. No e-mail domain and no password: those come from the environment, through the secrets map. */\nexport interface CastPersona {\n /** Stable key, unique in its product: `eric`, `camille`. Seeds, recordings and tests name the persona by it. */\n readonly id: string;\n readonly product: CastProduct;\n readonly firstName: string;\n /** The name every screen, demo and recording shows: never « qa » nor « admin ». */\n readonly displayName: string;\n readonly role: CastRole;\n readonly locale: \"fr\" | \"en\";\n /** Id of a `person` default of the org defaults JSON (`defaults/v1/person/<id>`). */\n readonly avatar: string;\n /** Id of a `banner` default, for the personas whose page has one. */\n readonly banner?: string;\n /** The demo workspace the persona belongs to (a key the app's seed knows: a set of folders, a shop). */\n readonly workspace: string;\n}\n\n/** The versioned cast. Change it here, then re-run each app's `seed --cast`: every environment gets the same people. */\n// @fixed: a schema version of the cast, bumped by hand when its shape changes\nexport const CAST_VERSION = 1;\n\nexport const CAST: readonly CastPersona[] = [\n // The same three people as the deployed QA accounts (Eric, Mira, Camille) in each product, so a laptop and the dev deployment hold the same names.\n {\n id: \"eric\",\n product: \"yomizaka\",\n firstName: \"Éric\",\n displayName: \"Éric Tremblay\",\n role: \"member\",\n locale: \"fr\",\n avatar: \"community-lead\",\n workspace: \"rosemont-villeray\",\n },\n {\n id: \"mira\",\n product: \"yomizaka\",\n firstName: \"Mira\",\n displayName: \"Mira Haddad\",\n role: \"admin\",\n locale: \"fr\",\n avatar: \"ai-builder\",\n workspace: \"administration\",\n },\n {\n id: \"camille\",\n product: \"yomizaka\",\n firstName: \"Camille\",\n displayName: \"Camille Tremblay\",\n role: \"member\",\n locale: \"fr\",\n avatar: \"visual-artist\",\n workspace: \"rosemont-villeray\",\n },\n // Orazaka: the accounts already deployed on dev. Éric is the user (ORAZAKA_USER_*, APP_QA_ORAZAKA_PERSONA_*), Mira the administrator\n // (ORAZAKA_ADMIN_*, APP_QA_ORAZAKA_MIRA_*), Krizaka the company as an SME customer (APP_QA_ORAZAKA_KRIZAKA_*). The greeting reads the name: never « qa_user ».\n {\n id: \"eric\",\n product: \"orazaka\",\n firstName: \"Éric\",\n displayName: \"Éric Tremblay\",\n role: \"member\",\n locale: \"fr\",\n avatar: \"community-lead\",\n workspace: \"demo\",\n },\n {\n id: \"mira\",\n product: \"orazaka\",\n firstName: \"Mira\",\n displayName: \"Mira Haddad\",\n role: \"admin\",\n locale: \"fr\",\n avatar: \"ai-builder\",\n workspace: \"administration\",\n },\n {\n id: \"krizaka\",\n product: \"orazaka\",\n firstName: \"Krizaka\",\n displayName: \"Krizaka\",\n role: \"member\",\n locale: \"fr\",\n avatar: \"tech-architect\",\n workspace: \"demo\",\n },\n // Akinaza: Éric owns the Krizaka studio, Léa is the Saint-Henri walker, Camille is her first client, Mira administers.\n {\n id: \"eric\",\n product: \"akinaza\",\n firstName: \"Éric\",\n displayName: \"Éric Tremblay\",\n role: \"owner\",\n locale: \"fr\",\n avatar: \"community-lead\",\n banner: \"creator-loft-studio\",\n workspace: \"krizaka-studio\",\n },\n {\n id: \"mira\",\n product: \"akinaza\",\n firstName: \"Mira\",\n displayName: \"Mira Haddad\",\n role: \"admin\",\n locale: \"fr\",\n avatar: \"ai-builder\",\n workspace: \"administration\",\n },\n {\n id: \"lea\",\n product: \"akinaza\",\n firstName: \"Léa\",\n displayName: \"Léa Beaulieu\",\n role: \"owner\",\n locale: \"fr\",\n avatar: \"studio-maker\",\n banner: \"cafe-maker-studio\",\n workspace: \"saint-henri\",\n },\n {\n id: \"camille\",\n product: \"akinaza\",\n firstName: \"Camille\",\n displayName: \"Camille Tremblay\",\n role: \"client\",\n locale: \"fr\",\n avatar: \"visual-artist\",\n workspace: \"saint-henri\",\n },\n {\n id: \"jordan\",\n product: \"akinaza\",\n firstName: \"Jordan\",\n displayName: \"Jordan Lee\",\n role: \"client\",\n locale: \"en\",\n avatar: \"tech-architect\",\n workspace: \"saint-henri\",\n },\n {\n id: \"nadia\",\n product: \"akinaza\",\n firstName: \"Nadia\",\n displayName: \"Nadia Benali\",\n role: \"client\",\n locale: \"fr\",\n avatar: \"digital-creator\",\n workspace: \"saint-henri\",\n },\n {\n id: \"etienne\",\n product: \"akinaza\",\n firstName: \"Étienne\",\n displayName: \"Étienne Gagnon\",\n role: \"client\",\n locale: \"fr\",\n avatar: \"boom-bap\",\n workspace: \"saint-henri\",\n },\n {\n id: \"sofia\",\n product: \"akinaza\",\n firstName: \"Sofia\",\n displayName: \"Sofia Rossi\",\n role: \"client\",\n locale: \"en\",\n avatar: \"salon-tattoo-maker\",\n workspace: \"saint-henri\",\n },\n];\n\n/** The personas of a product, in cast order. */\nexport const castOf = (product: CastProduct): readonly CastPersona[] => CAST.filter((p) => p.product === product);\n\n/** One persona by product and id; throws on an unknown one (a seed or a recording naming a person the cast lacks is a bug). */\nexport function persona(product: CastProduct, id: string): CastPersona {\n const found = CAST.find((p) => p.product === product && p.id === id);\n if (!found)\n throw new Error(\n `cast: no persona \"${id}\" in ${product} (known: ${castOf(product)\n .map((p) => p.id)\n .join(\", \")})`,\n );\n return found;\n}\n\n/** The first persona of a role in a product (the member to sign in as, the administrator). */\nexport function personaByRole(product: CastProduct, role: CastRole): CastPersona {\n const found = castOf(product).find((p) => p.role === role);\n if (!found) throw new Error(`cast: no ${role} in ${product}`);\n return found;\n}\n\nconst urlOf = (kind: \"person\" | \"banner\", id: string, size: number): string => {\n const entry: OrgDefaultItem | undefined = listDefaults(kind).find((d) => d.id === id);\n if (!entry) throw new Error(`cast: no ${kind} default \"${id}\" in the org defaults`);\n return defaultUrl(entry, size);\n};\n\n/** The avatar and banner URLs of a persona, from the org defaults (Bunny, versioned): never typed in an app. */\nexport function castMedia(p: CastPersona, size = 512): { avatar: string; banner?: string } {\n return { avatar: urlOf(\"person\", p.avatar, size), ...(p.banner ? { banner: urlOf(\"banner\", p.banner, 960) } : {}) };\n}\n\n/**\n * The fingerprint of what a seed must leave in a database: counts per table, in a stable order. The seed prints it and\n * a check after the deploy compares the local one with the dev one (same cast and same code give the same string).\n */\nexport function seedFingerprint(counts: Readonly<Record<string, number>>): string {\n return Object.keys(counts)\n .sort((a, b) => (a < b ? -1 : a > b ? 1 : 0)) // by code point, never by locale: the same string on every machine\n .map((table) => `${table}=${counts[table]}`)\n .join(\";\");\n}\n","import { CDN, ORG_SCHEMA_URL } from \"./org\";\n\nconst localized = {\n type: \"object\",\n additionalProperties: false,\n required: [\"fr\", \"en\"],\n properties: { fr: { type: \"string\", minLength: 1 }, en: { type: \"string\", minLength: 1 } },\n} as const;\nconst httpsUrl = { type: \"string\", format: \"uri\", pattern: \"^https://\" } as const;\nconst mark = {\n type: \"object\",\n additionalProperties: false,\n required: [\"svg\", \"png64\", \"png256\", \"png512\", \"png1024\"],\n properties: { svg: httpsUrl, png64: httpsUrl, png256: httpsUrl, png512: httpsUrl, png1024: httpsUrl },\n} as const;\nconst slug = { type: \"string\", pattern: \"^[a-z0-9]+(-[a-z0-9]+)*$\" } as const;\nconst themed = {\n type: \"object\",\n additionalProperties: false,\n required: [\"dark\", \"light\"],\n properties: { dark: mark, light: mark },\n} as const;\nconst date = { type: \"string\", pattern: \"^\\\\d{4}-\\\\d{2}-\\\\d{2}$\" } as const;\nconst semver = { type: \"string\", pattern: \"^\\\\d+\\\\.\\\\d+\\\\.\\\\d+$\" } as const;\n\nconst defaultItems = {\n type: \"array\",\n minItems: 1,\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"alt\", \"urls\"],\n properties: {\n id: slug,\n alt: localized,\n disabled: { const: true },\n urls: {\n type: \"object\",\n additionalProperties: false,\n required: [\"webp\"],\n properties: {\n svg: httpsUrl,\n webp: {\n type: \"object\",\n minProperties: 1,\n propertyNames: { pattern: \"^\\\\d+$\" },\n additionalProperties: httpsUrl,\n },\n },\n },\n },\n },\n} as const;\n\n/** The JSON Schema of `org/v1/org.json`. Nothing outside it is allowed (`additionalProperties: false` everywhere): a new fact is a new line here first. */\nexport const orgSchema = {\n $schema: \"https://json-schema.org/draft/2020-12/schema\",\n $id: ORG_SCHEMA_URL,\n title: \"Krizaka organisation — public facts\",\n type: \"object\",\n additionalProperties: false,\n required: [\n \"$schema\",\n \"schemaVersion\",\n \"version\",\n \"updatedAt\",\n \"company\",\n \"brand\",\n \"people\",\n \"defaults\",\n \"products\",\n \"sites\",\n \"family\",\n \"contact\",\n \"footer\",\n ],\n properties: {\n $schema: { type: \"string\" },\n schemaVersion: { enum: [1, 2] },\n version: semver,\n updatedAt: date,\n company: {\n type: \"object\",\n additionalProperties: false,\n required: [\"legalName\", \"tradeName\", \"neq\", \"city\", \"region\", \"country\", \"license\", \"madeIn\"],\n properties: {\n legalName: { type: \"string\", minLength: 1 },\n tradeName: { type: \"string\", minLength: 1 },\n neq: { type: \"string\", pattern: \"^\\\\d{10}$\" },\n city: { type: \"string\", minLength: 1 },\n region: { type: \"string\", minLength: 1 },\n country: { type: \"string\", pattern: \"^[A-Z]{2}$\" },\n license: { type: \"string\", minLength: 1 },\n madeIn: localized,\n },\n },\n brand: {\n type: \"object\",\n additionalProperties: false,\n required: [\"name\", \"logo\", \"mark\", \"favicon\", \"appleTouchIcon\", \"socialPreview\", \"manifest\"],\n properties: {\n name: { type: \"string\", minLength: 1 },\n logo: themed,\n mark: themed,\n favicon: httpsUrl,\n appleTouchIcon: httpsUrl,\n socialPreview: httpsUrl,\n manifest: httpsUrl,\n },\n },\n people: {\n type: \"object\",\n additionalProperties: false,\n required: [\"defaults\", \"banners\"],\n properties: {\n defaults: {\n type: \"array\",\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"kind\", \"svg\", \"webp256\", \"webp512\", \"alt\"],\n properties: {\n id: slug,\n kind: { enum: [\"person\", \"plain\"] },\n svg: httpsUrl,\n webp256: httpsUrl,\n webp512: httpsUrl,\n alt: localized,\n },\n },\n },\n banners: {\n type: \"array\",\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"url\", \"alt\"],\n properties: { id: slug, url: httpsUrl, alt: localized },\n },\n },\n },\n },\n defaults: {\n type: \"object\",\n additionalProperties: false,\n required: [\"version\", \"base\", \"rule\", \"kinds\"],\n properties: {\n version: { type: \"string\", pattern: \"^v\\\\d+$\" },\n base: httpsUrl,\n rule: {\n type: \"object\",\n additionalProperties: false,\n required: [\"pick\", \"description\"],\n properties: { pick: { const: \"fnv1a32-modulo\" }, description: { type: \"string\", minLength: 1 } },\n },\n kinds: {\n type: \"object\",\n additionalProperties: false,\n required: [\"person\", \"folder\", \"organisation\", \"shop\", \"banner\"],\n properties: Object.fromEntries(\n [\"person\", \"folder\", \"organisation\", \"shop\", \"banner\"].map((kind) => [kind, defaultItems]),\n ),\n },\n },\n },\n products: {\n type: \"array\",\n minItems: 1,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"name\", \"status\", \"url\", \"repo\"],\n properties: {\n id: slug,\n name: { type: \"string\", minLength: 1 },\n status: { enum: [\"development\", \"devPreview\"] },\n url: httpsUrl,\n repo: httpsUrl,\n },\n },\n },\n sites: {\n type: \"array\",\n minItems: 1,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"name\", \"url\"],\n properties: { id: slug, name: { type: \"string\", minLength: 1 }, url: httpsUrl },\n },\n },\n family: {\n type: \"array\",\n minItems: 1,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"name\", \"short\", \"group\", \"status\", \"url\", \"repo\"],\n properties: {\n id: slug,\n name: { type: \"string\", minLength: 1 },\n short: { type: \"string\", minLength: 1 },\n group: { enum: [\"krizaka\", \"products\", \"open-source\", \"github\"] },\n status: { enum: [\"released\", \"development\"] },\n url: httpsUrl,\n repo: { anyOf: [httpsUrl, { type: \"null\" }] },\n },\n },\n },\n contact: {\n type: \"object\",\n additionalProperties: false,\n required: [\"page\", \"email\"],\n properties: {\n page: {\n type: \"object\",\n additionalProperties: false,\n required: [\"fr\", \"en\"],\n properties: { fr: httpsUrl, en: httpsUrl },\n },\n email: { type: [\"string\", \"null\"], format: \"email\" },\n },\n },\n footer: {\n type: \"object\",\n additionalProperties: false,\n required: [\"line\", \"legal\"],\n properties: {\n line: localized,\n legal: {\n type: \"array\",\n minItems: 1,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"label\", \"url\"],\n properties: {\n id: { enum: [\"privacy\", \"terms\"] },\n label: localized,\n url: {\n type: \"object\",\n additionalProperties: false,\n required: [\"fr\", \"en\"],\n properties: { fr: httpsUrl, en: httpsUrl },\n },\n },\n },\n },\n },\n },\n },\n} as const;\n\n/** The JSON Schema of `apps/<product>.json`. */\nexport const appSchema = {\n $schema: \"https://json-schema.org/draft/2020-12/schema\",\n $id: `${CDN}/org/v1/app.schema.json`,\n title: \"Krizaka mobile app — public runtime config\",\n type: \"object\",\n additionalProperties: false,\n required: [\"$schema\", \"schemaVersion\", \"app\", \"apiBaseUrl\", \"features\", \"minAppVersion\", \"updatedAt\"],\n properties: {\n $schema: { type: \"string\" },\n schemaVersion: { const: 1 },\n app: slug,\n apiBaseUrl: {\n type: \"object\",\n additionalProperties: false,\n required: [\"dev\", \"production\"],\n properties: { dev: { anyOf: [httpsUrl, { type: \"null\" }] }, production: { anyOf: [httpsUrl, { type: \"null\" }] } },\n },\n features: { type: \"object\", additionalProperties: { type: \"boolean\" } },\n minAppVersion: semver,\n updatedAt: date,\n },\n} as const;\n","export { APP_SCHEMA_URL, apps } from \"./apps\";\nexport type { CastPersona, CastProduct, CastRole } from \"./cast\";\nexport { CAST, CAST_VERSION, castMedia, castOf, persona, personaByRole, seedFingerprint } from \"./cast\";\nexport { DEFAULT_KINDS, defaultFor, defaults, defaultUrl, fetchDefaults, listDefaults, seedHash } from \"./defaults\";\nexport { CDN, org, ORG_SCHEMA_URL, ORG_URL } from \"./org\";\nexport type {\n AppConfig,\n AppEnvironment,\n FamilyEntry,\n FamilyGroup,\n FamilyStatus,\n Localized,\n Org,\n OrgAvatar,\n OrgBanner,\n OrgDefaultItem,\n OrgDefaultKind,\n OrgDefaults,\n OrgMark,\n OrgProduct,\n OrgSite,\n ProductStatus,\n} from \"./org.types\";\nexport { appSchema, orgSchema } from \"./schema\";\n\nimport { org } from \"./org\";\nimport type { Localized } from \"./org.types\";\n\n/** The text of a localized pair for a language (`fr` or `en`; anything else reads English). */\nexport const localized = (text: Localized, locale: string): string => (locale === \"fr\" ? text.fr : text.en);\n\n/** The footer line of the family, « Une entreprise de Technologies Krizaka · Fait à Montréal ». */\nexport const footerLine = (locale: string): string => localized(org.footer.line, locale);\n\n/** A name of the family by id (`familyName(\"ts\")` → « Krizaka TypeScript »): the only way a site writes one. */\nexport const familyEntry = (id: string) => {\n const entry = org.family.find((e) => e.id === id);\n if (!entry) throw new Error(`Unknown Krizaka family entry \"${id}\".`);\n return entry;\n};\nexport const familyName = (id: string): string => familyEntry(id).name;\n"],"mappings":";AAAA;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,UAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,UAAY;AAAA,EACZ,MAAQ;AAAA,EACR,YAAc;AAAA,IACZ,MAAQ;AAAA,IACR,KAAO;AAAA,IACP,WAAa;AAAA,EACf;AAAA,EACA,SAAW;AAAA,EACX,QAAU;AAAA,EACV,MAAQ;AAAA,EACR,MAAQ;AAAA,EACR,QAAU;AAAA,EACV,OAAS;AAAA,EACT,SAAW;AAAA,IACT,KAAK;AAAA,MACH,OAAS;AAAA,MACT,QAAU;AAAA,IACZ;AAAA,IACA,cAAc;AAAA,IACd,qBAAqB;AAAA,IACrB,iBAAiB;AAAA,IACjB,kBAAkB;AAAA,EACpB;AAAA,EACA,OAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,aAAe;AAAA,EACf,SAAW;AAAA,IACT,OAAS;AAAA,IACT,MAAQ;AAAA,IACR,WAAa;AAAA,IACb,MAAQ;AAAA,IACR,OAAS;AAAA,IACT,eAAe;AAAA,IACf,gBAAkB;AAAA,EACpB;AAAA,EACA,SAAW;AAAA,IACT,MAAQ;AAAA,EACV;AAAA,EACA,iBAAmB;AAAA,IACjB,mBAAmB;AAAA,IACnB,eAAe;AAAA,IACf,KAAO;AAAA,IACP,QAAU;AAAA,IACV,MAAQ;AAAA,IACR,YAAc;AAAA,IACd,QAAU;AAAA,EACZ;AACF;;;AC1DA,IAAM,OAAO;AAGN,IAAM,gBAAgB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGA,IAAM,QAAm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iB,OAAO,cAAc,YAAY,iBAAiB,WAAW;AAAA,EACpG,YAAY;AAAA,IACV,SAAS,EAAE,MAAM,SAAS;AAAA,IAC1B,eAAe,EAAE,OAAO,EAAE;AAAA,IAC1B,KAAK;AAAA,IACL,YAAY;AAAA,MACV,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,UAAU,CAAC,OAAO,YAAY;AAAA,MAC9B,YAAY,EAAE,KAAK,EAAE,OAAO,CAAC,UAAU,EAAE,MAAM,OAAO,CAAC,EAAE,GAAG,YAAY,EAAE,OAAO,CAAC,UAAU,EAAE,MAAM,OAAO,CAAC,EAAE,EAAE;AAAA,IAClH;AAAA,IACA,UAAU,EAAE,MAAM,UAAU,sBAAsB,EAAE,MAAM,UAAU,EAAE;AAAA,IACtE,eAAe;AAAA,IACf,WAAW;AAAA,EACb;AACF;;;ACvPO,IAAMC,aAAY,CAAC,MAAiB,WAA4B,WAAW,OAAO,KAAK,KAAK,KAAK;AAGjG,IAAM,aAAa,CAAC,WAA2BA,WAAU,IAAI,OAAO,MAAM,MAAM;AAGhF,IAAM,cAAc,CAAC,OAAe;AACzC,QAAM,QAAQ,IAAI,OAAO,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE;AAChD,MAAI,CAAC,MAAO,OAAM,IAAI,MAAM,iCAAiC,EAAE,IAAI;AACnE,SAAO;AACT;AACO,IAAM,aAAa,CAAC,OAAuB,YAAY,EAAE,EAAE;","names":["defaults","mark","localized"]}
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/defaults.ts","../src/org.ts","../src/apps.ts","../src/brands.ts","../src/cast.ts","../src/schema.ts","../src/index.ts"],"sourcesContent":["{\n \"name\": \"@krizaka/org\",\n \"version\": \"0.7.1\",\n \"description\": \"The public facts about Krizaka, in one validated JSON that every footer, site and app reads: legal name, NEQ, « Fait à Montréal » in French and English, brand marks, default avatars and banners, the live products and sites, the public contact, the footer line and the mobile apps' public runtime config. Typed data, JSON Schema, and the files published on the CDN.\",\n \"keywords\": [\n \"krizaka\",\n \"organization\",\n \"footer\",\n \"brand\",\n \"json-schema\"\n ],\n \"homepage\": \"https://ts.krizaka.com/org\",\n \"bugs\": \"https://github.com/krizaka/krizaka-ts/issues\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/krizaka/krizaka-ts.git\",\n \"directory\": \"packages/org\"\n },\n \"license\": \"Apache-2.0\",\n \"author\": \"Krizaka (https://www.krizaka.com)\",\n \"type\": \"module\",\n \"main\": \"./dist/index.js\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\"\n },\n \"./org.json\": \"./dist/org.json\",\n \"./org.schema.json\": \"./dist/org.schema.json\",\n \"./apps/*.json\": \"./dist/apps/*.json\",\n \"./package.json\": \"./package.json\"\n },\n \"bin\": {\n \"krizaka-code-names\": \"./bin/krizaka-code-names.mjs\"\n },\n \"files\": [\n \"dist\",\n \"bin\",\n \"README.md\",\n \"LICENSE\"\n ],\n \"sideEffects\": false,\n \"scripts\": {\n \"build\": \"node -e \\\"require('node:fs').rmSync('dist',{recursive:true,force:true})\\\" && tsup && node scripts/emit.mjs\",\n \"lint\": \"eslint . --max-warnings 0 && tsc --noEmit\",\n \"typecheck\": \"tsc --noEmit\",\n \"test\": \"vitest run --coverage --coverage.provider=v8 --coverage.reporter=lcov --coverage.reporter=text-summary \\\"--coverage.include=src/**/*.ts\\\"\",\n \"check\": \"pnpm run lint && pnpm run test && pnpm run build\",\n \"publish:cdn\": \"node scripts/publish.mjs\",\n \"prepublishOnly\": \"pnpm run build\"\n },\n \"engines\": {\n \"node\": \">=22\"\n },\n \"devDependencies\": {\n \"@krizaka/config\": \"workspace:^\",\n \"@types/node\": \"^22.10.0\",\n \"ajv\": \"^8.17.0\",\n \"eslint\": \"^9.39.0\",\n \"tsup\": \"^8.5.0\",\n \"typescript\": \"^5.9.3\",\n \"vitest\": \"^4.1.11\"\n }\n}\n","import type { Localized, OrgDefaultItem, OrgDefaultKind, OrgDefaults } from \"./org.types\";\n\n/** The pull zone that serves the sets. Declared here, not imported from `org.ts`, so `org.ts` can build its section from this file. */\nconst BASE = \"https://krizaka-assets.b-cdn.net/defaults/v1\";\n\n/** The kinds of entity that have a default set, in the order the JSON lists them. */\nexport const DEFAULT_KINDS = [\n \"person\",\n \"folder\",\n \"organisation\",\n \"shop\",\n \"banner\",\n] as const satisfies readonly OrgDefaultKind[];\n\n/** The sizes (px) each kind is served in: squares for the pictures, widths for the banners (3:1). */\nconst SIZES: Record<OrgDefaultKind, readonly number[]> = {\n person: [256, 512, 1024],\n folder: [256, 512, 1024],\n organisation: [256, 512, 1024],\n shop: [256, 512, 1024],\n banner: [960, 1920],\n};\n\n/** Withdrawn pictures, `<kind>/<id>`: kept in the JSON and on the CDN, never picked. The neon flamingo carries the wordmark of a paused product. */\nexport const DISABLED_DEFAULTS: ReadonlySet<string> = new Set([\"banner/the-neon-flamingo\"]);\n\nconst item = (kind: OrgDefaultKind, id: string, alt: Localized, drawn: boolean): OrgDefaultItem => ({\n id,\n alt,\n ...(DISABLED_DEFAULTS.has(`${kind}/${id}`) ? { disabled: true as const } : {}),\n urls: {\n ...(drawn ? { svg: `${BASE}/${kind}/${id}.svg` } : {}),\n webp: Object.fromEntries(SIZES[kind].map((size) => [String(size), `${BASE}/${kind}/${id}-${size}.webp`])),\n },\n});\n\nconst tones = (kind: OrgDefaultKind, id: string, alt: (n: number) => Localized): OrgDefaultItem[] =>\n Array.from({ length: 6 }, (_, i) => item(kind, `${id}-${i + 1}`, alt(i + 1), true));\n\n/** The founder's illustrated people (`defaults/v1/person/<id>-<size>.webp`). Alt texts say what the picture shows, never who. */\nconst PEOPLE: [string, Localized][] = [\n [\n \"boom-bap\",\n {\n en: \"Illustration: a rapper in a denim jacket and beanie, microphone in hand, in a rainy Montréal alley at night\",\n fr: \"Illustration : un rappeur en veste de jean et tuque, micro à la main, dans une ruelle de Montréal sous la pluie, la nuit\",\n },\n ],\n [\n \"rasta-creative\",\n {\n en: \"A smiling man with long dreadlocks in a paint-stained denim jacket, in an artist's workshop\",\n fr: \"Un homme souriant aux longues dreadlocks, en veste de jean tachée de peinture, dans un atelier d'artiste\",\n },\n ],\n [\n \"mile-end-hipster\",\n {\n en: \"A smiling person with round glasses and an orange beanie at a leatherworking bench, in a brick workshop\",\n fr: \"Une personne souriante à lunettes rondes et tuque orange, à son établi de cuir, dans un atelier de briques\",\n },\n ],\n [\n \"tech-architect\",\n {\n en: \"A person in a dark hoodie typing at a keyboard, between screens of code and a server rack\",\n fr: \"Une personne en chandail à capuchon sombre qui tape au clavier, entre des écrans de code et une baie de serveurs\",\n },\n ],\n [\n \"electronic-dj\",\n {\n en: \"A DJ with headphones behind synthesizers and a mixing desk, in a club with violet lights\",\n fr: \"Un DJ casque aux oreilles derrière des synthétiseurs et une table de mixage, dans un club aux lumières violettes\",\n },\n ],\n [\n \"visual-artist\",\n {\n en: \"A smiling painter with violet hair and big glasses, palette in hand, in a studio full of canvases\",\n fr: \"Une peintre souriante aux cheveux violets et aux grosses lunettes, palette à la main, dans un atelier plein de toiles\",\n },\n ],\n [\n \"salon-tattoo-maker\",\n {\n en: \"A tattoo artist with tattooed arms working on a client in a warm shop with wooden shelves\",\n fr: \"Une tatoueuse aux bras tatoués au travail sur un client, dans un salon chaleureux aux étagères de bois\",\n },\n ],\n [\n \"wise-auditor\",\n {\n en: \"A grey-haired person with glasses at a desk of old books and a lamp, a pen over open notes\",\n fr: \"Une personne aux cheveux gris et à lunettes à un bureau de vieux livres et de lampe, un stylo sur des notes ouvertes\",\n },\n ],\n [\n \"digital-creator\",\n {\n en: \"A laughing streamer with a microphone in a purple-lit studio under a neon « Creator Zone » sign\",\n fr: \"Une diffuseuse qui rit devant un micro, dans un studio violet sous une enseigne néon « Creator Zone »\",\n },\n ],\n [\n \"studio-maker\",\n {\n en: \"A potter in a linen apron holding a clay bowl, in a bright ceramics studio with plants\",\n fr: \"Une potière en tablier de lin tenant un bol d'argile, dans un atelier de céramique lumineux et plein de plantes\",\n },\n ],\n [\n \"community-lead\",\n {\n en: \"A smiling person with curly hair and a grey coat at a wooden table, a community space behind them\",\n fr: \"Une personne souriante aux cheveux bouclés et au manteau gris, à une table de bois, devant un espace communautaire\",\n },\n ],\n [\n \"ai-builder\",\n {\n en: \"A thoughtful person with blue-tinted glasses at a desk, screens of a neural network and code behind\",\n fr: \"Une personne pensive aux lunettes teintées de bleu à son bureau, devant des écrans de réseau neuronal et de code\",\n },\n ],\n];\n\n/** The founder's banners, 3:1 (`defaults/v1/banner/<id>-<width>.webp`). */\nconst BANNERS: [string, Localized][] = [\n [\n \"montreal-winter-night\",\n {\n en: \"Illustration: a snowy night in downtown Montréal, lit shop fronts and walkers\",\n fr: \"Illustration : une nuit de neige au centre-ville de Montréal, devantures éclairées et passants\",\n },\n ],\n [\n \"industrial-heritage\",\n {\n en: \"Dark blue skyline of old brick buildings with lit orange windows under a full moon\",\n fr: \"Silhouette bleu nuit de vieux immeubles de briques aux fenêtres orangées, sous la pleine lune\",\n },\n ],\n [\n \"creator-loft-studio\",\n {\n en: \"A dark loft desk with a plant, a code window and a mixing board\",\n fr: \"Un bureau de loft sombre avec une plante, une fenêtre de code et une table de mixage\",\n },\n ],\n [\n \"abstract-digital-flow\",\n {\n en: \"Flowing teal, violet and orange lines linking glowing points on a dark background\",\n fr: \"Des lignes ondulantes turquoise, violettes et orange reliant des points lumineux sur fond sombre\",\n },\n ],\n [\n \"paperwork-and-ink\",\n {\n en: \"Two dark document cards with colored stamps on a night-blue grid\",\n fr: \"Deux cartes de documents sombres tamponnées de couleur sur une grille bleu nuit\",\n },\n ],\n [\n \"nightlife-music-visual\",\n {\n en: \"A large glowing vinyl record with a pink label beside a small level meter, in violet light\",\n fr: \"Un grand disque vinyle lumineux à l'étiquette rose près d'un petit indicateur de niveau, en lumière violette\",\n },\n ],\n [\n \"the-mascot-flock\",\n {\n en: \"The Krizaka mascots — an owl, a beaver and a flamingo — standing on a shelf in the dark\",\n fr: \"Les mascottes de Krizaka — un hibou, un castor et un flamant — debout sur une étagère dans le noir\",\n },\n ],\n [\n \"abstract-stripes\",\n {\n en: \"Diagonal teal, indigo, violet and orange stripes with a white star and « Montréal // 514 »\",\n fr: \"Des bandes diagonales turquoise, indigo, violettes et orange avec une étoile blanche et « Montréal // 514 »\",\n },\n ],\n [\n \"open-source-horizon\",\n {\n en: \"A dark terminal window on a grid, a faint horizon behind\",\n fr: \"Une fenêtre de terminal sombre sur une grille, un horizon pâle derrière\",\n },\n ],\n [\n \"cafe-maker-studio\",\n {\n en: \"A warm dark brown scene with a card reading « Fabriqué à Montréal »\",\n fr: \"Une scène brun foncé chaleureuse avec une carte « Fabriqué à Montréal »\",\n },\n ],\n [\n \"the-neon-flamingo\",\n {\n en: \"A pink neon flamingo outline on black, with a violet halo\",\n fr: \"Le contour d'un flamant rose en néon sur fond noir, avec un halo violet\",\n },\n ],\n [\n \"cooperative-network\",\n {\n en: \"Small linked glowing points over a dark hill at dusk\",\n fr: \"De petits points lumineux reliés au-dessus d'une colline sombre au crépuscule\",\n },\n ],\n];\n\nconst GLYPH_ALT = {\n person: (n: number): Localized => ({\n en: `Default profile picture: a silhouette, tone ${n}`,\n fr: `Photo de profil par défaut : une silhouette, teinte ${n}`,\n }),\n folder: (n: number): Localized => ({\n en: `Default folder picture: a folder, tone ${n}`,\n fr: `Image de dossier par défaut : un dossier, teinte ${n}`,\n }),\n organisation: (n: number): Localized => ({\n en: `Default organisation picture: a building, tone ${n}`,\n fr: `Image d'organisation par défaut : un immeuble, teinte ${n}`,\n }),\n shop: (n: number): Localized => ({\n en: `Default shop picture: a storefront, tone ${n}`,\n fr: `Image de boutique par défaut : une devanture, teinte ${n}`,\n }),\n};\n\n/** The `defaults` section of the org JSON: the central sets on Bunny (`defaults/v1/<kind>/<id>-<size>.<ext>`), written by krizaka-ui `tools/export-defaults.mjs`. */\nexport const defaults: OrgDefaults = {\n version: \"v1\",\n base: BASE,\n rule: {\n pick: \"fnv1a32-modulo\",\n description:\n \"defaultFor(kind, seed) = items[fnv1a32(String(seed)) mod items.length] of the kind's list, in the order of the JSON; the same seed always gives the same item, in every app.\",\n },\n kinds: {\n person: [\n ...tones(\"person\", \"silhouette\", GLYPH_ALT.person),\n ...PEOPLE.map(([id, alt]) => item(\"person\", id, alt, false)),\n ],\n folder: tones(\"folder\", \"folder\", GLYPH_ALT.folder),\n organisation: tones(\"organisation\", \"organisation\", GLYPH_ALT.organisation),\n shop: tones(\"shop\", \"shop\", GLYPH_ALT.shop),\n banner: BANNERS.map(([id, alt]) => item(\"banner\", id, alt, false)),\n },\n};\n\n// ---- reading -------------------------------------------------------------------------------------------------------\n\n/** 32-bit FNV-1a of a seed: stable across runs, devices and products (the same one `@krizaka/ui`'s default avatars use). */\nexport function seedHash(seed: string | number): number {\n let h = 0x811c9dc5;\n for (const ch of String(seed)) {\n h ^= ch.codePointAt(0) ?? 0;\n h = Math.imul(h, 0x01000193) >>> 0;\n }\n return h;\n}\n\n/** The items of a kind that can be picked, in the order of the JSON (a withdrawn one is skipped). A source other than the bundled one is the JSON an app fetched. */\nexport function listDefaults(kind: OrgDefaultKind, source: OrgDefaults = defaults): readonly OrgDefaultItem[] {\n return (source.kinds[kind] ?? []).filter((entry) => entry.disabled !== true);\n}\n\n/** The item of a kind for a seed (an entity's id): deterministic, so a folder keeps its picture everywhere. `undefined` only when the kind's list is empty. */\nexport function defaultFor(\n kind: OrgDefaultKind,\n seed: string | number,\n source: OrgDefaults = defaults,\n): OrgDefaultItem | undefined {\n const items = listDefaults(kind, source);\n return items.length === 0 ? undefined : items[seedHash(seed) % items.length];\n}\n\n/** The URL of an item at the smallest size that is at least `size` px (or the largest there is); `svg` when the item has a vector and `format` says so. */\nexport function defaultUrl(entry: OrgDefaultItem, size: number, format: \"webp\" | \"svg\" = \"webp\"): string {\n if (format === \"svg\" && entry.urls.svg) return entry.urls.svg;\n const sizes = Object.keys(entry.urls.webp)\n .map(Number)\n .sort((a, b) => a - b);\n const chosen = sizes.find((s) => s >= size) ?? sizes[sizes.length - 1];\n return entry.urls.webp[String(chosen)] ?? \"\";\n}\n\n/** Reads the section from the published JSON (`ORG_URL`), for an app that does not bundle this package. */\nexport async function fetchDefaults(url: string, fetchImpl: typeof fetch = fetch): Promise<OrgDefaults> {\n const res = await fetchImpl(url, { headers: { Accept: \"application/json\" } });\n if (!res.ok) throw new Error(`${url} answered ${res.status}`);\n const json = (await res.json()) as { defaults?: OrgDefaults };\n if (!json.defaults) throw new Error(`${url} has no \\`defaults\\` section`);\n return json.defaults;\n}\n","import pkg from \"../package.json\" with { type: \"json\" };\nimport { defaults as centralDefaults } from \"./defaults\";\nimport type { Localized, Org, OrgAvatar, OrgMark } from \"./org.types\";\n\n/** The pull zone that serves the brand files and this JSON. */\nexport const CDN = \"https://krizaka-assets.b-cdn.net\";\nexport const ORG_URL = `${CDN}/org/v1/org.json`;\nexport const ORG_SCHEMA_URL = `${CDN}/org/v1/org.schema.json`;\n\nconst cdn = (path: string) => `${CDN}/${path}`;\n\nconst mark = (kind: \"logo\" | \"mark\", theme: \"dark\" | \"light\"): OrgMark => ({\n svg: cdn(`brand/krizaka/${kind}-${theme}.svg`),\n png64: cdn(`brand/krizaka/${kind}-${theme}-64.png`),\n png256: cdn(`brand/krizaka/${kind}-${theme}-256.png`),\n png512: cdn(`brand/krizaka/${kind}-${theme}-512.png`),\n png1024: cdn(`brand/krizaka/${kind}-${theme}-1024.png`),\n});\n\nconst TONES = [1, 2, 3, 4, 5, 6] as const;\n\nconst avatarAlt = (kind: \"person\" | \"plain\", n: number): Localized =>\n kind === \"person\"\n ? {\n fr: `Photo de profil par défaut : silhouette, teinte ${n}`,\n en: `Default profile picture: silhouette, tone ${n}`,\n }\n : {\n fr: `Photo de profil par défaut : disque uni, teinte ${n}`,\n en: `Default profile picture: plain disc, tone ${n}`,\n };\n\n/** The default profile pictures a product shows when a person has no photo (`people/defaults/v1`, krizaka-ui `tools/export-brand.mjs`). */\nconst defaults: OrgAvatar[] = ([\"person\", \"plain\"] as const).flatMap((kind) =>\n TONES.map((n) => ({\n id: `${kind}-${n}`,\n kind,\n svg: cdn(`people/defaults/v1/krizaka/${kind}-${n}.svg`),\n webp256: cdn(`people/defaults/v1/krizaka/${kind}-${n}-256.webp`),\n webp512: cdn(`people/defaults/v1/krizaka/${kind}-${n}-512.webp`),\n alt: avatarAlt(kind, n),\n })),\n);\n\n/** The public facts about Krizaka. Reviewed by pull request; changing a fact is one PR here and a release. */\ntype FamilyEntry = NonNullable<Org[\"family\"]>[number];\ntype FamilyRow = [\n FamilyEntry[\"id\"],\n string,\n string,\n FamilyEntry[\"group\"],\n FamilyEntry[\"status\"],\n string,\n string | null,\n];\n\nconst GITHUB = \"https://github.com/krizaka\";\nconst gh = (repo: string) => `${GITHUB}/${repo}`;\n\n/** The family list as data: one row per entry (id, name, short, group, status, url, repo). */\nconst FAMILY_ROWS: FamilyRow[] = [\n [\"krizaka\", \"Krizaka\", \"Krizaka\", \"krizaka\", \"released\", \"https://www.krizaka.com\", gh(\"krizaka-com\")],\n [\"blog\", \"Blog\", \"Blog\", \"krizaka\", \"released\", \"https://blog.krizaka.com\", gh(\"krizaka-blog\")],\n [\"orazaka\", \"Orazaka\", \"Orazaka\", \"products\", \"development\", \"https://www.orazaka.com\", gh(\"orazaka\")],\n [\"yomizaka\", \"Yomizaka\", \"Yomizaka\", \"products\", \"development\", \"https://www.yomizaka.com\", gh(\"yomizaka\")],\n [\"akinaza\", \"Akinaza\", \"Akinaza\", \"products\", \"development\", \"https://www.akinaza.com\", gh(\"akinaza\")],\n [\"ui\", \"Krizaka UI\", \"UI\", \"open-source\", \"development\", \"https://ui.krizaka.com\", gh(\"krizaka-ui\")],\n [\"java\", \"Krizaka Java\", \"Java\", \"open-source\", \"development\", \"https://java.krizaka.com\", gh(\"krizaka-build\")],\n [\"ts\", \"Krizaka TypeScript\", \"TypeScript\", \"open-source\", \"development\", \"https://ts.krizaka.com\", gh(\"krizaka-ts\")],\n [\"lab\", \"Krizaka Lab\", \"Lab\", \"open-source\", \"development\", \"https://lab.krizaka.com\", gh(\"krizaka-lab\")],\n [\"github\", \"GitHub\", \"GitHub\", \"github\", \"released\", GITHUB, null],\n];\n\nconst family: FamilyEntry[] = FAMILY_ROWS.map(([id, name, short, group, status, url, repo]) => ({\n id,\n name,\n short,\n group,\n status,\n url,\n repo,\n}));\n\nexport const org: Org = {\n $schema: ORG_SCHEMA_URL,\n schemaVersion: 2,\n version: pkg.version,\n updatedAt: \"2026-10-30\",\n company: {\n legalName: \"Technologies Krizaka Inc.\",\n tradeName: \"Krizaka\",\n neq: \"1182652231\",\n city: \"Montréal\",\n region: \"Québec\",\n country: \"CA\",\n license: \"Apache-2.0\",\n madeIn: { fr: \"Fait à Montréal\", en: \"Made in Montréal\" },\n },\n brand: {\n name: \"Krizaka\",\n logo: { dark: mark(\"logo\", \"dark\"), light: mark(\"logo\", \"light\") },\n mark: { dark: mark(\"mark\", \"dark\"), light: mark(\"mark\", \"light\") },\n favicon: cdn(\"brand/krizaka/favicon.svg\"),\n appleTouchIcon: cdn(\"brand/krizaka/apple-touch-icon.png\"),\n socialPreview: cdn(\"brand/krizaka/social-preview-1280x640.png\"),\n manifest: cdn(\"brand/manifest.json\"),\n },\n people: {\n defaults,\n // No banner is published on the CDN yet; the set joins here with its alts when it is.\n banners: [],\n },\n defaults: centralDefaults,\n products: [\n {\n id: \"orazaka\",\n name: \"Orazaka\",\n status: \"development\",\n url: \"https://www.orazaka.com\",\n repo: \"https://github.com/krizaka/orazaka\",\n },\n {\n id: \"yomizaka\",\n name: \"Yomizaka\",\n status: \"development\",\n url: \"https://www.yomizaka.com\",\n repo: \"https://github.com/krizaka/yomizaka\",\n },\n {\n id: \"akinaza\",\n name: \"Akinaza\",\n status: \"development\",\n url: \"https://www.akinaza.com\",\n repo: \"https://github.com/krizaka/akinaza\",\n },\n ],\n sites: [\n { id: \"www\", name: \"krizaka.com\", url: \"https://www.krizaka.com\" },\n { id: \"ui\", name: \"Krizaka UI\", url: \"https://ui.krizaka.com\" },\n { id: \"java\", name: \"Krizaka Java\", url: \"https://java.krizaka.com\" },\n { id: \"ts\", name: \"Krizaka TypeScript\", url: \"https://ts.krizaka.com\" },\n { id: \"motion\", name: \"Krizaka Lab\", url: \"https://lab.krizaka.com\" },\n { id: \"blog\", name: \"Blog\", url: \"https://blog.krizaka.com\" },\n ],\n family,\n contact: {\n page: { fr: \"https://www.krizaka.com/fr/contact\", en: \"https://www.krizaka.com/en/contact\" },\n email: null,\n },\n footer: {\n line: {\n fr: \"Une entreprise de Technologies Krizaka · Fait à Montréal\",\n en: \"A Technologies Krizaka company · Made in Montréal\",\n },\n legal: [\n {\n id: \"privacy\",\n label: { fr: \"Confidentialité\", en: \"Privacy\" },\n url: { fr: \"https://www.krizaka.com/fr/privacy\", en: \"https://www.krizaka.com/en/privacy\" },\n },\n {\n id: \"terms\",\n label: { fr: \"Conditions\", en: \"Terms\" },\n url: { fr: \"https://www.krizaka.com/fr/terms\", en: \"https://www.krizaka.com/en/terms\" },\n },\n ],\n },\n};\n","import { CDN } from \"./org\";\nimport type { AppConfig } from \"./org.types\";\n\nexport const APP_SCHEMA_URL = `${CDN}/org/v1/app.schema.json`;\nconst UPDATED = \"2026-10-26\";\n\nconst app = (id: string, devUrl: string): AppConfig => ({\n $schema: APP_SCHEMA_URL,\n schemaVersion: 1,\n app: id,\n // Public by nature: an address a client calls. No key, no token, no internal host.\n apiBaseUrl: { dev: devUrl, production: null },\n features: {},\n minAppVersion: \"0.0.0\",\n updatedAt: UPDATED,\n});\n\n/** The runtime config a mobile app may know, per live product. The app reads it at start, with a copy built into the binary as fallback. */\nexport const apps: Record<string, AppConfig> = {\n orazaka: app(\"orazaka\", \"https://dev.orazaka.com\"),\n yomizaka: app(\"yomizaka\", \"https://dev.yomizaka.com\"),\n akinaza: app(\"akinaza\", \"https://dev.akinaza.com\"),\n};\n","import type { Localized } from \"./org.types\";\n\n/**\n * The commercial names (krizaka-internal#2033, #2035, #2036): the code name stays internal, the customer reads the\n * commercial name, « Verikora by Krizaka ». Every app, site and template reads them from here — never a literal.\n *\n * These are NOT in `org.json`: the org JSON is service discovery only (the addresses and versions clients resolve). Names,\n * status, stores and the footer are admin configuration of each app (`@krizaka/settings`, audit trail); this module is the\n * seed and the validation vocabulary, not a published file.\n */\n\n/** `product`: sold on its own. `service`: a part the products carry (Kridoc, the managed storage). */\nexport type BrandKind = \"product\" | \"service\";\n\nexport interface OrgBrand {\n /** The internal name: the repository, the packages, the CLI (`yomizaka`). Never on a public page. */\n codeName: string;\n /** The name the customer reads (`Verikora`). One capital; capitals only in the wordmark. */\n commercialName: string;\n kind: BrandKind;\n /** The endorsement after the name: « by Krizaka » / « par Krizaka ». */\n endorsement: Localized;\n /** The hosts of the brand (https URLs); `null` where it has none. */\n domains: { site: string; app: string | null; shop: string | null; dev: string | null };\n /** The one dated « formerly » line of the transition; `null` when the code name was never public. */\n formerly: Localized | null;\n}\n\nconst ENDORSEMENT = { en: \"by Krizaka\", fr: \"par Krizaka\" };\n\nconst brand = (\n codeName: string,\n commercialName: string,\n kind: BrandKind,\n domains: OrgBrand[\"domains\"],\n formerly: string | null,\n): OrgBrand => ({\n codeName,\n commercialName,\n kind,\n endorsement: ENDORSEMENT,\n domains,\n formerly: formerly\n ? { en: `${formerly} is now ${commercialName}`, fr: `${formerly} s’appelle désormais ${commercialName}` }\n : null,\n});\n\n/** The seed: one commercial name per code name. Nothing flips to it until the readiness checklist (krizaka-internal#2092). */\nexport const brands: readonly OrgBrand[] = [\n brand(\n \"yomizaka\",\n \"Verikora\",\n \"product\",\n { site: \"https://www.verikora.com\", app: null, shop: null, dev: \"https://dev.verikora.com\" },\n \"Yomizaka\",\n ),\n brand(\n \"akinaza\",\n \"Folioviv\",\n \"product\",\n {\n site: \"https://www.folioviv.com\",\n app: \"https://folioviv.app\",\n shop: \"https://folioviv.shop\",\n dev: \"https://dev.folioviv.com\",\n },\n \"Akinaza\",\n ),\n brand(\n \"orazaka\",\n \"Sovkora\",\n \"product\",\n { site: \"https://www.sovkora.com\", app: null, shop: null, dev: \"https://dev.sovkora.com\" },\n \"Orazaka\",\n ),\n // Kachizaka is the code name of the managed storage (Krizaka ECM, krizaka-internal#1916); it was never public.\n brand(\"kachizaka\", \"Kridoc\", \"service\", { site: \"https://www.kridoc.com\", app: null, shop: null, dev: null }, null),\n];\n\n/** The brand of a code name (`brandOf(\"yomizaka\").commercialName` → « Verikora »). */\nexport const brandOf = (codeName: string): OrgBrand => {\n const found = brands.find((b) => b.codeName === codeName);\n if (!found) throw new Error(`Unknown Krizaka code name \"${codeName}\".`);\n return found;\n};\n\n/** The longest name an administrator may set (a bar, a store listing and an email subject must hold it). */\n// @fixed: the App Store's display name limit is 30 characters; the bar and the lockup are drawn for it\nexport const DISPLAY_NAME_MAX = 30;\n\n/**\n * The name an app shows: the administrator's choice (`brand.displayName` in its settings) when one is set, else the\n * commercial name. Never the code name: a setting equal to a code name falls back to the commercial name.\n */\nexport const displayName = (codeName: string, chosen?: string | null): string => {\n const own = chosen?.trim() ?? \"\";\n if (own.length === 0 || own.length > DISPLAY_NAME_MAX || codeNamePattern().test(own))\n return brandOf(codeName).commercialName;\n return own;\n};\n\n/** The lockup in words: « Verikora by Krizaka » / « Verikora par Krizaka ». `fr` reads French, anything else English. */\nexport const lockup = (codeName: string, locale: string, chosen?: string | null): string => {\n const { endorsement } = brandOf(codeName);\n return `${displayName(codeName, chosen)} ${locale === \"fr\" ? endorsement.fr : endorsement.en}`;\n};\n\n/** The words a public surface never shows: every code name, and « Krizaka ECM » (it is Kridoc). */\nexport const CODE_NAMES: readonly string[] = brands.map((b) => b.codeName);\nconst FORMER_WORDINGS: readonly [RegExp, string][] = [[/\\bkrizaka\\s+ecm\\b/gi, \"Kridoc\"]];\n\n/** The code name → commercial name map the guard prints in its hints. */\nexport const codeNameMap = (): Record<string, string> =>\n Object.fromEntries(brands.map((b) => [b.codeName, b.commercialName]));\n\nconst codeNamePattern = (flags = \"i\") => new RegExp(String.raw`\\b(${CODE_NAMES.join(\"|\")})\\b`, flags);\n\n/**\n * What is allowed to keep a code name, declared once (#2036): repository and GitHub URLs, npm and Maven coordinates,\n * the old hosts (`dev.yomizaka.com`, they redirect), code (backticks), and the one « formerly » line of each brand.\n */\nconst HOST_ENDINGS = [\".com\", \".app\", \".shop\", \".dev\"];\nconst LEADING = new Set([\"(\", \"<\", \"«\", '\"', \"'\"]);\nconst TRAILING = new Set([\".\", \",\", \";\", \":\", \"!\", \"?\", \")\", \"]\", \">\", \"»\", '\"', \"'\"]);\n/** The token without the punctuation around it (`(dev.yomizaka.com).` → `dev.yomizaka.com`), in one linear pass. */\nconst trimPunctuation = (raw: string): string => {\n let start = 0;\n let end = raw.length;\n while (start < end && LEADING.has(raw[start] ?? \"\")) start++;\n while (end > start && TRAILING.has(raw[end - 1] ?? \"\")) end--;\n return raw.slice(start, end);\n};\nconst allowedToken = (raw: string): boolean => {\n const token = trimPunctuation(raw);\n const lower = token.toLowerCase();\n return (\n (token.includes(\"://\") && URL.canParse(token)) ||\n lower.startsWith(\"@krizaka/\") ||\n lower.startsWith(\"com.krizaka\") ||\n lower.startsWith(\"krizaka/\") ||\n HOST_ENDINGS.some((end) => lower.endsWith(end) && lower.includes(\".\"))\n );\n};\nconst CODE_SPAN = /`[^`\\n]*`/g;\n/** The text with the target of every markdown link `[label](target)` blanked (lengths kept): the target is a URL, the label stays checked. Linear. */\nconst blankLinkTargets = (text: string): string => {\n let out = \"\";\n let at = 0;\n for (;;) {\n const open = text.indexOf(\"](\", at);\n if (open < 0) return out + text.slice(at);\n const start = open + 2;\n let end = start;\n while (end < text.length && text[end] !== \")\" && text[end] !== \"\\n\") end++;\n if (text[end] !== \")\") {\n out += text.slice(at, start);\n at = start;\n continue;\n }\n out += text.slice(at, start) + \" \".repeat(end - start);\n at = end;\n }\n};\n\nexport interface CodeNameHit {\n /** The word found, as written. */\n word: string;\n /** What to write instead. */\n use: string;\n /** Up to 40 characters around it. */\n context: string;\n}\n\n/** The text with every allowed span blanked (lengths kept, so contexts stay readable). */\nconst blankAllowed = (text: string): string => {\n let out = text;\n for (const brand of brands) {\n for (const line of brand.formerly ? [brand.formerly.en, brand.formerly.fr] : [])\n out = out.split(line).join(\" \".repeat(line.length));\n }\n out = blankLinkTargets(out).replace(CODE_SPAN, (m) => \" \".repeat(m.length));\n return out.replace(/\\S+/g, (m) => (allowedToken(m) ? \" \".repeat(m.length) : m));\n};\n\n/** The code names a piece of customer-facing text shows (case-insensitive, whole words), minus the allowed spans. */\nexport const findCodeNames = (text: string): CodeNameHit[] => {\n const scanned = blankAllowed(text);\n const map = codeNameMap();\n const hits: CodeNameHit[] = [];\n const around = (i: number, n: number) =>\n text\n .slice(Math.max(0, i - 20), i + n + 20)\n .replace(/\\s+/g, \" \")\n .trim();\n for (const m of scanned.matchAll(codeNamePattern(\"gi\"))) {\n hits.push({ word: m[0], use: map[m[0].toLowerCase()] ?? \"\", context: around(m.index ?? 0, m[0].length) });\n }\n for (const [re, use] of FORMER_WORDINGS) {\n for (const m of scanned.matchAll(re)) hits.push({ word: m[0], use, context: around(m.index ?? 0, m[0].length) });\n }\n return hits;\n};\n\n/** The text without the spans from `open` to `close` (an unclosed one runs to the end). Linear: no backtracking regex on page input. */\nconst stripBlocks = (text: string, open: string, close: string): string => {\n let out = \"\";\n let at = 0;\n for (;;) {\n const start = text.indexOf(open, at);\n if (start < 0) return out + text.slice(at);\n out += `${text.slice(at, start)} `;\n const end = text.indexOf(close, start + open.length);\n if (end < 0) return out;\n at = end + close.length;\n }\n};\n\nconst SKIPPED_ELEMENTS = [\"script\", \"style\", \"pre\", \"code\", \"svg\"];\n/** Where the element `name` next opens from `at` (`<code>` or `<code class…>`, never `<codex>`), or -1. */\nconst openingOf = (lower: string, name: string, at: number): number => {\n for (let i = lower.indexOf(`<${name}`, at); i >= 0; i = lower.indexOf(`<${name}`, i + 1)) {\n if (!/[a-z0-9-]/.test(lower[i + name.length + 1] ?? \" \")) return i;\n }\n return -1;\n};\n/** The first skipped element that opens from `at`: its index (-1 when none) and its name. */\nconst nextSkipped = (lower: string, at: number): [number, string] => {\n let found: [number, string] = [-1, \"\"];\n for (const name of SKIPPED_ELEMENTS) {\n const i = openingOf(lower, name, at);\n if (i >= 0 && (found[0] < 0 || i < found[0])) found = [i, name];\n }\n return found;\n};\n/** The text with every tag (`<…>`) replaced by a space, in one linear pass (no backtracking regex on page input). */\nconst stripTags = (html: string): string => {\n let out = \"\";\n let at = 0;\n for (let open = html.indexOf(\"<\"); open >= 0; open = html.indexOf(\"<\", at)) {\n const close = html.indexOf(\">\", open + 1);\n if (close < 0) break;\n out += `${html.slice(at, open)} `;\n at = close + 1;\n }\n return out + html.slice(at);\n};\n/** The text without the elements a visitor does not read as prose (scripts, styles, code, svg), matched case-insensitively. */\nconst stripElements = (html: string): string => {\n const lower = html.toLowerCase();\n let out = \"\";\n let at = 0;\n while (at < html.length) {\n const [next, tag] = nextSkipped(lower, at);\n if (next < 0) return out + html.slice(at);\n out += `${html.slice(at, next)} `;\n const end = lower.indexOf(`</${tag}>`, next);\n if (end < 0) return out;\n at = end + tag.length + 3;\n }\n return out;\n};\n\n/**\n * The text a visitor reads in a built HTML page: the body text, the title, the description and social metadata, and the\n * `alt`, `title` and `aria-label` attributes. Scripts, styles, `<pre>` and `<code>` (developer pages' commands) and\n * comments are left out, and so are class names and links (a `brand-yomizaka` class or a GitHub href is not shown).\n */\nexport const visibleText = (html: string): string => {\n const attrs: string[] = [];\n for (const m of html.matchAll(/<meta\\b[^>]*>/gi)) {\n if (\n /\\b(?:name|property)\\s*=\\s*[\"'](?:description|og:[\\w:]+|twitter:[\\w:]+|application-name|apple-mobile-web-app-title)[\"']/i.test(\n m[0],\n )\n ) {\n const content = /\\bcontent\\s*=\\s*\"([^\"]*)\"|\\bcontent\\s*=\\s*'([^']*)'/i.exec(m[0]);\n if (content) attrs.push(content[1] ?? content[2] ?? \"\");\n }\n }\n for (const m of html.matchAll(/\\b(?:alt|title|aria-label)\\s*=\\s*\"([^\"]*)\"/gi)) attrs.push(m[1] ?? \"\");\n const body = stripTags(stripElements(stripBlocks(html, \"<!--\", \"-->\")))\n .replaceAll(\" \", \" \")\n .replaceAll(\"&\", \"&\");\n return [body, ...attrs].join(\"\\n\");\n};\n\n/**\n * The values of a message catalogue (EN/FR JSON), keyed by their path. A key path may name a code name\n * (`site.yomizaka.title`): keys are structure; only the values are read by a customer.\n */\nexport const catalogueValues = (catalogue: unknown, path = \"\"): [string, string][] => {\n if (typeof catalogue === \"string\") return [[path, catalogue]];\n if (Array.isArray(catalogue)) return catalogue.flatMap((v, i) => catalogueValues(v, `${path}[${i}]`));\n if (catalogue && typeof catalogue === \"object\") {\n return Object.entries(catalogue).flatMap(([k, v]) => catalogueValues(v, path ? `${path}.${k}` : k));\n }\n return [];\n};\n","import { defaultUrl, listDefaults } from \"./defaults\";\nimport type { OrgDefaultItem } from \"./org.types\";\n\n/** The products that have a demo cast. */\nexport type CastProduct = \"orazaka\" | \"yomizaka\" | \"akinaza\";\n\n/** What a persona does in the app: a member, a shop owner or a customer of one, an administrator. */\nexport type CastRole = \"member\" | \"admin\" | \"owner\" | \"client\";\n\n/** One fictitious person of the demo cast. No e-mail domain and no password: those come from the environment, through the secrets map. */\nexport interface CastPersona {\n /** Stable key, unique in its product: `eric`, `camille`. Seeds, recordings and tests name the persona by it. */\n readonly id: string;\n readonly product: CastProduct;\n readonly firstName: string;\n /** The name every screen, demo and recording shows: never « qa » nor « admin ». */\n readonly displayName: string;\n readonly role: CastRole;\n readonly locale: \"fr\" | \"en\";\n /** Id of a `person` default of the org defaults JSON (`defaults/v1/person/<id>`). */\n readonly avatar: string;\n /** Id of a `banner` default, for the personas whose page has one. */\n readonly banner?: string;\n /** The demo workspace the persona belongs to (a key the app's seed knows: a set of folders, a shop). */\n readonly workspace: string;\n}\n\n/** The versioned cast. Change it here, then re-run each app's `seed --cast`: every environment gets the same people. */\n// @fixed: a schema version of the cast, bumped by hand when its shape changes\nexport const CAST_VERSION = 1;\n\nexport const CAST: readonly CastPersona[] = [\n // The same three people as the deployed QA accounts (Eric, Mira, Camille) in each product, so a laptop and the dev deployment hold the same names.\n {\n id: \"eric\",\n product: \"yomizaka\",\n firstName: \"Éric\",\n displayName: \"Éric Tremblay\",\n role: \"member\",\n locale: \"fr\",\n avatar: \"community-lead\",\n workspace: \"rosemont-villeray\",\n },\n {\n id: \"mira\",\n product: \"yomizaka\",\n firstName: \"Mira\",\n displayName: \"Mira Haddad\",\n role: \"admin\",\n locale: \"fr\",\n avatar: \"ai-builder\",\n workspace: \"administration\",\n },\n {\n id: \"camille\",\n product: \"yomizaka\",\n firstName: \"Camille\",\n displayName: \"Camille Tremblay\",\n role: \"member\",\n locale: \"fr\",\n avatar: \"visual-artist\",\n workspace: \"rosemont-villeray\",\n },\n // Orazaka: the accounts already deployed on dev. Éric is the user (ORAZAKA_USER_*, APP_QA_ORAZAKA_PERSONA_*), Mira the administrator\n // (ORAZAKA_ADMIN_*, APP_QA_ORAZAKA_MIRA_*), Krizaka the company as an SME customer (APP_QA_ORAZAKA_KRIZAKA_*). The greeting reads the name: never « qa_user ».\n {\n id: \"eric\",\n product: \"orazaka\",\n firstName: \"Éric\",\n displayName: \"Éric Tremblay\",\n role: \"member\",\n locale: \"fr\",\n avatar: \"community-lead\",\n workspace: \"demo\",\n },\n {\n id: \"mira\",\n product: \"orazaka\",\n firstName: \"Mira\",\n displayName: \"Mira Haddad\",\n role: \"admin\",\n locale: \"fr\",\n avatar: \"ai-builder\",\n workspace: \"administration\",\n },\n {\n id: \"krizaka\",\n product: \"orazaka\",\n firstName: \"Krizaka\",\n displayName: \"Krizaka\",\n role: \"member\",\n locale: \"fr\",\n avatar: \"tech-architect\",\n workspace: \"demo\",\n },\n // Akinaza: Éric owns the Krizaka studio, Léa is the Saint-Henri walker, Camille is her first client, Mira administers.\n {\n id: \"eric\",\n product: \"akinaza\",\n firstName: \"Éric\",\n displayName: \"Éric Tremblay\",\n role: \"owner\",\n locale: \"fr\",\n avatar: \"community-lead\",\n banner: \"creator-loft-studio\",\n workspace: \"krizaka-studio\",\n },\n {\n id: \"mira\",\n product: \"akinaza\",\n firstName: \"Mira\",\n displayName: \"Mira Haddad\",\n role: \"admin\",\n locale: \"fr\",\n avatar: \"ai-builder\",\n workspace: \"administration\",\n },\n {\n id: \"lea\",\n product: \"akinaza\",\n firstName: \"Léa\",\n displayName: \"Léa Beaulieu\",\n role: \"owner\",\n locale: \"fr\",\n avatar: \"studio-maker\",\n banner: \"cafe-maker-studio\",\n workspace: \"saint-henri\",\n },\n {\n id: \"camille\",\n product: \"akinaza\",\n firstName: \"Camille\",\n displayName: \"Camille Tremblay\",\n role: \"client\",\n locale: \"fr\",\n avatar: \"visual-artist\",\n workspace: \"saint-henri\",\n },\n {\n id: \"jordan\",\n product: \"akinaza\",\n firstName: \"Jordan\",\n displayName: \"Jordan Lee\",\n role: \"client\",\n locale: \"en\",\n avatar: \"tech-architect\",\n workspace: \"saint-henri\",\n },\n {\n id: \"nadia\",\n product: \"akinaza\",\n firstName: \"Nadia\",\n displayName: \"Nadia Benali\",\n role: \"client\",\n locale: \"fr\",\n avatar: \"digital-creator\",\n workspace: \"saint-henri\",\n },\n {\n id: \"etienne\",\n product: \"akinaza\",\n firstName: \"Étienne\",\n displayName: \"Étienne Gagnon\",\n role: \"client\",\n locale: \"fr\",\n avatar: \"boom-bap\",\n workspace: \"saint-henri\",\n },\n {\n id: \"sofia\",\n product: \"akinaza\",\n firstName: \"Sofia\",\n displayName: \"Sofia Rossi\",\n role: \"client\",\n locale: \"en\",\n avatar: \"salon-tattoo-maker\",\n workspace: \"saint-henri\",\n },\n];\n\n/** The personas of a product, in cast order. */\nexport const castOf = (product: CastProduct): readonly CastPersona[] => CAST.filter((p) => p.product === product);\n\n/** One persona by product and id; throws on an unknown one (a seed or a recording naming a person the cast lacks is a bug). */\nexport function persona(product: CastProduct, id: string): CastPersona {\n const found = CAST.find((p) => p.product === product && p.id === id);\n if (!found)\n throw new Error(\n `cast: no persona \"${id}\" in ${product} (known: ${castOf(product)\n .map((p) => p.id)\n .join(\", \")})`,\n );\n return found;\n}\n\n/** The first persona of a role in a product (the member to sign in as, the administrator). */\nexport function personaByRole(product: CastProduct, role: CastRole): CastPersona {\n const found = castOf(product).find((p) => p.role === role);\n if (!found) throw new Error(`cast: no ${role} in ${product}`);\n return found;\n}\n\nconst urlOf = (kind: \"person\" | \"banner\", id: string, size: number): string => {\n const entry: OrgDefaultItem | undefined = listDefaults(kind).find((d) => d.id === id);\n if (!entry) throw new Error(`cast: no ${kind} default \"${id}\" in the org defaults`);\n return defaultUrl(entry, size);\n};\n\n/** The avatar and banner URLs of a persona, from the org defaults (Bunny, versioned): never typed in an app. */\nexport function castMedia(p: CastPersona, size = 512): { avatar: string; banner?: string } {\n return { avatar: urlOf(\"person\", p.avatar, size), ...(p.banner ? { banner: urlOf(\"banner\", p.banner, 960) } : {}) };\n}\n\n/**\n * The fingerprint of what a seed must leave in a database: counts per table, in a stable order. The seed prints it and\n * a check after the deploy compares the local one with the dev one (same cast and same code give the same string).\n */\nexport function seedFingerprint(counts: Readonly<Record<string, number>>): string {\n return Object.keys(counts)\n .sort((a, b) => (a < b ? -1 : a > b ? 1 : 0)) // by code point, never by locale: the same string on every machine\n .map((table) => `${table}=${counts[table]}`)\n .join(\";\");\n}\n","import { CDN, ORG_SCHEMA_URL } from \"./org\";\n\nconst localized = {\n type: \"object\",\n additionalProperties: false,\n required: [\"fr\", \"en\"],\n properties: { fr: { type: \"string\", minLength: 1 }, en: { type: \"string\", minLength: 1 } },\n} as const;\nconst httpsUrl = { type: \"string\", format: \"uri\", pattern: \"^https://\" } as const;\nconst mark = {\n type: \"object\",\n additionalProperties: false,\n required: [\"svg\", \"png64\", \"png256\", \"png512\", \"png1024\"],\n properties: { svg: httpsUrl, png64: httpsUrl, png256: httpsUrl, png512: httpsUrl, png1024: httpsUrl },\n} as const;\nconst slug = { type: \"string\", pattern: \"^[a-z0-9]+(-[a-z0-9]+)*$\" } as const;\nconst themed = {\n type: \"object\",\n additionalProperties: false,\n required: [\"dark\", \"light\"],\n properties: { dark: mark, light: mark },\n} as const;\nconst date = { type: \"string\", pattern: \"^\\\\d{4}-\\\\d{2}-\\\\d{2}$\" } as const;\nconst semver = { type: \"string\", pattern: \"^\\\\d+\\\\.\\\\d+\\\\.\\\\d+$\" } as const;\n\nconst defaultItems = {\n type: \"array\",\n minItems: 1,\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"alt\", \"urls\"],\n properties: {\n id: slug,\n alt: localized,\n disabled: { const: true },\n urls: {\n type: \"object\",\n additionalProperties: false,\n required: [\"webp\"],\n properties: {\n svg: httpsUrl,\n webp: {\n type: \"object\",\n minProperties: 1,\n propertyNames: { pattern: \"^\\\\d+$\" },\n additionalProperties: httpsUrl,\n },\n },\n },\n },\n },\n} as const;\n\n/** The JSON Schema of `org/v1/org.json`. Nothing outside it is allowed (`additionalProperties: false` everywhere): a new fact is a new line here first. */\nexport const orgSchema = {\n $schema: \"https://json-schema.org/draft/2020-12/schema\",\n $id: ORG_SCHEMA_URL,\n title: \"Krizaka organisation — public facts\",\n type: \"object\",\n additionalProperties: false,\n required: [\n \"$schema\",\n \"schemaVersion\",\n \"version\",\n \"updatedAt\",\n \"company\",\n \"brand\",\n \"people\",\n \"defaults\",\n \"products\",\n \"sites\",\n \"family\",\n \"contact\",\n \"footer\",\n ],\n properties: {\n $schema: { type: \"string\" },\n schemaVersion: { enum: [1, 2] },\n version: semver,\n updatedAt: date,\n company: {\n type: \"object\",\n additionalProperties: false,\n required: [\"legalName\", \"tradeName\", \"neq\", \"city\", \"region\", \"country\", \"license\", \"madeIn\"],\n properties: {\n legalName: { type: \"string\", minLength: 1 },\n tradeName: { type: \"string\", minLength: 1 },\n neq: { type: \"string\", pattern: \"^\\\\d{10}$\" },\n city: { type: \"string\", minLength: 1 },\n region: { type: \"string\", minLength: 1 },\n country: { type: \"string\", pattern: \"^[A-Z]{2}$\" },\n license: { type: \"string\", minLength: 1 },\n madeIn: localized,\n },\n },\n brand: {\n type: \"object\",\n additionalProperties: false,\n required: [\"name\", \"logo\", \"mark\", \"favicon\", \"appleTouchIcon\", \"socialPreview\", \"manifest\"],\n properties: {\n name: { type: \"string\", minLength: 1 },\n logo: themed,\n mark: themed,\n favicon: httpsUrl,\n appleTouchIcon: httpsUrl,\n socialPreview: httpsUrl,\n manifest: httpsUrl,\n },\n },\n people: {\n type: \"object\",\n additionalProperties: false,\n required: [\"defaults\", \"banners\"],\n properties: {\n defaults: {\n type: \"array\",\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"kind\", \"svg\", \"webp256\", \"webp512\", \"alt\"],\n properties: {\n id: slug,\n kind: { enum: [\"person\", \"plain\"] },\n svg: httpsUrl,\n webp256: httpsUrl,\n webp512: httpsUrl,\n alt: localized,\n },\n },\n },\n banners: {\n type: \"array\",\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"url\", \"alt\"],\n properties: { id: slug, url: httpsUrl, alt: localized },\n },\n },\n },\n },\n defaults: {\n type: \"object\",\n additionalProperties: false,\n required: [\"version\", \"base\", \"rule\", \"kinds\"],\n properties: {\n version: { type: \"string\", pattern: \"^v\\\\d+$\" },\n base: httpsUrl,\n rule: {\n type: \"object\",\n additionalProperties: false,\n required: [\"pick\", \"description\"],\n properties: { pick: { const: \"fnv1a32-modulo\" }, description: { type: \"string\", minLength: 1 } },\n },\n kinds: {\n type: \"object\",\n additionalProperties: false,\n required: [\"person\", \"folder\", \"organisation\", \"shop\", \"banner\"],\n properties: Object.fromEntries(\n [\"person\", \"folder\", \"organisation\", \"shop\", \"banner\"].map((kind) => [kind, defaultItems]),\n ),\n },\n },\n },\n products: {\n type: \"array\",\n minItems: 1,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"name\", \"status\", \"url\", \"repo\"],\n properties: {\n id: slug,\n name: { type: \"string\", minLength: 1 },\n status: { enum: [\"development\", \"devPreview\"] },\n url: httpsUrl,\n repo: httpsUrl,\n },\n },\n },\n sites: {\n type: \"array\",\n minItems: 1,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"name\", \"url\"],\n properties: { id: slug, name: { type: \"string\", minLength: 1 }, url: httpsUrl },\n },\n },\n family: {\n type: \"array\",\n minItems: 1,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"name\", \"short\", \"group\", \"status\", \"url\", \"repo\"],\n properties: {\n id: slug,\n name: { type: \"string\", minLength: 1 },\n short: { type: \"string\", minLength: 1 },\n group: { enum: [\"krizaka\", \"products\", \"open-source\", \"github\"] },\n status: { enum: [\"released\", \"development\"] },\n releasedAt: { type: \"string\", pattern: \"^\\\\d{4}-\\\\d{2}-\\\\d{2}$\" },\n url: httpsUrl,\n repo: { anyOf: [httpsUrl, { type: \"null\" }] },\n },\n },\n },\n contact: {\n type: \"object\",\n additionalProperties: false,\n required: [\"page\", \"email\"],\n properties: {\n page: {\n type: \"object\",\n additionalProperties: false,\n required: [\"fr\", \"en\"],\n properties: { fr: httpsUrl, en: httpsUrl },\n },\n email: { type: [\"string\", \"null\"], format: \"email\" },\n },\n },\n footer: {\n type: \"object\",\n additionalProperties: false,\n required: [\"line\", \"legal\"],\n properties: {\n line: localized,\n legal: {\n type: \"array\",\n minItems: 1,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"id\", \"label\", \"url\"],\n properties: {\n id: { enum: [\"privacy\", \"terms\"] },\n label: localized,\n url: {\n type: \"object\",\n additionalProperties: false,\n required: [\"fr\", \"en\"],\n properties: { fr: httpsUrl, en: httpsUrl },\n },\n },\n },\n },\n },\n },\n },\n} as const;\n\n/** The JSON Schema of `apps/<product>.json`. */\nexport const appSchema = {\n $schema: \"https://json-schema.org/draft/2020-12/schema\",\n $id: `${CDN}/org/v1/app.schema.json`,\n title: \"Krizaka mobile app — public runtime config\",\n type: \"object\",\n additionalProperties: false,\n required: [\"$schema\", \"schemaVersion\", \"app\", \"apiBaseUrl\", \"features\", \"minAppVersion\", \"updatedAt\"],\n properties: {\n $schema: { type: \"string\" },\n schemaVersion: { const: 1 },\n app: slug,\n apiBaseUrl: {\n type: \"object\",\n additionalProperties: false,\n required: [\"dev\", \"production\"],\n properties: { dev: { anyOf: [httpsUrl, { type: \"null\" }] }, production: { anyOf: [httpsUrl, { type: \"null\" }] } },\n },\n features: { type: \"object\", additionalProperties: { type: \"boolean\" } },\n minAppVersion: semver,\n updatedAt: date,\n },\n} as const;\n","export { APP_SCHEMA_URL, apps } from \"./apps\";\nexport type { BrandKind, CodeNameHit, OrgBrand } from \"./brands\";\nexport {\n brandOf,\n brands,\n catalogueValues,\n CODE_NAMES,\n codeNameMap,\n DISPLAY_NAME_MAX,\n displayName,\n findCodeNames,\n lockup,\n visibleText,\n} from \"./brands\";\nexport type { CastPersona, CastProduct, CastRole } from \"./cast\";\nexport { CAST, CAST_VERSION, castMedia, castOf, persona, personaByRole, seedFingerprint } from \"./cast\";\nexport { DEFAULT_KINDS, defaultFor, defaults, defaultUrl, fetchDefaults, listDefaults, seedHash } from \"./defaults\";\nexport { CDN, org, ORG_SCHEMA_URL, ORG_URL } from \"./org\";\nexport type {\n AppConfig,\n AppEnvironment,\n FamilyEntry,\n FamilyGroup,\n FamilyStatus,\n Localized,\n Org,\n OrgAvatar,\n OrgBanner,\n OrgDefaultItem,\n OrgDefaultKind,\n OrgDefaults,\n OrgMark,\n OrgProduct,\n OrgSite,\n ProductStatus,\n} from \"./org.types\";\nexport { appSchema, orgSchema } from \"./schema\";\n\nimport { org } from \"./org\";\nimport type { Localized } from \"./org.types\";\n\n/** The text of a localized pair for a language (`fr` or `en`; anything else reads English). */\nexport const localized = (text: Localized, locale: string): string => (locale === \"fr\" ? text.fr : text.en);\n\n/** The footer line of the family, « Une entreprise de Technologies Krizaka · Fait à Montréal ». */\nexport const footerLine = (locale: string): string => localized(org.footer.line, locale);\n\n/** A name of the family by id (`familyName(\"ts\")` → « Krizaka TypeScript »): the only way a site writes one. */\nexport const familyEntry = (id: string) => {\n const entry = org.family.find((e) => e.id === id);\n if (!entry) throw new Error(`Unknown Krizaka family entry \"${id}\".`);\n return entry;\n};\nexport const familyName = (id: string): string => familyEntry(id).name;\n"],"mappings":";AAAA;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,UAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,UAAY;AAAA,EACZ,MAAQ;AAAA,EACR,YAAc;AAAA,IACZ,MAAQ;AAAA,IACR,KAAO;AAAA,IACP,WAAa;AAAA,EACf;AAAA,EACA,SAAW;AAAA,EACX,QAAU;AAAA,EACV,MAAQ;AAAA,EACR,MAAQ;AAAA,EACR,QAAU;AAAA,EACV,OAAS;AAAA,EACT,SAAW;AAAA,IACT,KAAK;AAAA,MACH,OAAS;AAAA,MACT,QAAU;AAAA,IACZ;AAAA,IACA,cAAc;AAAA,IACd,qBAAqB;AAAA,IACrB,iBAAiB;AAAA,IACjB,kBAAkB;AAAA,EACpB;AAAA,EACA,KAAO;AAAA,IACL,sBAAsB;AAAA,EACxB;AAAA,EACA,OAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,aAAe;AAAA,EACf,SAAW;AAAA,IACT,OAAS;AAAA,IACT,MAAQ;AAAA,IACR,WAAa;AAAA,IACb,MAAQ;AAAA,IACR,OAAS;AAAA,IACT,eAAe;AAAA,IACf,gBAAkB;AAAA,EACpB;AAAA,EACA,SAAW;AAAA,IACT,MAAQ;AAAA,EACV;AAAA,EACA,iBAAmB;AAAA,IACjB,mBAAmB;AAAA,IACnB,eAAe;AAAA,IACf,KAAO;AAAA,IACP,QAAU;AAAA,IACV,MAAQ;AAAA,IACR,YAAc;AAAA,IACd,QAAU;AAAA,EACZ;AACF;;;AC9DA,IAAM,OAAO;AAGN,IAAM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,OAAO,CAAC,UAAU,EAAE,MAAM,OAAO,CAAC,EAAE,EAAE;AAAA,IAClH;AAAA,IACA,UAAU,EAAE,MAAM,UAAU,sBAAsB,EAAE,MAAM,UAAU,EAAE;AAAA,IACtE,eAAe;AAAA,IACf,WAAW;AAAA,EACb;AACF;;;AC3OO,IAAMC,aAAY,CAAC,MAAiB,WAA4B,WAAW,OAAO,KAAK,KAAK,KAAK;AAGjG,IAAM,aAAa,CAAC,WAA2BA,WAAU,IAAI,OAAO,MAAM,MAAM;AAGhF,IAAM,cAAc,CAAC,OAAe;AACzC,QAAM,QAAQ,IAAI,OAAO,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE;AAChD,MAAI,CAAC,MAAO,OAAM,IAAI,MAAM,iCAAiC,EAAE,IAAI;AACnE,SAAO;AACT;AACO,IAAM,aAAa,CAAC,OAAuB,YAAY,EAAE,EAAE;","names":["defaults","brand","mark","localized"]}
|
package/dist/org.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://krizaka-assets.b-cdn.net/org/v1/org.schema.json",
|
|
3
3
|
"schemaVersion": 2,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"updatedAt": "2026-10-30",
|
|
6
6
|
"company": {
|
|
7
7
|
"legalName": "Technologies Krizaka Inc.",
|
|
@@ -1003,7 +1003,7 @@
|
|
|
1003
1003
|
"name": "Krizaka UI",
|
|
1004
1004
|
"short": "UI",
|
|
1005
1005
|
"group": "open-source",
|
|
1006
|
-
"status": "
|
|
1006
|
+
"status": "development",
|
|
1007
1007
|
"url": "https://ui.krizaka.com",
|
|
1008
1008
|
"repo": "https://github.com/krizaka/krizaka-ui"
|
|
1009
1009
|
},
|
|
@@ -1012,7 +1012,7 @@
|
|
|
1012
1012
|
"name": "Krizaka Java",
|
|
1013
1013
|
"short": "Java",
|
|
1014
1014
|
"group": "open-source",
|
|
1015
|
-
"status": "
|
|
1015
|
+
"status": "development",
|
|
1016
1016
|
"url": "https://java.krizaka.com",
|
|
1017
1017
|
"repo": "https://github.com/krizaka/krizaka-build"
|
|
1018
1018
|
},
|
|
@@ -1021,7 +1021,7 @@
|
|
|
1021
1021
|
"name": "Krizaka TypeScript",
|
|
1022
1022
|
"short": "TypeScript",
|
|
1023
1023
|
"group": "open-source",
|
|
1024
|
-
"status": "
|
|
1024
|
+
"status": "development",
|
|
1025
1025
|
"url": "https://ts.krizaka.com",
|
|
1026
1026
|
"repo": "https://github.com/krizaka/krizaka-ts"
|
|
1027
1027
|
},
|
|
@@ -1034,15 +1034,6 @@
|
|
|
1034
1034
|
"url": "https://lab.krizaka.com",
|
|
1035
1035
|
"repo": "https://github.com/krizaka/krizaka-lab"
|
|
1036
1036
|
},
|
|
1037
|
-
{
|
|
1038
|
-
"id": "skills",
|
|
1039
|
-
"name": "Krizaka Skills",
|
|
1040
|
-
"short": "Skills",
|
|
1041
|
-
"group": "open-source",
|
|
1042
|
-
"status": "released",
|
|
1043
|
-
"url": "https://github.com/krizaka/krizaka-skills",
|
|
1044
|
-
"repo": "https://github.com/krizaka/krizaka-skills"
|
|
1045
|
-
},
|
|
1046
1037
|
{
|
|
1047
1038
|
"id": "github",
|
|
1048
1039
|
"name": "GitHub",
|
package/dist/org.schema.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krizaka/org",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "The public facts about Krizaka, in one validated JSON that every footer, site and app reads: legal name, NEQ, « Fait à Montréal » in French and English, brand marks, default avatars and banners, the live products and sites, the public contact, the footer line and the mobile apps' public runtime config. Typed data, JSON Schema, and the files published on the CDN.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"krizaka",
|
|
@@ -32,8 +32,12 @@
|
|
|
32
32
|
"./apps/*.json": "./dist/apps/*.json",
|
|
33
33
|
"./package.json": "./package.json"
|
|
34
34
|
},
|
|
35
|
+
"bin": {
|
|
36
|
+
"krizaka-code-names": "./bin/krizaka-code-names.mjs"
|
|
37
|
+
},
|
|
35
38
|
"files": [
|
|
36
39
|
"dist",
|
|
40
|
+
"bin",
|
|
37
41
|
"README.md",
|
|
38
42
|
"LICENSE"
|
|
39
43
|
],
|