@bridge-ds/core 0.7.0 → 0.8.0

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.
@@ -19,6 +19,15 @@ export declare const DEFAULT_PRODUCTS: ProductConfig[];
19
19
  /** Pull request labels that pin a branch to a product ("product: admin"). */
20
20
  export declare const PRODUCT_LABEL_PREFIX = "product: ";
21
21
  export declare const productLabel: (key: string) => string;
22
+ /**
23
+ * Labels and a body line for new work started for a product (a branch, an exploration, a request): the
24
+ * `product: <key>` label and "**Product:** <name>". The default product adds nothing, since productOfBranch lands
25
+ * an unlabeled branch there. Studio, the CLI and the MCP server all write these.
26
+ */
27
+ export declare function productMarks(products: readonly ProductConfig[], p: ProductConfig): {
28
+ labels: string[];
29
+ line: string;
30
+ };
22
31
  /** The configured products, or DEFAULT_PRODUCTS when the config lists none. */
23
32
  export declare function productsOf(config: {
24
33
  products?: ProductConfig[] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bridge-ds/core",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "description": "Bridge core: bridge.config.json, DTCG token loading (tiers and layered modes), alias resolution, WCAG contrast, diffs, minimal-diff edits, PR body, the shared risk tier classifier, changesets and a fetch-based GitHub client. No Figma API, no DOM; Node-only helpers (git, reading a product folder) under @bridge-ds/core/node; the adoption audit under @bridge-ds/core/audit.",
6
6
  "license": "MIT",