@yahoo/uds-create-cli 5.86.0 → 5.87.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yahoo/uds-create-cli",
3
- "version": "5.86.0",
3
+ "version": "5.87.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,10 +32,10 @@
32
32
  "@modelcontextprotocol/sdk": "^1.32.2",
33
33
  "@orpc/client": "^1.13.9",
34
34
  "@orpc/contract": "^1.13.9",
35
- "@yahoo/uds-create-config": "5.86.0",
36
- "@yahoo/uds-create-loader": "5.86.0",
37
- "@yahoo/uds-create-types": "5.86.0",
38
- "@yahoo/uds-create-utils": "5.86.0",
35
+ "@yahoo/uds-create-config": "5.87.1",
36
+ "@yahoo/uds-create-loader": "5.87.1",
37
+ "@yahoo/uds-create-types": "5.87.1",
38
+ "@yahoo/uds-create-utils": "5.87.1",
39
39
  "esbuild": "^0.27.4",
40
40
  "ts-morph": "^27.0.2",
41
41
  "get-tsconfig": "^4.10.0",
@@ -52,13 +52,13 @@
52
52
  "lodash": "^4.17.23",
53
53
  "prettier": "^3.8.1"
54
54
  },
55
- "udsSchemaVersion": 20261108042210,
55
+ "udsSchemaVersion": 20261109144822,
56
56
  "optionalDependencies": {
57
- "@yahoo/uds-create-cli-darwin-arm64": "5.86.0",
58
- "@yahoo/uds-create-cli-darwin-x64": "5.86.0",
59
- "@yahoo/uds-create-cli-linux-arm64": "5.86.0",
60
- "@yahoo/uds-create-cli-linux-x64": "5.86.0",
61
- "@yahoo/uds-create-cli-linux-arm64-musl": "5.86.0",
62
- "@yahoo/uds-create-cli-linux-x64-musl": "5.86.0"
57
+ "@yahoo/uds-create-cli-darwin-arm64": "5.87.1",
58
+ "@yahoo/uds-create-cli-darwin-x64": "5.87.1",
59
+ "@yahoo/uds-create-cli-linux-arm64": "5.87.1",
60
+ "@yahoo/uds-create-cli-linux-x64": "5.87.1",
61
+ "@yahoo/uds-create-cli-linux-arm64-musl": "5.87.1",
62
+ "@yahoo/uds-create-cli-linux-x64-musl": "5.87.1"
63
63
  }
64
64
  }
@@ -77189,21 +77189,24 @@ var PlaygroundSection = defineSubEntity({
77189
77189
  singleton: true,
77190
77190
  fields: playgroundFields
77191
77191
  });
