@yahoo/uds-create-cli 5.82.1 → 5.83.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yahoo/uds-create-cli",
3
- "version": "5.82.1",
3
+ "version": "5.83.0",
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.82.1",
36
- "@yahoo/uds-create-loader": "5.82.1",
37
- "@yahoo/uds-create-types": "5.82.1",
38
- "@yahoo/uds-create-utils": "5.82.1",
35
+ "@yahoo/uds-create-config": "5.83.0",
36
+ "@yahoo/uds-create-loader": "5.83.0",
37
+ "@yahoo/uds-create-types": "5.83.0",
38
+ "@yahoo/uds-create-utils": "5.83.0",
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": 20261106185419,
55
+ "udsSchemaVersion": 20261108042210,
56
56
  "optionalDependencies": {
57
- "@yahoo/uds-create-cli-darwin-arm64": "5.82.1",
58
- "@yahoo/uds-create-cli-darwin-x64": "5.82.1",
59
- "@yahoo/uds-create-cli-linux-arm64": "5.82.1",
60
- "@yahoo/uds-create-cli-linux-x64": "5.82.1",
61
- "@yahoo/uds-create-cli-linux-arm64-musl": "5.82.1",
62
- "@yahoo/uds-create-cli-linux-x64-musl": "5.82.1"
57
+ "@yahoo/uds-create-cli-darwin-arm64": "5.83.0",
58
+ "@yahoo/uds-create-cli-darwin-x64": "5.83.0",
59
+ "@yahoo/uds-create-cli-linux-arm64": "5.83.0",
60
+ "@yahoo/uds-create-cli-linux-x64": "5.83.0",
61
+ "@yahoo/uds-create-cli-linux-arm64-musl": "5.83.0",
62
+ "@yahoo/uds-create-cli-linux-x64-musl": "5.83.0"
63
63
  }
64
64
  }
@@ -84683,7 +84683,20 @@ var TokenEntity = defineEntity({
84683
84683
  const { value, overrides } = data;
84684
84684
  return { aliases: [value, ...Object.values(overrides ?? {}).map((override) => override?.value)].filter((alias) => isRef2(alias) && kindOf2(alias.__ref) === "token") };
84685
84685
  },
84686
- schemas: { create: { description: `Create a token at \`<group>/<name>\` \u2014 \`data.value\` is the CSS value. The first path segment is its group, and a style property takes a whole group as one ref (\`${JSON.stringify(ref("token", "<group>"))}\`), so put the tokens one prop should offer in one group rather than listing values on the prop.` } }
84686
+ schemas: {
84687
+ get: {
84688
+ input: external_exports.object({
84689
+ path: pathInput("token"),
84690
+ detail: external_exports.enum(["full"]).optional().describe('`"full"` adds the token\'s stored body: its value, overrides and metadata as authored.')
84691
+ }),
84692
+ readOnly: true,
84693
+ label: "Get",
84694
+ description: 'Get one token by its qualified `path`: what it comes to in each mode, and the tokens it refers to on the way. Pass `detail: "full"` for its stored body, which editing it needs.',
84695
+ scope: "item",
84696
+ handler: (input2, config2) => config2.resolve("token", String(input2.path))
84697
+ },
84698
+ create: { description: `Create a token at \`<group>/<name>\` \u2014 \`data.value\` is the CSS value. The first path segment is its group, and a style property takes a whole group as one ref (\`${JSON.stringify(ref("token", "<group>"))}\`), so put the tokens one prop should offer in one group rather than listing values on the prop.` }
84699
+ }
84687
84700
  });
84688
84701
  var baseTokenRef = TokenEntity.ref.bind(TokenEntity);
84689
84702
  function tokenRef(path2) {
@@ -87172,6 +87185,17 @@ var ComponentEntity = defineEntity({
87172
87185
  });
87173
87186
  }
87174
87187
  },
