@iksnerd/blazon 0.4.0 → 0.5.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/CHANGELOG.md +375 -0
- package/dist/chunks/{site-builder-BOQjoDbM.js → site-builder-C8g2sfUv.js} +3519 -3712
- package/dist/cli/commands/approvals.d.ts +1 -1
- package/dist/cli/commands/approvals.d.ts.map +1 -1
- package/dist/cli/commands/mcp-check.d.ts +7 -4
- package/dist/cli/commands/mcp-check.d.ts.map +1 -1
- package/dist/cli/errors.d.ts +3 -1
- package/dist/cli/errors.d.ts.map +1 -1
- package/dist/cli/folder-first.d.ts +7 -0
- package/dist/cli/folder-first.d.ts.map +1 -0
- package/dist/cli/index.js +1098 -965
- package/dist/cli/operations.d.ts.map +1 -1
- package/dist/cli/where.d.ts +2 -0
- package/dist/cli/where.d.ts.map +1 -1
- package/dist/core/assets/representations.d.ts +44 -0
- package/dist/core/assets/representations.d.ts.map +1 -0
- package/dist/core/assets/scanner.d.ts.map +1 -1
- package/dist/core/assets/sidecar.d.ts.map +1 -1
- package/dist/core/brand/export.d.ts +13 -5
- package/dist/core/brand/export.d.ts.map +1 -1
- package/dist/core/brand/schema.d.ts +68 -0
- package/dist/core/brand/schema.d.ts.map +1 -1
- package/dist/core/checker/approvals.d.ts +5 -0
- package/dist/core/checker/approvals.d.ts.map +1 -1
- package/dist/core/checker/catalogue.d.ts +31 -7
- package/dist/core/checker/catalogue.d.ts.map +1 -1
- package/dist/core/checker/font-meta.d.ts.map +1 -1
- package/dist/core/checker/review.d.ts +19 -1
- package/dist/core/checker/review.d.ts.map +1 -1
- package/dist/core/docs/directives.d.ts +10 -0
- package/dist/core/docs/directives.d.ts.map +1 -1
- package/dist/core/docs/parser.d.ts.map +1 -1
- package/dist/core/font-roles.d.ts +11 -0
- package/dist/core/font-roles.d.ts.map +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/init/from-site/fonts.d.ts.map +1 -1
- package/dist/core/logo/colorways.d.ts +29 -0
- package/dist/core/logo/colorways.d.ts.map +1 -0
- package/dist/core/logo/misuse.d.ts +18 -0
- package/dist/core/logo/misuse.d.ts.map +1 -0
- package/dist/core/mcp-config.d.ts +7 -0
- package/dist/core/mcp-config.d.ts.map +1 -1
- package/dist/core/read/can.d.ts +2 -1
- package/dist/core/read/can.d.ts.map +1 -1
- package/dist/core/read/fonts.d.ts +2 -6
- package/dist/core/read/fonts.d.ts.map +1 -1
- package/dist/core/read/logo.d.ts +3 -3
- package/dist/core/read/logo.d.ts.map +1 -1
- package/dist/core/read/lookup.d.ts +2 -2
- package/dist/core/read/lookup.d.ts.map +1 -1
- package/dist/core/read/theme.d.ts +1 -1
- package/dist/core/read/theme.d.ts.map +1 -1
- package/dist/core/tokens/alias.d.ts +5 -3
- package/dist/core/tokens/alias.d.ts.map +1 -1
- package/dist/core/tokens/contexts.d.ts +11 -3
- package/dist/core/tokens/contexts.d.ts.map +1 -1
- package/dist/core/tokens/formatters/json.d.ts +4 -1
- package/dist/core/tokens/formatters/json.d.ts.map +1 -1
- package/dist/core/tokens/key-lines.d.ts.map +1 -1
- package/dist/core/tokens/merge.d.ts.map +1 -1
- package/dist/core/tokens/resolver/compile.d.ts.map +1 -1
- package/dist/core/tokens/resolver/parse.d.ts.map +1 -1
- package/dist/core/tokens/resolver/sources.d.ts.map +1 -1
- package/dist/core/tokens/walk.d.ts.map +1 -1
- package/dist/index.js +34 -34
- package/dist/plugins/host/call.d.ts.map +1 -1
- package/dist/plugins/roles/roles.d.ts.map +1 -1
- package/dist/server/plugin.d.ts.map +1 -1
- package/dist/types/assets.d.ts +19 -1
- package/dist/types/assets.d.ts.map +1 -1
- package/dist/types/parsed.d.ts +8 -0
- package/dist/types/parsed.d.ts.map +1 -1
- package/dist/types/tokens.d.ts +12 -0
- package/dist/types/tokens.d.ts.map +1 -1
- package/dist/ui/assets/index-b4HhGGrn.js +82 -0
- package/dist/ui/assets/index-pE1ku5gt.css +2 -0
- package/dist/ui/index.html +2 -2
- package/mcp/dist/index.js +4 -4
- package/package.json +3 -2
- package/plugins/blazon.brand-deck/README.md +1 -1
- package/plugins/blazon.brand-deck/bin/blazon-blazon.brand-deck./360/237/224/214 +106 -13
- package/plugins/blazon.favicons/bin/blazon-blazon.favicons./360/237/224/214 +120 -12
- package/plugins/blazon.logo-geometry/bin/blazon-blazon.logo-geometry./360/237/224/214 +45 -1
- package/plugins/blazon.logo-kit/bin/blazon-blazon.logo-kit./360/237/224/214 +45 -1
- package/plugins/blazon.office-template/bin/blazon-blazon.office-template./360/237/224/214 +66 -3
- package/plugins/blazon.platform-tokens/README.md +1 -1
- package/plugins/blazon.press-kit/README.md +17 -9
- package/plugins/blazon.press-kit/bin/blazon-blazon.press-kit./360/237/224/214 +621 -101
- package/plugins/blazon.social-cards/bin/blazon-blazon.social-cards./360/237/224/214 +59 -3
- package/plugins/shipped.lock +8 -8
- package/dist/ui/assets/index-Biy1hkeq.css +0 -2
- package/dist/ui/assets/index-dkJG6W9p.js +0 -82
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Prints every token and asset marked `review.status: ok` with the fingerprint of its value today and whether `review.value` holds
|
|
2
|
+
* Prints every token and asset id marked `review.status: ok` with the fingerprint of its value today and whether `review.value` holds
|
|
3
3
|
* it, so a person who has confirmed a value can copy the fingerprint into the review. It writes nothing. Returns the exit status.
|
|
4
4
|
*/
|
|
5
5
|
export declare function runApprovals(dir?: string, options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/approvals.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,wBAAsB,YAAY,CAAC,GAAG,GAAE,MAAsB,EAAE,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/approvals.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,wBAAsB,YAAY,CAAC,GAAG,GAAE,MAAsB,EAAE,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CA0BjH"}
|
|
@@ -37,11 +37,14 @@ export interface HandshakeOptions {
|
|
|
37
37
|
*/
|
|
38
38
|
export declare function handshake(options: HandshakeOptions): Promise<McpCheck>;
|
|
39
39
|
/**
|
|
40
|
-
* (d) Whether the client's config has an entry named `blazon
|
|
41
|
-
*
|
|
42
|
-
*
|
|
40
|
+
* (d) Whether the client's config has an entry named `blazon`, and whether that entry runs this install's server file (the `mcp/dist/index.js`
|
|
41
|
+
* that `blazon mcp --print-config` names: it comes from the same function). Of a file it reads the server names and, for the `blazon` entry,
|
|
42
|
+
* the command and arguments, to find one script path; nothing else (another argument, an environment value, a token) is kept or printed, and
|
|
43
|
+
* nothing is written or run. State `same`: it runs this install's file. `different`: it runs another file. `unknown`: no script path could be
|
|
44
|
+
* identified from the entry (an `npx` or `blazon-mcp` form, a file that is not there), and this says so instead of guessing. `none`: not
|
|
45
|
+
* registered. Only `same` passes; the check is advisory in every state, so none of them changes the exit status.
|
|
43
46
|
*/
|
|
44
|
-
export declare function checkRegistered(client: McpClient, folders: string[], brand: string, home?: string): McpCheck;
|
|
47
|
+
export declare function checkRegistered(client: McpClient, folders: string[], brand: string, home?: string, root?: string): McpCheck;
|
|
45
48
|
export interface McpCheckOptions {
|
|
46
49
|
client: McpClient;
|
|
47
50
|
brand: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-check.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/mcp-check.ts"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"mcp-check.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/mcp-check.ts"],"names":[],"mappings":"AAKA,OAAO,EAQL,KAAK,SAAS,EAE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E,MAAM,EAAE,IAAI,SAAe,EAAE,IAAI,SAAgB,GAAG,QAAQ,CAuExI;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,oFAAoF;IACpF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,0JAA0J;AAC1J,wBAAsB,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAgC3E"}
|
package/dist/cli/errors.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export type ErrorCode = (typeof ERROR_CODES)[number];
|
|
|
11
11
|
export declare class BlazonError extends Error {
|
|
12
12
|
readonly fix?: string | undefined;
|
|
13
13
|
readonly code: ErrorCode;
|
|
14
|
+
/** A third line for a person, set where the command line is known (folder-first.ts). Standard error only: `--json` does not carry it. */
|
|
15
|
+
hint?: string;
|
|
14
16
|
constructor(message: string, fix?: string | undefined, code?: ErrorCode);
|
|
15
17
|
}
|
|
16
18
|
/** A command was pointed at something that is not there (a folder, a tokens folder): the command line was used wrongly, so exit 2. */
|
|
@@ -21,7 +23,7 @@ export declare const busyPort: (port: number) => UsageError;
|
|
|
21
23
|
/** The status a command ends with when it was used wrongly, so a caller can tell that from a failed check (1). */
|
|
22
24
|
export declare const USAGE_STATUS = 2;
|
|
23
25
|
/** The one text shape of an error: `blazon <command>: <what happened>`, and the fix, when there is one, indented on the next line. */
|
|
24
|
-
export declare function errorText(command: string, what: string, fix?: string): string;
|
|
26
|
+
export declare function errorText(command: string, what: string, fix?: string, hint?: string): string;
|
|
25
27
|
/** The same error as the one sentence `--json` carries in `error.message`: what happened, then the fix after a semicolon. */
|
|
26
28
|
export declare const jsonMessage: (what: string, fix?: string) => string;
|
|
27
29
|
/** Under --json a command that ends in an error says so on standard output as well, as one JSON object, so a script always gets JSON. */
|
package/dist/cli/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/cli/errors.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,WAAW,kWAqBd,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD;;;GAGG;AACH,qBAAa,WAAY,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/cli/errors.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,WAAW,kWAqBd,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD;;;GAGG;AACH,qBAAa,WAAY,SAAQ,KAAK;IAMlC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM;IACrB,QAAQ,CAAC,IAAI,EAAE,SAAS;IAN1B,yIAAyI;IACzI,IAAI,CAAC,EAAE,MAAM,CAAC;gBAGZ,OAAO,EAAE,MAAM,EACN,GAAG,CAAC,EAAE,MAAM,YAAA,EACZ,IAAI,GAAE,SAAmB;CAIrC;AAED,sIAAsI;AACtI,qBAAa,UAAW,SAAQ,WAAW;CAAG;AAE9C,sGAAsG;AACtG,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,KAAG,UACoG,CAAC;AAE7I,kHAAkH;AAClH,eAAO,MAAM,YAAY,IAAI,CAAC;AAK9B,sIAAsI;AACtI,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAE5F;AAED,6HAA6H;AAC7H,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,MAAM,MAAM,KAAG,MAAkD,CAAC;AAI5G,yIAAyI;AACzI,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAE5D;AAOD,sJAAsJ;AACtJ,eAAO,MAAM,SAAS,GAAI,MAAM,SAAS,EAAE,SAAS,MAAM,EAAE,MAAM,MAAM;;;;CAA2D,CAAC;AAMpI;;;GAGG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,KAAK,CAKxH;AAED,gIAAgI;AAChI,eAAO,MAAM,QAAQ,GAAI,SAAS,MAAM,KAAG,MAA6F,CAAC;AAEzI,wHAAwH;AACxH,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,KAA4D,CAAC;AAEpH;;;GAGG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,CAU7E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One line for a failed read command, or undefined. `names` are the command's positional names in order and `typed` what was typed for each
|
|
3
|
+
* (the brand folder `dir` last, when the command has one). The line is given when the error is one a folder typed first ends in, and one of
|
|
4
|
+
* the leading arguments (not `dir`) names an existing folder that looks like a brand project. A group named like a stray folder stays quiet.
|
|
5
|
+
*/
|
|
6
|
+
export declare function folderFirstHint(command: string[], names: string[], typed: unknown[], required: Set<string>, error: unknown): string | undefined;
|
|
7
|
+
//# sourceMappingURL=folder-first.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folder-first.d.ts","sourceRoot":"","sources":["../../src/cli/folder-first.ts"],"names":[],"mappings":"AA+BA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAkB/I"}
|