@seybel/breakhound 0.0.0-stage → 1.0.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.
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/webpack.ts
21
+ var webpack_exports = {};
22
+ __export(webpack_exports, {
23
+ BreakhoundPlugin: () => BreakhoundPlugin,
24
+ default: () => webpack_default
25
+ });
26
+ module.exports = __toCommonJS(webpack_exports);
27
+
28
+ // ../../node_modules/tsup/assets/cjs_shims.js
29
+ var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
30
+ var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
31
+
32
+ // ../source/src/paths.ts
33
+ var import_node_fs = require("fs");
34
+ var import_node_url = require("url");
35
+ function loaderPath() {
36
+ for (const candidate of ["./source-loader.cjs", "./webpack-loader.ts"]) {
37
+ const path = (0, import_node_url.fileURLToPath)(new URL(candidate, importMetaUrl));
38
+ if ((0, import_node_fs.existsSync)(path)) return path;
39
+ }
40
+ throw new Error("breakhound: the source loader is missing from the package.");
41
+ }
42
+
43
+ // ../source/src/webpack.ts
44
+ function sourceRule(root) {
45
+ return {
46
+ test: /\.(jsx|tsx|vue|svelte)$/,
47
+ exclude: /[\\/]node_modules[\\/]/,
48
+ enforce: "pre",
49
+ use: [{ loader: loaderPath(), options: root ? { root } : {} }]
50
+ };
51
+ }
52
+ var BreakhoundPlugin = class {
53
+ constructor(options = {}) {
54
+ this.options = options;
55
+ }
56
+ options;
57
+ apply(compiler) {
58
+ if (compiler.options.mode === "production") return;
59
+ compiler.options.module.rules.unshift(
60
+ sourceRule(this.options.root ?? compiler.options.context)
61
+ );
62
+ }
63
+ };
64
+
65
+ // ../source/src/transform.ts
66
+ var import_node_module = require("module");
67
+ var import_node_path = require("path");
68
+ var import_parser = require("@babel/parser");
69
+
70
+ // src/webpack.ts
71
+ var webpack_default = BreakhoundPlugin;
72
+ // Annotate the CommonJS export names for ESM import in node:
73
+ 0 && (module.exports = {
74
+ BreakhoundPlugin
75
+ });
@@ -0,0 +1,23 @@
1
+ export interface Compiler {
2
+ options: {
3
+ mode?: string;
4
+ context?: string;
5
+ module: {
6
+ rules: unknown[];
7
+ };
8
+ };
9
+ }
10
+ /** Webpack plugin: `plugins: [new BreakhoundPlugin()]`. Does nothing in production mode. */
11
+ export declare class BreakhoundPlugin {
12
+ private readonly options;
13
+ constructor(options?: {
14
+ root?: string;
15
+ });
16
+ apply(compiler: Compiler): void;
17
+ }
18
+
19
+ export {
20
+ BreakhoundPlugin as default,
21
+ };
22
+
23
+ export {};
@@ -0,0 +1,23 @@
1
+ export interface Compiler {
2
+ options: {
3
+ mode?: string;
4
+ context?: string;
5
+ module: {
6
+ rules: unknown[];
7
+ };
8
+ };
9
+ }
10
+ /** Webpack plugin: `plugins: [new BreakhoundPlugin()]`. Does nothing in production mode. */
11
+ export declare class BreakhoundPlugin {
12
+ private readonly options;
13
+ constructor(options?: {
14
+ root?: string;
15
+ });
16
+ apply(compiler: Compiler): void;
17
+ }
18
+
19
+ export {
20
+ BreakhoundPlugin as default,
21
+ };
22
+
23
+ export {};
@@ -0,0 +1,44 @@
1
+ // ../source/src/paths.ts
2
+ import { existsSync } from "fs";
3
+ import { fileURLToPath } from "url";
4
+ function loaderPath() {
5
+ for (const candidate of ["./source-loader.cjs", "./webpack-loader.ts"]) {
6
+ const path = fileURLToPath(new URL(candidate, import.meta.url));
7
+ if (existsSync(path)) return path;
8
+ }
9
+ throw new Error("breakhound: the source loader is missing from the package.");
10
+ }
11
+
12
+ // ../source/src/webpack.ts
13
+ function sourceRule(root) {
14
+ return {
15
+ test: /\.(jsx|tsx|vue|svelte)$/,
16
+ exclude: /[\\/]node_modules[\\/]/,
17
+ enforce: "pre",
18
+ use: [{ loader: loaderPath(), options: root ? { root } : {} }]
19
+ };
20
+ }
21
+ var BreakhoundPlugin = class {
22
+ constructor(options = {}) {
23
+ this.options = options;
24
+ }
25
+ options;
26
+ apply(compiler) {
27
+ if (compiler.options.mode === "production") return;
28
+ compiler.options.module.rules.unshift(
29
+ sourceRule(this.options.root ?? compiler.options.context)
30
+ );
31
+ }
32
+ };
33
+
34
+ // ../source/src/transform.ts
35
+ import { createRequire } from "module";
36
+ import { extname, join, relative, sep } from "path";
37
+ import { parse } from "@babel/parser";
38
+
39
+ // src/webpack.ts
40
+ var webpack_default = BreakhoundPlugin;
41
+ export {
42
+ BreakhoundPlugin,
43
+ webpack_default as default
44
+ };
package/package.json CHANGED
@@ -1,6 +1,106 @@
1
1
  {
2
2
  "name": "@seybel/breakhound",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.1",
4
+ "description": "Find where your layout breaks across every viewport width, then hand the fix to your coding agent.",
5
+ "keywords": [
6
+ "responsive",
7
+ "breakpoints",
8
+ "layout",
9
+ "overflow",
10
+ "css",
11
+ "playwright",
12
+ "mcp"
13
+ ],
14
+ "homepage": "https://github.com/Seybel/breakhound#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/Seybel/breakhound/issues"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/Seybel/breakhound.git",
21
+ "directory": "packages/cli"
22
+ },
23
+ "license": "MIT",
24
+ "author": "Seybel",
25
+ "type": "module",
26
+ "bin": {
27
+ "breakhound": "bin/breakhound.cjs"
28
+ },
29
+ "main": "./dist/index.cjs",
30
+ "types": "./dist/index.d.ts",
31
+ "exports": {
32
+ ".": {
33
+ "import": {
34
+ "types": "./dist/index.d.ts",
35
+ "default": "./dist/index.js"
36
+ },
37
+ "require": {
38
+ "types": "./dist/index.d.cts",
39
+ "default": "./dist/index.cjs"
40
+ }
41
+ },
42
+ "./vite": {
43
+ "import": {
44
+ "types": "./dist/vite.d.ts",
45
+ "default": "./dist/vite.js"
46
+ },
47
+ "require": {
48
+ "types": "./dist/vite.d.cts",
49
+ "default": "./dist/vite.cjs"
50
+ }
51
+ },
52
+ "./next": {
53
+ "import": {
54
+ "types": "./dist/next.d.ts",
55
+ "default": "./dist/next.js"
56
+ },
57
+ "require": {
58
+ "types": "./dist/next.d.cts",
59
+ "default": "./dist/next.cjs"
60
+ }
61
+ },
62
+ "./webpack": {
63
+ "import": {
64
+ "types": "./dist/webpack.d.ts",
65
+ "default": "./dist/webpack.js"
66
+ },
67
+ "require": {
68
+ "types": "./dist/webpack.d.cts",
69
+ "default": "./dist/webpack.cjs"
70
+ }
71
+ },
72
+ "./schema.json": "./dist/schema.json",
73
+ "./package.json": "./package.json"
74
+ },
75
+ "files": [
76
+ "bin",
77
+ "dist",
78
+ "README.md",
79
+ "LICENSE"
80
+ ],
81
+ "publishConfig": {
82
+ "access": "public"
83
+ },
84
+ "scripts": {
85
+ "build": "node build.mjs",
86
+ "prepack": "npm run build && cp ../../README.md ../../LICENSE .",
87
+ "smoke": "node smoke.mjs"
88
+ },
89
+ "engines": {
90
+ "node": ">=20.16"
91
+ },
92
+ "dependencies": {
93
+ "@babel/parser": "^7.29.0",
94
+ "jiti": "^2.7.0",
95
+ "playwright": "^1.63.0"
96
+ },
97
+ "devDependencies": {
98
+ "@breakhound/analyzers": "*",
99
+ "@breakhound/engine": "*",
100
+ "@breakhound/report": "*",
101
+ "@breakhound/routes": "*",
102
+ "@breakhound/source": "*",
103
+ "@modelcontextprotocol/sdk": "^1.30.1"
104
+ },
105
+ "module": "./dist/index.js"
106
+ }