@webpresso/agent-config 0.4.3 → 0.4.4

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,29 @@
1
+ /**
2
+ * Canonical oxlint policy plugin basenames for `@webpresso/agent-config/oxlint/*`.
3
+ *
4
+ * These are **file stems / package subpath segments**, not oxlint `plugin.meta.name`
5
+ * values (e.g. basename `monorepo-paths` → meta.name `monorepo-npaths`,
6
+ * basename `import-hygiene` → meta.name `webpresso-imports`).
7
+ *
8
+ * Consumers (monorepo jsPlugins, agent-kit vendor/inject, package exports parity)
9
+ * MUST import this list instead of hand-maintaining parallel arrays.
10
+ */
11
+ /** Policy plugins that ship as oxlint `jsPlugins` entries. */
12
+ export declare const OXLINT_POLICY_PLUGIN_BASENAMES: readonly ["code-safety", "foundation-purity", "graphql-conventions", "import-hygiene", "monorepo-paths", "query-patterns", "testing-quality", "tier-boundaries"];
13
+ export type OxlintPolicyPluginBasename = (typeof OXLINT_POLICY_PLUGIN_BASENAMES)[number];
14
+ /**
15
+ * Shared path classifiers module. Not a jsPlugins entry; plugins import it as a
16
+ * sibling (`./path-roles.js`). Still a public package export for direct use.
17
+ */
18
+ export declare const OXLINT_PATH_ROLES_BASENAME: "path-roles";
19
+ export type OxlintPathRolesBasename = typeof OXLINT_PATH_ROLES_BASENAME;
20
+ /**
21
+ * Every basename with a dedicated `./oxlint/<name>` package export
22
+ * (policy plugins + path-roles). Does not include the barrel `./oxlint`.
23
+ */
24
+ export declare const OXLINT_PACKAGE_SUBPATH_BASENAMES: readonly ["code-safety", "foundation-purity", "graphql-conventions", "import-hygiene", "monorepo-paths", "query-patterns", "testing-quality", "tier-boundaries", "path-roles"];
25
+ export type OxlintPackageSubpathBasename = (typeof OXLINT_PACKAGE_SUBPATH_BASENAMES)[number];
26
+ /** Package import specifier for a policy plugin basename. */
27
+ export declare function agentConfigOxlintPluginSpecifier(name: OxlintPolicyPluginBasename): `@webpresso/agent-config/oxlint/${OxlintPolicyPluginBasename}`;
28
+ /** All package-name jsPlugins specifiers for consumers. */
29
+ export declare function agentConfigOxlintPluginSpecifiers(): string[];
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Canonical oxlint policy plugin basenames for `@webpresso/agent-config/oxlint/*`.
3
+ *
4
+ * These are **file stems / package subpath segments**, not oxlint `plugin.meta.name`
5
+ * values (e.g. basename `monorepo-paths` → meta.name `monorepo-npaths`,
6
+ * basename `import-hygiene` → meta.name `webpresso-imports`).
7
+ *
8
+ * Consumers (monorepo jsPlugins, agent-kit vendor/inject, package exports parity)
9
+ * MUST import this list instead of hand-maintaining parallel arrays.
10
+ */
11
+ /** Policy plugins that ship as oxlint `jsPlugins` entries. */
12
+ export const OXLINT_POLICY_PLUGIN_BASENAMES = [
13
+ "code-safety",
14
+ "foundation-purity",
15
+ "graphql-conventions",
16
+ "import-hygiene",
17
+ "monorepo-paths",
18
+ "query-patterns",
19
+ "testing-quality",
20
+ "tier-boundaries",
21
+ ];
22
+ /**
23
+ * Shared path classifiers module. Not a jsPlugins entry; plugins import it as a
24
+ * sibling (`./path-roles.js`). Still a public package export for direct use.
25
+ */
26
+ export const OXLINT_PATH_ROLES_BASENAME = "path-roles";
27
+ /**
28
+ * Every basename with a dedicated `./oxlint/<name>` package export
29
+ * (policy plugins + path-roles). Does not include the barrel `./oxlint`.
30
+ */
31
+ export const OXLINT_PACKAGE_SUBPATH_BASENAMES = [
32
+ ...OXLINT_POLICY_PLUGIN_BASENAMES,
33
+ OXLINT_PATH_ROLES_BASENAME,
34
+ ];
35
+ /** Package import specifier for a policy plugin basename. */
36
+ export function agentConfigOxlintPluginSpecifier(name) {
37
+ return `@webpresso/agent-config/oxlint/${name}`;
38
+ }
39
+ /** All package-name jsPlugins specifiers for consumers. */
40
+ export function agentConfigOxlintPluginSpecifiers() {
41
+ return OXLINT_POLICY_PLUGIN_BASENAMES.map((name) => agentConfigOxlintPluginSpecifier(name));
42
+ }
@@ -6,6 +6,7 @@ import monorepoNpaths from "./monorepo-paths.js";
6
6
  import queryPatterns from "./query-patterns.js";
