@mccaskie-labs/workbench-config 0.1.37 → 0.1.38

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mccaskie-labs/workbench-config
2
2
 
3
+ ## 0.1.38
4
+
5
+ ### Patch Changes
6
+
7
+ - The pdf and email manifests have `styles` (`wb-pdf-`, `wb-email-`), so their skills say how to restyle them through `public/styles/project.css`.
8
+
3
9
  ## 0.1.37
4
10
 
5
11
  ### Patch Changes
@@ -68,5 +68,8 @@
68
68
  { "id": "email.hook.unsigned-refused", "half": "runtime", "expect": "refused_as_expected", "refusal": "unauthorised", "smoke": true, "cost_hint_usd": 0, "note": "POST /auth/send-email from outside with no signature answers 401, not a sign-in redirect: proves the Access path bypass and the handler. Needs no secret" },
69
69
  { "id": "email.hook.signed-refused-action", "half": "runtime", "expect": "refused_as_expected", "refusal": "refused", "cost_hint_usd": 0, "note": "A request signed with SEND_EMAIL_HOOK_SECRET for email_action_type recovery answers 422 and sends nothing; skipped while the Worker has no hook secret" },
70
70
  { "id": "email.brand.logo-public", "half": "runtime", "expect": "pass", "smoke": true, "cost_hint_usd": 0, "note": "GET brand.json's logo.url from outside with no sign-in answers 200 with an image content type" }
71
- ]
71
+ ],
72
+ "styles": {
73
+ "prefix": "wb-email-"
74
+ }
72
75
  }
@@ -94,5 +94,8 @@
94
94
  "cost_hint_usd": 0,
95
95
  "note": "Prints the app's own HTML holding an image from a host not in allowOrigins; the PDF is made and the browser reports that image's request as blocked"
96
96
  }
97
- ]
97
+ ],
98
+ "styles": {
99
+ "prefix": "wb-pdf-"
100
+ }
98
101
  }
@@ -1,4 +1,4 @@
1
- export declare const MANIFEST_VERSION: "8e65a2fda0b3";
1
+ export declare const MANIFEST_VERSION: "90023fb27145";
2
2
  export declare const capabilities: {
3
3
  readonly ai: {
4
4
  readonly $schema: "./schema.json";
@@ -897,6 +897,9 @@ export declare const capabilities: {
897
897
  readonly cost_hint_usd: 0;
898
898
  readonly note: "GET brand.json's logo.url from outside with no sign-in answers 200 with an image content type";
899
899
  }];
900
+ readonly styles: {
901
+ readonly prefix: "wb-email-";
902
+ };
900
903
  readonly delivery: {
901
904
  readonly choice: "built_in";
902
905
  readonly intro: "The emails the app sends, such as confirmations, receipts and sign-in codes.";
@@ -1924,6 +1927,9 @@ export declare const capabilities: {
1924
1927
  readonly cost_hint_usd: 0;
1925
1928
  readonly note: "Prints the app's own HTML holding an image from a host not in allowOrigins; the PDF is made and the browser reports that image's request as blocked";
1926
1929
  }];
1930
+ readonly styles: {
1931
+ readonly prefix: "wb-pdf-";
1932
+ };
1927
1933
  readonly delivery: {
1928
1934
  readonly choice: "optional";
1929
1935
  readonly intro: "PDFs such as invoices and receipts, printed with the project's logo and colours.";
@@ -1,6 +1,6 @@
1
1
  // Generated by `npm run capabilities:build` from capabilities/*.json. Do not edit.
2
2
  // check:capabilities fails in Checks when this file is stale.
3
- export const MANIFEST_VERSION = "8e65a2fda0b3";
3
+ export const MANIFEST_VERSION = "90023fb27145";
4
4
  export const capabilities = {
5
5
  "ai": {
6
6
  "$schema": "./schema.json",
@@ -1234,6 +1234,9 @@ export const capabilities = {
1234
1234
  "note": "GET brand.json's logo.url from outside with no sign-in answers 200 with an image content type"
1235
1235
  }
1236
1236
  ],
1237
+ "styles": {
1238
+ "prefix": "wb-email-"
1239
+ },
1237
1240
  "delivery": {
1238
1241
  "choice": "built_in",
1239
1242
  "intro": "The emails the app sends, such as confirmations, receipts and sign-in codes.",
@@ -2599,6 +2602,9 @@ export const capabilities = {
2599
2602
  "note": "Prints the app's own HTML holding an image from a host not in allowOrigins; the PDF is made and the browser reports that image's request as blocked"
2600
2603
  }
2601
2604
  ],
2605
+ "styles": {
2606
+ "prefix": "wb-pdf-"
2607
+ },
2602
2608
  "delivery": {
2603
2609
  "choice": "optional",
2604
2610
  "intro": "PDFs such as invoices and receipts, printed with the project's logo and colours.",
package/dist/skills.js CHANGED
@@ -160,7 +160,7 @@ export function renderSkill(m, guide) {
160
160
  }
161
161
  /** How a project restyles what a component draws (docs/capabilities-manifest.md §10). */
162
162
  function restyleLine(prefix) {
163
- return `Everything this tool draws on a page has a \`${prefix}\` class with a default Workbench style, and its colours and sizes are \`--${prefix}*\` variables. All of them are listed, each with what it is, in \`public/styles/workbench.css\`, which \`npx workbench-ui styles\` generates: never edit it. To match the project's own look, write rules for those classes, or set the variables to the project's own colours, in \`public/styles/project.css\`. It loads after workbench.css and always wins. When the client asks for a different look, change project.css, never the tool's markup.`;
163
+ return `Everything this tool draws (on a page, in a PDF or in an email) has a \`${prefix}\` class with a default Workbench style, and its colours and sizes are \`--${prefix}*\` variables. All of them are listed, each with what it is, in \`public/styles/workbench.css\`, which \`npx workbench-ui styles\` generates: never edit it. To match the project's own look, write rules for those classes, or set the variables to the project's own colours, in \`public/styles/project.css\`. It loads after workbench.css and always wins. When the client asks for a different look, change project.css, never the tool's markup.`;
164
164
  }
165
165
  /** The `workbench-start` skill: every tool introduced to the owner, and how their choices are recorded (§9.6). */
166
166
  export function renderStart(manifests) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mccaskie-labs/workbench-config",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "Workbench app configuration: WORKBENCH_ENV, typed variables that fail by name, secrets that are never printed, and the capabilities manifest.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",