@shoplflow/mcp 0.1.3 → 0.1.5

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.
Files changed (3) hide show
  1. package/README.md +16 -8
  2. package/dist/index.js +270 -9
  3. package/package.json +16 -13
package/README.md CHANGED
@@ -579,16 +579,24 @@ the "review the effect of a base change in the PR diff" benefit disappears.
579
579
 
580
580
  A `@shoplflow/base` release automatically republishes this package with freshly extracted metadata. That
581
581
  behaviour isn't declared in one place — it emerges from settings spread across `package.json`,
582
- `turbo.json`, and `.changeset/config.json`:
583
-
584
- | Piece | Removing it… |
585
- | ------------------------------------------------------------ | ---------------------------------------------------------------- |
586
- | `@shoplflow/{base,shopl-assets,hada-assets}` in devDeps | stops changesets from bumping mcp → **mcp is never republished** |
587
- | `generate:metadata &&` in `build:package` | allows a build path that bundles previously generated JSON |
588
- | turbo scheduling `mcp#build:package` under `turbo run build` | means CI's `pnpm build` never produces `dist/` before publish |
582
+ `turbo.json`, and the release scripts:
583
+
584
+ | Piece | Removing it… |
585
+ | ------------------------------------------------------------ | ------------------------------------------------------------------------- |
586
+ | `@shoplflow/{base,shopl-assets,hada-assets}` in devDeps | loses turbo's build ordering → extraction can read stale icon barrels |
587
+ | `generate:metadata &&` in `build:package` | allows a build path that bundles previously generated JSON |
588
+ | turbo scheduling `mcp#build:package` under `turbo run build` | means CI's `pnpm build` never produces `dist/` before publish |
589
+ | `ensure:changeset` at the front of the root `version` script | base releases stop adding an mcp changeset → **mcp is never republished** |
590
+
591
+ Changesets will **not** bump mcp on its own: a package that depends on base only through
592
+ `devDependencies` resolves to `none`, even with `updateInternalDependents: "always"`. So the root
593
+ `version` script runs `pnpm --filter @shoplflow/mcp ensure:changeset` first, which adds an
594
+ `"@shoplflow/mcp": patch` changeset whenever a pending changeset releases base or an asset package and
595
+ none mentions mcp yet. The coupling is one-way — an mcp-only change never forces a base release. To skip
596
+ it for one release, list `"@shoplflow/mcp": none` in any pending changeset.
589
597
 
590
598
  Each removal keeps the build green — the failure is silent, and consumers just keep receiving stale
591
- metadata. `check:wiring` asserts all three and runs on every PR. Details in
599
+ metadata. `check:wiring` asserts all four and runs on every PR. Details in
592
600
  [아키텍쳐.md §6](./아키텍쳐.md).
593
601
 
594
602
  ### Editing the setup guidance
package/dist/index.js CHANGED
@@ -15,18 +15,18 @@ var tokens_generated_default = {
15
15
  "shopl",
16
16
  "hada"
17
17
  ],
18
- count: 114,
18
+ count: 115,
19
19
  countByType: {
20
20
  color: 44,
21
21
  borderRadius: 6,
22
22
  fontWeights: 3,
23
23
  spacing: 13,
24
24
  boxShadow: 1,
25
- typography: 47
25
+ typography: 48
26
26
  },
27
27
  countByDomain: {
28
28
  shared: 55,
29
- shopl: 30,
29
+ shopl: 31,
30
30
  hada: 29
31
31
  },
32
32
  tokens: [
@@ -915,6 +915,20 @@ var tokens_generated_default = {
915
915
  fontFamily: "Pretendard"
916
916
  }
917
917
  },
