@iksnerd/blazon 0.2.0 → 0.3.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 +8 -7
- package/dist/chunks/{site-builder-BtGOvjBC.js → site-builder-CH6OcFSE.js} +64 -61
- package/dist/cli/commands/mcp-check.d.ts +3 -1
- package/dist/cli/commands/mcp-check.d.ts.map +1 -1
- package/dist/cli/commands/mcp.d.ts +2 -1
- package/dist/cli/commands/mcp.d.ts.map +1 -1
- package/dist/cli/index.js +1153 -1126
- package/dist/core/mcp-config.d.ts +12 -6
- package/dist/core/mcp-config.d.ts.map +1 -1
- package/dist/core/operations/list.d.ts.map +1 -1
- package/dist/core/starter.d.ts.map +1 -1
- package/dist/index.js +32 -32
- package/mcp/dist/index.js +22745 -0
- package/package.json +8 -4
- package/template/AGENTS.md +2 -2
- package/template/blazon.json +18 -0
- package/template/docs/01-principles.md +1 -1
- package/template/docs/12-web.md +1 -1
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** The MCP server's package name. It is not published to npm yet; the `npx` form below is the proposed one. */
|
|
2
|
-
export declare const MCP_PACKAGE = "@iksnerd/blazon-mcp";
|
|
3
1
|
export declare const MCP_CLIENTS: readonly ["claude-code", "claude-desktop", "cursor", "vscode"];
|
|
4
2
|
export type McpClient = (typeof MCP_CLIENTS)[number];
|
|
5
3
|
/** How a client is told to start blazon-mcp: one program, its arguments and the environment it needs. */
|
|
@@ -7,8 +5,10 @@ export interface McpLaunch {
|
|
|
7
5
|
command: string;
|
|
8
6
|
args: string[];
|
|
9
7
|
env: Record<string, string>;
|
|
10
|
-
/** False when
|
|
8
|
+
/** False when the server file is not there: the command then names the file it would have, and `problem` says why it fails. */
|
|
11
9
|
built: boolean;
|
|
10
|
+
/** Why the command does not work, said when `built` is false. */
|
|
11
|
+
problem?: string;
|
|
12
12
|
}
|
|
13
13
|
/** One thing to paste: a shell command, or the JSON entry for a client's config file. */
|
|
14
14
|
export interface McpSnippet {
|
|
@@ -25,10 +25,16 @@ export interface McpConfig {
|
|
|
25
25
|
note?: string;
|
|
26
26
|
snippets: McpSnippet[];
|
|
27
27
|
}
|
|
28
|
+
/** True for a source checkout (it has `mcp/package.json`); the npm package ships only the built file `mcp/dist/index.js`. */
|
|
29
|
+
export declare const isSourceCheckout: (root?: string) => boolean;
|
|
30
|
+
/** What an install without the server file says: the package is meant to hold it, so the install is damaged or stale. */
|
|
31
|
+
export declare const INCOMPLETE_INSTALL = "The MCP server file mcp/dist/index.js is missing from this blazon, so the install is incomplete; reinstall it (npm install @iksnerd/blazon) and run blazon mcp --check again.";
|
|
32
|
+
/** The fix to print with {@link INCOMPLETE_INSTALL}. */
|
|
33
|
+
export declare const REINSTALL = "npm install @iksnerd/blazon";
|
|
28
34
|
/**
|
|
29
|
-
* How to start blazon-mcp from this blazon
|
|
30
|
-
* `npm
|
|
31
|
-
*
|
|
35
|
+
* How to start blazon-mcp from this blazon: `node` and `mcp/dist/index.js` in the package root, with BLAZON_BIN naming this blazon's
|
|
36
|
+
* `bin/blazon.js`. An npm install holds that file (it is built into the package) and a source checkout has it after `npm run build -w mcp`,
|
|
37
|
+
* so one rule covers both. When the file is missing the launch still names it, with `built: false` and the reason in `problem`.
|
|
32
38
|
*/
|
|
33
39
|
export declare function resolveMcpLaunch(root?: string, node?: string): McpLaunch;
|
|
34
40
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-config.d.ts","sourceRoot":"","sources":["../../src/core/mcp-config.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"mcp-config.d.ts","sourceRoot":"","sources":["../../src/core/mcp-config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,gEAAiE,CAAC;AAC1F,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,yGAAyG;AACzG,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM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qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,oGAAoG;IACpG,UAAU,EAAE,YAAY,GAAG,SAAS,CAAC;IACrC,qFAAqF;IACrF,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAM,CAAC,QAA2B,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,EAAE,CAkBlK;AAID;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,YAAY,GAAG,UAAU,CAAC,GAAG,MAAM,EAAE,GAAG,SAAS,CAWvH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/core/operations/list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA2B,SAAS,EAAQ,MAAM,YAAY,CAAC;AAsC3E;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,SAAS,SAAS,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/core/operations/list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA2B,SAAS,EAAQ,MAAM,YAAY,CAAC;AAsC3E;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,SAAS,SAAS,EAqhB1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"starter.d.ts","sourceRoot":"","sources":["../../src/core/starter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAWjD,qGAAqG;AACrG,wBAAgB,cAAc,IAAI,MAAM,CAWvC;
|
|
1
|
+
{"version":3,"file":"starter.d.ts","sourceRoot":"","sources":["../../src/core/starter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAWjD,qGAAqG;AACrG,wBAAgB,cAAc,IAAI,MAAM,CAWvC;AAQD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIpD;AAED,4DAA4D;AAC5D,wBAAgB,YAAY,CAAC,QAAQ,GAAE,MAAyB,GAAG,MAAM,EAAE,CAI1E;AAED,iJAAiJ;AACjJ,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAyB,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAepH;AA6BD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,QAAQ,GAAE,MAAyB,GAAG,OAAO,EAAE,CAiBpH;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,QAAQ,GAAE,MAAyB,GAAG,OAAO,EAAE,CAc1J"}
|
package/dist/index.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { $ as e,
|
|
1
|
+
import { $ as e, B as t, Cn as n, D as r, Dn as i, En as a, Et as o, F as s, G as c, Gt as l, H as u, Ht as d, I as f, J as p, K as m, Kt as h, L as g, Lt as _, N as v, O as y, On as b, Ot as x, P as S, Q as C, Sn as w, St as T, Tn as E, U as D, Ut as O, V as k, W as A, Wt as j, X as M, Xt as N, Y as P, Yt as F, Z as I, Zt as L, at as R, bn as z, ct as B, dt as V, et as H, ft as U, gn as W, ht as G, i as K, in as q, it as J, j as Y, k as X, kt as Z, lt as Q, mt as $, n as ee, nn as te, nt as ne, o as re, ot as ie, pn as ae, pt as oe, qt as se, r as ce, rn as le, rt as ue, st as de, t as fe, tt as pe, ut as me, vn as he, wn as ge, xn as _e, xt as ve, yn as ye } from "./chunks/site-builder-CH6OcFSE.js";
|
|
2
2
|
// src/plugins/index.ts
|
|
3
|
-
var be = /* @__PURE__ */
|
|
4
|
-
BASE_ENV: () =>
|
|
5
|
-
BLAZON_CORE_PROFILE: () =>
|
|
6
|
-
BLAZON_PROFILE: () =>
|
|
7
|
-
Breaker: () =>
|
|
3
|
+
var be = /* @__PURE__ */ b({
|
|
4
|
+
BASE_ENV: () => p,
|
|
5
|
+
BLAZON_CORE_PROFILE: () => r,
|
|
6
|
+
BLAZON_PROFILE: () => y,
|
|
7
|
+
Breaker: () => s,
|
|
8
8
|
DEFAULT_THRESHOLD: () => 3,
|
|
9
9
|
DEFAULT_TIMEOUT: () => 5,
|
|
10
10
|
MANIFEST_TIMEOUT: () => 15,
|
|
11
|
-
MAX_BYTES: () =>
|
|
12
|
-
MAX_ENTRIES: () =>
|
|
13
|
-
ManifestError: () =>
|
|
14
|
-
Pin: () =>
|
|
15
|
-
PinMismatch: () =>
|
|
16
|
-
REDACTED: () =>
|
|
11
|
+
MAX_BYTES: () => t,
|
|
12
|
+
MAX_ENTRIES: () => k,
|
|
13
|
+
ManifestError: () => M,
|
|
14
|
+
Pin: () => u,
|
|
15
|
+
PinMismatch: () => D,
|
|
16
|
+
REDACTED: () => ue,
|
|
17
17
|
Refused: () => A,
|
|
18
18
|
STDERR_KEEP: () => ie,
|
|
19
|
-
STDOUT_LIMIT: () =>
|
|
19
|
+
STDOUT_LIMIT: () => de,
|
|
20
20
|
TIMEOUT_CAP: () => 60,
|
|
21
|
-
admit: () =>
|
|
22
|
-
blazonRequests: () =>
|
|
23
|
-
check: () =>
|
|
24
|
-
decodeManifest: () =>
|
|
25
|
-
encodings: () =>
|
|
26
|
-
environment: () =>
|
|
27
|
-
fileDigest: () =>
|
|
28
|
-
graphemeCount: () =>
|
|
29
|
-
isPluginName: () =>
|
|
30
|
-
manifestTimeout: () =>
|
|
31
|
-
message: () =>
|
|
32
|
-
profileTimeoutCap: () =>
|
|
33
|
-
requestFile: () =>
|
|
34
|
-
run: () =>
|
|
35
|
-
scrub: () =>
|
|
36
|
-
setPointer: () =>
|
|
37
|
-
treeDigest: () =>
|
|
38
|
-
truncateGraphemes: () =>
|
|
21
|
+
admit: () => S,
|
|
22
|
+
blazonRequests: () => X,
|
|
23
|
+
check: () => Y,
|
|
24
|
+
decodeManifest: () => I,
|
|
25
|
+
encodings: () => R,
|
|
26
|
+
environment: () => P,
|
|
27
|
+
fileDigest: () => c,
|
|
28
|
+
graphemeCount: () => H,
|
|
29
|
+
isPluginName: () => ae,
|
|
30
|
+
manifestTimeout: () => C,
|
|
31
|
+
message: () => pe,
|
|
32
|
+
profileTimeoutCap: () => e,
|
|
33
|
+
requestFile: () => f,
|
|
34
|
+
run: () => g,
|
|
35
|
+
scrub: () => J,
|
|
36
|
+
setPointer: () => v,
|
|
37
|
+
treeDigest: () => m,
|
|
38
|
+
truncateGraphemes: () => ne
|
|
39
39
|
});
|
|
40
|
-
export {
|
|
40
|
+
export { he as ASSET_URL_BASE, ge as BLAZON_EXTENSION_KEY, B as BRAND_FORMAT, U as BRAND_SCHEMA, oe as BRAND_SCHEMA_FILE, Q as BRAND_VERSION, te as CONFIG_KEYS, le as ConfigError, W as DEFAULT_CONFIG, l as DEFAULT_GRADIENT_ANGLE, ye as INITIATIVE_POSITIONS, z as LOGO_CORNERS, E as PATTERN_KINDS, _e as STANDARD_LOGO_LOCKUPS, w as STANDARD_SECTION_IDS, n as STANDARD_SECTION_TITLES, a as STANDARD_USAGE_ROLES, i as TOKEN_TYPES, F as aliasTarget, me as buildBrandExport, fe as buildSite, o as checkTokens, $ as compileBlazonData, h as compositeParts, re as createBlazonVitePlugin, G as emitTokenOutputs, V as formatBrandJson, x as formatCssTokens, ve as formatJsonTokens, T as formatTsTokens, Z as formatTypographyCss, se as generateCssVarName, L as loadConfig, N as loadTokenTree, d as parseDocs, be as plugins, q as resolveConfig, ee as resolvePrebuiltViewerDir, O as resolveTokenTree, ce as resolveViewer, _ as scanAssets, K as startDevServer, j as toCssValue };
|