77192
+ var lintSeverity = external_exports.enum([
77193
+ "off",
77194
+ "warn",
77195
+ "error"
77196
+ ]);
77192
77197
  var lintFields = external_exports.strictObject({
77193
77198
  /**
77194
- * How loud each authoring lint rule is, by rule or by group — `{ editability: 'off',
77195
- * 'inline-style-on-layer': 'error' }`. A rule's own entry wins over its group's; a rule named
77196
- * neither way takes its default, a warning for most. A group never turns on a rule that is off by
77197
- * default. Keyed by name rather than an enum, so a rule the build adds later needs no new schema; a
77198
- * name that is no rule or group is reported, not refused.
77199
+ * How loud each authoring lint rule is, by group and by rule inside it, the way Biome nests rules:
77200
+ * `{ editability: 'off', portability: { all: 'error', 'inline-style-on-layer': 'warn' } }`. A
77201
+ * rule's own entry wins over its group's; a rule named neither way takes its default, a warning
77202
+ * for most. A group never turns on a rule that is off by default. A rule's flat name at the top
77203
+ * level (`'inline-style-on-layer': 'warn'`) is read too. Keyed by name rather than an enum, so a
77204
+ * rule the build adds later needs no new schema; a name that is no rule or group is reported, not
77205
+ * refused.
77199
77206
  */
77200
- rules: external_exports.record(external_exports.string(), external_exports.enum([
77201
- "off",
77202
- "warn",
77203
- "error"
77204
- ])).meta({
77207
+ rules: external_exports.record(external_exports.string(), external_exports.union([lintSeverity, external_exports.record(external_exports.string(), lintSeverity)])).meta({
77205
77208
  title: "Rules",
77206
- description: "A severity \u2014 `'off'`, `'warn'` or `'error'` \u2014 per authoring lint rule or per group of them (`portability`, `editability`, `maintainability`, `compatibility`, `nursery`): `{ editability: 'off' }` for a system only edited in its source, never through Create or the MCP tools. A `nursery` rule runs only when named on its own. A rule's own entry wins over its group's. Unset, most rules warn. An `'error'` makes `uds lint` exit with status 1, so a CI step that runs it fails. One site is quieted with `// uds-lint-ignore <rule>: <why>` on its line or the line above."
77209
+ description: "A severity \u2014 `'off'`, `'warn'` or `'error'` \u2014 per group of authoring lint rules (`portability`, `editability`, `maintainability`, `design`, `compatibility`, `nursery`), or an object per group with `all` for the group and an entry per rule in it: `{ editability: 'off', portability: { all: 'error', 'inline-style-on-layer': 'warn' } }`. A rule's own entry wins over its group's, and a rule's flat name at the top level is read too. A `nursery` rule runs only when named on its own. Unset, most rules warn. An `'error'` makes `uds lint` exit with status 1, so a CI step that runs it fails. One site is quieted with `// uds-lint-ignore <rule>: <why>` on its line or the line above."
77207
77210
  }).optional(),
77208
77211
  /**
77209
77212
  * Findings the system has decided to keep, each with why: Create's "Ignore", and the config-side
@@ -90765,7 +90768,7 @@ var Entity = class {
90765
90768
  };
90766
90769
 
90767
90770
  // ../config/dist/framework/schema-version.js
90768
- var CURRENT_SCHEMA_VERSION = 20261108042210;
90771
+ var CURRENT_SCHEMA_VERSION = 20261109144822;
90769
90772
  var SETTINGS_AS_KIND_VERSION = 20260908171448;
90770
90773
  var SchemaVersionTooNew = class extends ConfigFormatError {
90771
90774
  found;
@@ -90785,7 +90788,7 @@ function registerSchemaMigrations(...migrations) {
90785
90788
  for (const migration of migrations) {
90786
90789
  if (migration.version !== 1 && !isMintTimestamp(migration.version)) throw new Error(`Schema migration version ${migration.version} is not a mint timestamp \u2014 mint one with \`date +%Y%m%d%H%M%S\`, like a supabase migration.`);
90787
90790
  if (REGISTERED.has(migration.version)) throw new Error(`A schema migration at version ${migration.version} is already registered.`);
90788
- if (migration.version > 20261108042210) throw new Error(`Schema migration ${migration.version} is newer than CURRENT_SCHEMA_VERSION (${CURRENT_SCHEMA_VERSION}) \u2014 a stale branch merged, or the mint forgot to bump the constant. Re-mint: set CURRENT_SCHEMA_VERSION to the newest migration version.`);
90791
+ if (migration.version > 20261109144822) throw new Error(`Schema migration ${migration.version} is newer than CURRENT_SCHEMA_VERSION (${CURRENT_SCHEMA_VERSION}) \u2014 a stale branch merged, or the mint forgot to bump the constant. Re-mint: set CURRENT_SCHEMA_VERSION to the newest migration version.`);
90789
90792
  REGISTERED.set(migration.version, migration);
90790
90793
  }
90791
90794
  }
@@ -90816,7 +90819,7 @@ function pendingFor(version2, target2, options) {
90816
90819
  return [...(options?.migrations ?? REGISTERED).values()].filter((m) => m.version > version2 && m.version <= target2).sort((a, b) => a.version - b.version);
90817
90820
  }
90818
90821
  function upgradeSerializedConfig(json2, options) {
90819
- const target2 = options?.target ?? 20261108042210;
90822
+ const target2 = options?.target ?? 20261109144822;
90820
90823
  const version2 = detectedWireVersion(json2);
90821
90824
  if (version2 > target2) throw new SchemaVersionTooNew(version2, target2);
90822
90825
  const raw = json2;
@@ -97953,7 +97956,7 @@ var Config = class Config2 {
97953
97956
  * links from the provided sources. A declared `linkedKind` with no provided source throws. */
97954
97957
  hydrateFrom(stored, options) {
97955
97958
  const claimed = schemaVersionOf(stored);
97956
- if (claimed > 20261108042210) throw new SchemaVersionTooNew(claimed);
97959
+ if (claimed > 20261109144822) throw new SchemaVersionTooNew(claimed);
97957
97960
  const wire = upgradeSerializedConfig(stored);
97958
97961
  if (!Array.isArray(wire.ownedKinds) || typeof wire.items !== "object" || wire.items === null) throw new ConfigFormatError(`Config "${stored.name ?? "system-config"}" cannot be hydrated: this is not a serialized config-v2 config (no "ownedKinds"/"items"). A pre-cutover build artifact converts through the registered cutover migration \u2014 import the config type's module (e.g. \`configs/system\`) before hydrating.`);
97959
97962
  const leftover = wire.options;
@@ -101711,6 +101714,15 @@ var tokenGetDetailMigration = {
101711
101714
  }
101712
101715
  };
101713
101716
 
101717
+ // ../config/dist/migrations/20261109144822_lint_rules_by_group.js
101718
+ var LINT_RULES_BY_GROUP_VERSION = 20261109144822;
101719
+ var lintRulesByGroupMigration = {
101720
+ version: LINT_RULES_BY_GROUP_VERSION,
101721
+ up(json2) {
101722
+ return json2;
101723
+ }
101724
+ };
101725
+
101714
101726
  // ../../node_modules/css-tree/lib/generator/sourceMap.js
101715
101727
  var import_source_map_generator = __toESM(require_source_map_generator(), 1);
101716
101728
  var trackNodes = /* @__PURE__ */ new Set(["Atrule", "Selector", "Declaration"]);
@@ -104460,6 +104472,7 @@ if (!registeredSchemaMigrations().has(20261105185042)) registerSchemaMigrations(
104460
104472
  if (!registeredSchemaMigrations().has(20261106185419)) registerSchemaMigrations(modifierClassPrefixMigration);
104461
104473
  if (!registeredSchemaMigrations().has(20261107213031)) registerSchemaMigrations(componentGetDetailMigration);
104462
104474
  if (!registeredSchemaMigrations().has(20261108042210)) registerSchemaMigrations(tokenGetDetailMigration);
104475
+ if (!registeredSchemaMigrations().has(20261109144822)) registerSchemaMigrations(lintRulesByGroupMigration);
104463
104476
 
104464
104477
  // ../config/dist/capture/node-ops.js
104465
104478
  var DEFAULT_WIDTH = 1600;