918
+ {
919
+ name: "caption2_400",
920
+ type: "typography",
921
+ domain: "shopl",
922
+ path: "caption2_400",
923
+ cssVar: null,
924
+ className: ".caption2_400",
925
+ value: {
926
+ fontFamily: "Pretendard",
927
+ fontWeight: "{fontWeight.regular}",
928
+ fontSize: "10",
929
+ lineHeight: "15"
930
+ }
931
+ },
918
932
  {
919
933
  name: "heading1_700",
920
934
  type: "typography",
@@ -1304,9 +1318,9 @@ var icons_generated_default = {
1304
1318
  "shopl",
1305
1319
  "hada"
1306
1320
  ],
1307
- count: 473,
1321
+ count: 483,
1308
1322
  countByDomain: {
1309
- shopl: 369,
1323
+ shopl: 379,
1310
1324
  hada: 104
1311
1325
  },
1312
1326
  icons: [
@@ -1500,6 +1514,36 @@ var icons_generated_default = {
1500
1514
  "alert"
1501
1515
  ]
1502
1516
  },
1517
+ {
1518
+ name: "IcAlignCenter",
1519
+ alias: "AlignCenterIcon",
1520
+ domain: "shopl",
1521
+ importFrom: "@shoplflow/shopl-assets",
1522
+ keywords: [
1523
+ "align",
1524
+ "center"
1525
+ ]
1526
+ },
1527
+ {
1528
+ name: "IcAlignLeft",
1529
+ alias: "AlignLeftIcon",
1530
+ domain: "shopl",
1531
+ importFrom: "@shoplflow/shopl-assets",
1532
+ keywords: [
1533
+ "align",
1534
+ "left"
1535
+ ]
1536
+ },
1537
+ {
1538
+ name: "IcAlignRight",
1539
+ alias: "AlignRightIcon",
1540
+ domain: "shopl",
1541
+ importFrom: "@shoplflow/shopl-assets",
1542
+ keywords: [
1543
+ "align",
1544
+ "right"
1545
+ ]
1546
+ },
1503
1547
  {
1504
1548
  name: "IcAnnualMedium",
1505
1549
  alias: "AnnualMediumIcon",
@@ -2063,6 +2107,16 @@ var icons_generated_default = {
2063
2107
  "plus"
2064
2108
  ]
2065
2109
  },
2110
+ {
2111
+ name: "IcCopyXsmall",
2112
+ alias: "CopyXsmallIcon",
2113
+ domain: "shopl",
2114
+ importFrom: "@shoplflow/shopl-assets",
2115
+ keywords: [
2116
+ "copy",
2117
+ "xsmall"
2118
+ ]
2119
+ },
2066
2120
  {
2067
2121
  name: "IcCopy",
2068
2122
  alias: "CopyIcon",
@@ -2304,6 +2358,15 @@ var icons_generated_default = {
2304
2358
  "dropdown"
2305
2359
  ]
2306
2360
  },
2361
+ {
2362
+ name: "IcDuplicate",
2363
+ alias: "DuplicateIcon",
2364
+ domain: "shopl",
2365
+ importFrom: "@shoplflow/shopl-assets",
2366
+ keywords: [
2367
+ "duplicate"
2368
+ ]
2369
+ },
2307
2370
  {
2308
2371
  name: "IcDuration",
2309
2372
  alias: "DurationIcon",
@@ -2542,6 +2605,15 @@ var icons_generated_default = {
2542
2605
  "flexitime"
2543
2606
  ]
2544
2607
  },
2608
+ {
2609
+ name: "IcForward",
2610
+ alias: "ForwardIcon",
2611
+ domain: "shopl",
2612
+ importFrom: "@shoplflow/shopl-assets",
2613
+ keywords: [
2614
+ "forward"
2615
+ ]
2616
+ },
2545
2617
  {
2546
2618
  name: "IcFullScreenMedium",
2547
2619
  alias: "FullScreenMediumIcon",
@@ -4469,6 +4541,39 @@ var icons_generated_default = {
4469
4541
  "solved"
4470
4542
  ]
4471
4543
  },
4544
+ {
4545
+ name: "IcSortAscendingXsmall",
4546
+ alias: "SortAscendingXsmallIcon",
4547
+ domain: "shopl",
4548
+ importFrom: "@shoplflow/shopl-assets",
4549
+ keywords: [
4550
+ "sort",
4551
+ "ascending",
4552
+ "xsmall"
4553
+ ]
4554
+ },
4555
+ {
4556
+ name: "IcSortDefaultXsmall",
4557
+ alias: "SortDefaultXsmallIcon",
4558
+ domain: "shopl",
4559
+ importFrom: "@shoplflow/shopl-assets",
4560
+ keywords: [
4561
+ "sort",
4562
+ "default",
4563
+ "xsmall"
4564
+ ]
4565
+ },
4566
+ {
4567
+ name: "IcSortDescendingXsmall",
4568
+ alias: "SortDescendingXsmallIcon",
4569
+ domain: "shopl",
4570
+ importFrom: "@shoplflow/shopl-assets",
4571
+ keywords: [
4572
+ "sort",
4573
+ "descending",
4574
+ "xsmall"
4575
+ ]
4576
+ },
4472
4577
  {
4473
4578
  name: "IcSortingAtoz",
4474
4579
  alias: "SortingAtozIcon",
@@ -4509,6 +4614,15 @@ var icons_generated_default = {
4509
4614
  "ztoa"
4510
4615
  ]
4511
4616
  },
4617
+ {
4618
+ name: "IcSparkles",
4619
+ alias: "SparklesIcon",
4620
+ domain: "shopl",
4621
+ importFrom: "@shoplflow/shopl-assets",
4622
+ keywords: [
4623
+ "sparkles"
4624
+ ]
4625
+ },
4512
4626
  {
4513
4627
  name: "IcStaggeredWorking",
4514
4628
  alias: "StaggeredWorkingIcon",
@@ -5908,8 +6022,8 @@ var icons_generated_default = {
5908
6022
  var components_generated_default = {
5909
6023
  source: "packages/base/src/components/**/*.types.ts",
5910
6024
  importFrom: "@shoplflow/base",
5911
- count: 65,
5912
- withVariants: 19,
6025
+ count: 66,
6026
+ withVariants: 20,
5913
6027
  components: [
5914
6028
  {
5915
6029
  name: "AnnualDatepicker",
@@ -6387,6 +6501,121 @@ var components_generated_default = {
6387
6501
  }
6388
6502
  ]
6389
6503
  },
6504
+ {
6505
+ name: "Combobox",
6506
+ group: "Combobox",
6507
+ importFrom: "@shoplflow/base",
6508
+ polymorphic: false,
6509
+ variants: [
6510
+ {
6511
+ prop: "sizeVar",
6512
+ values: [
6513
+ "S",
6514
+ "M"
6515
+ ]
6516
+ }
6517
+ ],
6518
+ props: [
6519
+ {
6520
+ name: "'aria-label'",
6521
+ optional: true,
6522
+ type: "string"
6523
+ },
6524
+ {
6525
+ name: "className",
6526
+ optional: true,
6527
+ type: "string"
6528
+ },
6529
+ {
6530
+ name: "defaultValue",
6531
+ optional: true,
6532
+ type: "string",
6533
+ description: "\uBE44\uC81C\uC5B4 \uBAA8\uB4DC\uC758 \uCD08\uAE30\uAC12\uC785\uB2C8\uB2E4."
6534
+ },
6535
+ {
6536
+ name: "disabled",
6537
+ optional: true,
6538
+ type: "boolean",
6539
+ description: "\uBE44\uD65C\uC131\uD654 \uC5EC\uBD80\uB97C \uC124\uC815\uD569\uB2C8\uB2E4."
6540
+ },
6541
+ {
6542
+ name: "floatingZIndex",
6543
+ optional: true,
6544
+ type: "CSSProperties['zIndex']",
6545
+ description: "\uD31D\uC624\uBC84 z-index\uC785\uB2C8\uB2E4."
6546
+ },
6547
+ {
6548
+ name: "inputMode",
6549
+ optional: true,
6550
+ type: "ComboboxInputModeType",
6551
+ description: "\uC785\uB825 \uBAA8\uB4DC\uC785\uB2C8\uB2E4. `numeric`\uC774\uBA74 \uC22B\uC790\uB9CC \uC785\uB825\uB429\uB2C8\uB2E4."
6552
+ },
6553
+ {
6554
+ name: "isError",
6555
+ optional: true,
6556
+ type: "boolean",
6557
+ description: "\uC5D0\uB7EC \uC5EC\uBD80\uB97C \uC124\uC815\uD569\uB2C8\uB2E4."
6558
+ },
6559
+ {
6560
+ name: "items",
6561
+ optional: false,
6562
+ type: "ComboboxItem[]",
6563
+ description: "\uB4DC\uB86D\uB2E4\uC6B4\uC5D0 \uD45C\uC2DC\uD560 \uD56D\uBAA9\uC785\uB2C8\uB2E4."
6564
+ },
6565
+ {
6566
+ name: "maxLength",
6567
+ optional: true,
6568
+ type: "number"
6569
+ },
6570
+ {
6571
+ name: "onChange",
6572
+ optional: true,
6573
+ type: "(value: string) => void",
6574
+ description: "\uC785\uB825\uAC12\uC774 \uBC14\uB014 \uB54C \uD638\uCD9C\uB429\uB2C8\uB2E4."
6575
+ },
6576
+ {
6577
+ name: "onSelect",
6578
+ optional: true,
6579
+ type: "(value: string) => void",
6580
+ description: "\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD\uD558\uBA74 item.value\uAC00 \uC804\uB2EC\uB429\uB2C8\uB2E4. Enter\uB85C \uD655\uC815\uD558\uBA74 \uD604\uC7AC \uC785\uB825\uAC12\uC774 \uC804\uB2EC\uB429\uB2C8\uB2E4."
6581
+ },
6582
+ {
6583
+ name: "placeholder",
6584
+ optional: true,
6585
+ type: "string"
6586
+ },
6587
+ {
6588
+ name: "sizeVar",
6589
+ optional: true,
6590
+ type: "Size",
6591
+ description: "\uCEF4\uD3EC\uB10C\uD2B8\uC758 \uD06C\uAE30\uB97C \uC124\uC815\uD569\uB2C8\uB2E4."
6592
+ },
6593
+ {
6594
+ name: "tag",
6595
+ optional: true,
6596
+ type: "ReactNode",
6597
+ description: "\uD544\uB4DC \uBC14\uAE65 \uC624\uB978\uCABD\uC5D0 \uBD99\uB294 \uC120\uD0DD\uC801 \uD0DC\uADF8/\uB2E8\uC704 \uC601\uC5ED\uC785\uB2C8\uB2E4."
6598
+ },
6599
+ {
6600
+ name: "textAlign",
6601
+ optional: true,
6602
+ type: "ComboboxTextAlignType",
6603
+ description: "\uC785\uB825 \uD14D\uC2A4\uD2B8 \uC815\uB82C\uC785\uB2C8\uB2E4."
6604
+ },
6605
+ {
6606
+ name: "value",
6607
+ optional: true,
6608
+ type: "string",
6609
+ description: "\uC785\uB825\uAC12\uC785\uB2C8\uB2E4. \uC804\uB2EC\uD558\uBA74 \uC81C\uC5B4 \uCEF4\uD3EC\uB10C\uD2B8\uB85C \uB3D9\uC791\uD569\uB2C8\uB2E4."
6610
+ },
6611
+ {
6612
+ name: "width",
6613
+ optional: true,
6614
+ type: "CSSProperties['width']",
6615
+ description: "\uD544\uB4DC \uB108\uBE44\uC785\uB2C8\uB2E4. \uD0DC\uADF8 \uC601\uC5ED\uC740 \uD3EC\uD568\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."
6616
+ }
6617
+ ]
6618
+ },
6390
6619
  {
6391
6620
  name: "DayDatepicker",
6392
6621
  group: "DayDatepicker",
@@ -9117,8 +9346,8 @@ var components_generated_default = {
9117
9346
  var stories_generated_default = {
9118
9347
  source: "packages/base/src/components (each *.stories.tsx)",
9119
9348
  importFrom: "@shoplflow/base",
9120
- count: 42,
9121
- exampleCount: 149,
9349
+ count: 43,
9350
+ exampleCount: 155,
9122
9351
  modules: [
9123
9352
  {
9124
9353
  name: "AnnualDatepicker",
@@ -9303,6 +9532,38 @@ var stories_generated_default = {
9303
9532
  }
9304
9533
  ]
9305
9534
  },
9535
+ {
9536
+ name: "Combobox",
9537
+ group: "Combobox",
9538
+ title: "COMPONENTS/Comboboxs/Combobox",
9539
+ importFrom: "@shoplflow/base",
9540
+ examples: [
9541
+ {
9542
+ story: "Playground",
9543
+ code: "<Stack>\n <Combobox\n {...componentProps}\n items={resolvedItems}\n value={value}\n onChange={handleChange}\n tag={showTag ? <Text typography='caption_700'>\uB2E8\uC704</Text> : tag}\n />\n </Stack>"
9544
+ },
9545
+ {
9546
+ story: "Disabled",
9547
+ code: "<Stack>\n <Combobox {...args} items={TEXT_ITEMS} value='Option A' disabled />\n </Stack>"
9548
+ },
9549
+ {
9550
+ story: "Error",
9551
+ code: "<Stack>\n <Combobox {...args} items={TEXT_ITEMS} value='Option A' isError />\n </Stack>"
9552
+ },
9553
+ {
9554
+ story: "TextAlign",
9555
+ code: "<Stack.Horizontal spacing='spacing12'>\n <Combobox {...args} items={TEXT_ITEMS} value='Option A' textAlign='left' />\n <Combobox {...args} items={TEXT_ITEMS} value='Option A' textAlign='right' />\n </Stack.Horizontal>"
9556
+ },
9557
+ {
9558
+ story: "Numeric",
9559
+ code: "<Stack>\n <Combobox\n {...args}\n items={NUMBER_ITEMS}\n inputMode='numeric'\n value={value}\n onChange={setValue}\n onSelect={setValue}\n />\n </Stack>"
9560
+ },
9561
+ {
9562
+ story: "WithTag",
9563
+ code: "<Stack.Horizontal spacing='spacing12'>\n <Combobox\n {...args}\n items={NUMBER_ITEMS}\n inputMode='numeric'\n value={hours}\n onChange={setHours}\n onSelect={setHours}\n tag={<Text typography='caption_700'>\uC2DC\uAC04</Text>}\n />\n <Combobox\n {...args}\n items={NUMBER_ITEMS}\n inputMode='numeric'\n value={minutes}\n onChange={setMinutes}\n onSelect={setMinutes}\n tag={<Text typography='caption_700'>\uBD84</Text>}\n />\n </Stack.Horizontal>"
9564
+ }
9565
+ ]
9566
+ },
9306
9567
  {
9307
9568
  name: "DayDatepicker",
9308
9569
  group: "DayDatepicker",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplflow/mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Model Context Protocol server exposing the shoplflow design system (tokens, components, icons) to AI coding agents.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -30,7 +30,9 @@
30
30
  "//scripts": [
31
31
  "build:package MUST keep `generate:metadata &&` at the front. It is what guarantees the",
32
32
  "published bundle can never carry stale design-system metadata — there is no build path",
33
- "that skips extraction. Verified by `check:wiring`."
33
+ "that skips extraction. Verified by `check:wiring`.",
34
+ "ensure:changeset is what republishes mcp when base/assets release — changesets will not.",
35
+ "The root `version` script MUST run it before `changeset version`. Verified by `check:wiring`."
34
36
  ],
35
37
  "dependencies": {
36
38
  "@modelcontextprotocol/sdk": "^1.12.0",
@@ -38,24 +40,24 @@
38
40
  },
39
41
  "//devDependencies": [
40
42
  "DO NOT REMOVE the three @shoplflow/* workspace deps below just because nothing imports them.",
41
- "They are not runtime deps — they are the wire that couples this package to a base release:",
42
- " 1. turbo reads them to order `build:package` after base/assets have built.",
43
- " 2. changesets reads them to treat mcp as a dependent of base, so a base version bump",
44
- " patch-bumps mcp too (.changeset/config.json -> updateInternalDependents: always).",
45
- " That is the ONLY reason a base-only change republishes mcp with fresh metadata.",
43
+ "They are not runtime deps — turbo reads them to order `build:package` after base/assets",
44
+ "have built, so the extractors see the current icon barrels.",
45
+ "They do NOT make changesets bump mcp: a devDependency-only dependent resolves to `none`,",
46
+ "even with updateInternalDependents: always. The base -> mcp republish is done by",
47
+ "`ensure:changeset` (scripts/ensure-release-changeset.cjs) instead.",
46
48
  "Removing them breaks NOTHING visibly: extraction still works (scripts read ../../base/src",
47
- "by relative path), the build still passes — but mcp silently stops being republished and",
48
- "consumers keep receiving stale metadata forever. Guarded by `pnpm check:wiring`.",
49
- "See 아키텍쳐.md section 6."
49
+ "by relative path) and the build still passes, but mcp may bundle stale icon metadata.",
50
+ "Guarded by `pnpm check:wiring`. See 아키텍쳐.md section 6."
50
51
  ],
51
52
  "devDependencies": {
53
+ "@changesets/get-release-plan": "^4.0.14",
52
54
  "@types/node": "^22.0.0",
53
55
  "ts-morph": "^24.0.0",
54
56
  "tsup": "7.2.0",
55
57
  "typescript": "6.0.3",
56
- "@shoplflow/base": "0.48.11",
57
- "@shoplflow/shopl-assets": "0.12.49",
58
- "@shoplflow/hada-assets": "0.1.11"
58
+ "@shoplflow/base": "0.49.3",
59
+ "@shoplflow/hada-assets": "0.1.12",
60
+ "@shoplflow/shopl-assets": "0.12.55"
59
61
  },
60
62
  "repository": {
61
63
  "type": "git",
@@ -72,6 +74,7 @@
72
74
  "dev": "pnpm generate:metadata && tsup --watch",
73
75
  "start": "node dist/index.js",
74
76
  "check:wiring": "node scripts/check-release-wiring.cjs",
77
+ "ensure:changeset": "node scripts/ensure-release-changeset.cjs",
75
78
  "type-check": "tsc --noEmit || true"
76
79
  }
77
80
  }