7
7
  import testingQuality from "./testing-quality.js";
8
8
  import tierBoundaries from "./tier-boundaries.js";
9
+ export { OXLINT_PACKAGE_SUBPATH_BASENAMES, OXLINT_PATH_ROLES_BASENAME, OXLINT_POLICY_PLUGIN_BASENAMES, agentConfigOxlintPluginSpecifier, agentConfigOxlintPluginSpecifiers, type OxlintPackageSubpathBasename, type OxlintPathRolesBasename, type OxlintPolicyPluginBasename, } from "./basenames.js";
9
10
  type OxlintRuleSeverity = "error";
10
11
  interface OxlintPlugin {
11
12
  meta: {
@@ -6,6 +6,7 @@ import monorepoNpaths from "./monorepo-paths.js";
6
6
  import queryPatterns from "./query-patterns.js";
7
7
  import testingQuality from "./testing-quality.js";
8
8
  import tierBoundaries from "./tier-boundaries.js";
9
+ export { OXLINT_PACKAGE_SUBPATH_BASENAMES, OXLINT_PATH_ROLES_BASENAME, OXLINT_POLICY_PLUGIN_BASENAMES, agentConfigOxlintPluginSpecifier, agentConfigOxlintPluginSpecifiers, } from "./basenames.js";
9
10
  export { codeSafety, foundationPurity, graphqlConventions, importHygiene, monorepoNpaths, queryPatterns, testingQuality, tierBoundaries, };
10
11
  const pluginEntries = [
11
12
  codeSafety,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webpresso/agent-config",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "private": false,
5
5
  "description": "Shared vitest, tsconfig, stryker, workers-test, and oxlint policy plugins for webpresso consumers. Binary-free — pure test/config tooling.",
6
6
  "homepage": "https://github.com/webpresso/agent-kit#readme",
@@ -51,6 +51,12 @@
51
51
  "require": "./dist/esm/oxlint/index.js",
52
52
  "default": "./dist/esm/oxlint/index.js"
53
53
  },
54
+ "./oxlint/basenames": {
55
+ "types": "./dist/esm/oxlint/basenames.d.ts",
56
+ "import": "./dist/esm/oxlint/basenames.js",
57
+ "require": "./dist/esm/oxlint/basenames.js",
58
+ "default": "./dist/esm/oxlint/basenames.js"
59
+ },
54
60
  "./oxlint/code-safety": {
55
61
  "types": "./dist/esm/oxlint/code-safety.d.ts",
56
62
  "import": "./dist/esm/oxlint/code-safety.js",
@@ -295,6 +301,7 @@
295
301
  "./dev": "./src/dev/index.ts",
296
302
  "./e2e": "./src/e2e/index.ts",
297
303
  "./oxlint": "./src/oxlint/index.ts",
304
+ "./oxlint/basenames": "./src/oxlint/basenames.ts",
298
305
  "./oxlint/code-safety": "./src/oxlint/code-safety.ts",
299
306
  "./oxlint/foundation-purity": "./src/oxlint/foundation-purity.ts",
300
307
  "./oxlint/graphql-conventions": "./src/oxlint/graphql-conventions.ts",