87188
+ get: {
87189
+ input: external_exports.object({
87190
+ path: pathInput("component"),
87191
+ detail: external_exports.enum(["full"]).optional().describe('`"full"` adds what an author needs: each layer\'s forwards and what it could still forward, and the style rules, anatomy and preview content.')
87192
+ }),
87193
+ readOnly: true,
87194
+ label: "Get",
87195
+ description: 'Get one component by its qualified `path`: its props and a usage example. Pass `detail: "full"` for the forwards, style rules, anatomy and preview content, which editing it needs.',
87196
+ scope: "item",
87197
+ handler: (input2, config2) => config2.resolve("component", String(input2.path))
87198
+ },
87175
87199
  validate: {
87176
87200
  input: external_exports.object({
87177
87201
  path: pathInput("component"),
@@ -90741,7 +90765,7 @@ var Entity = class {
90741
90765
  };
90742
90766
 
90743
90767
  // ../config/dist/framework/schema-version.js
90744
- var CURRENT_SCHEMA_VERSION = 20261106185419;
90768
+ var CURRENT_SCHEMA_VERSION = 20261108042210;
90745
90769
  var SETTINGS_AS_KIND_VERSION = 20260908171448;
90746
90770
  var SchemaVersionTooNew = class extends ConfigFormatError {
90747
90771
  found;
@@ -90761,7 +90785,7 @@ function registerSchemaMigrations(...migrations) {
90761
90785
  for (const migration of migrations) {
90762
90786
  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.`);
90763
90787
  if (REGISTERED.has(migration.version)) throw new Error(`A schema migration at version ${migration.version} is already registered.`);
90764
- if (migration.version > 20261106185419) 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.`);
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.`);
90765
90789
  REGISTERED.set(migration.version, migration);
90766
90790
  }
90767
90791
  }
@@ -90792,7 +90816,7 @@ function pendingFor(version2, target2, options) {
90792
90816
  return [...(options?.migrations ?? REGISTERED).values()].filter((m) => m.version > version2 && m.version <= target2).sort((a, b) => a.version - b.version);
90793
90817
  }
90794
90818
  function upgradeSerializedConfig(json2, options) {
90795
- const target2 = options?.target ?? 20261106185419;
90819
+ const target2 = options?.target ?? 20261108042210;
90796
90820
  const version2 = detectedWireVersion(json2);
90797
90821
  if (version2 > target2) throw new SchemaVersionTooNew(version2, target2);
90798
90822
  const raw = json2;
@@ -97929,7 +97953,7 @@ var Config = class Config2 {
97929
97953
  * links from the provided sources. A declared `linkedKind` with no provided source throws. */
97930
97954
  hydrateFrom(stored, options) {
97931
97955
  const claimed = schemaVersionOf(stored);
97932
- if (claimed > 20261106185419) throw new SchemaVersionTooNew(claimed);
97956
+ if (claimed > 20261108042210) throw new SchemaVersionTooNew(claimed);
97933
97957
  const wire = upgradeSerializedConfig(stored);
97934
97958
  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.`);
97935
97959
  const leftover = wire.options;
@@ -101669,6 +101693,24 @@ var modifierClassPrefixMigration = {
101669
101693
  up: (json2) => json2
101670
101694
  };
101671
101695
 
101696
+ // ../config/dist/migrations/20261107213031_component_get_detail.js
101697
+ var COMPONENT_GET_DETAIL_VERSION = 20261107213031;
101698
+ var componentGetDetailMigration = {
101699
+ version: COMPONENT_GET_DETAIL_VERSION,
101700
+ up(json2) {
101701
+ return json2;
101702
+ }
101703
+ };
101704
+
101705
+ // ../config/dist/migrations/20261108042210_token_get_detail.js
101706
+ var TOKEN_GET_DETAIL_VERSION = 20261108042210;
101707
+ var tokenGetDetailMigration = {
101708
+ version: TOKEN_GET_DETAIL_VERSION,
101709
+ up(json2) {
101710
+ return json2;
101711
+ }
101712
+ };
101713
+
101672
101714
  // ../../node_modules/css-tree/lib/generator/sourceMap.js
101673
101715
  var import_source_map_generator = __toESM(require_source_map_generator(), 1);
101674
101716
  var trackNodes = /* @__PURE__ */ new Set(["Atrule", "Selector", "Declaration"]);
@@ -104416,6 +104458,8 @@ if (!registeredSchemaMigrations().has(20261103115059)) registerSchemaMigrations(
104416
104458
  if (!registeredSchemaMigrations().has(20261104151013)) registerSchemaMigrations(buildDebugMigration);
104417
104459
  if (!registeredSchemaMigrations().has(20261105185042)) registerSchemaMigrations(sourcesStoredMigration);
104418
104460
  if (!registeredSchemaMigrations().has(20261106185419)) registerSchemaMigrations(modifierClassPrefixMigration);
104461
+ if (!registeredSchemaMigrations().has(20261107213031)) registerSchemaMigrations(componentGetDetailMigration);
104462
+ if (!registeredSchemaMigrations().has(20261108042210)) registerSchemaMigrations(tokenGetDetailMigration);
104419
104463
 
104420
104464
  // ../config/dist/capture/node-ops.js
104421
104465
  var DEFAULT_WIDTH = 1600;