@parity-app/cli 0.0.0 → 0.1.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/README.md CHANGED
@@ -5,8 +5,7 @@ agent. Parity is a design canvas that draws a project's real components, styled
5
5
  open project's designs, components and tokens, runs edits as one undoable step, takes screenshots, checks accessibility,
6
6
  and serves all of this as MCP tools.
7
7
 
8
- > **Pre-release.** The CLI isn't on npm yet; its first publish is pending. Until then, run it from a checkout of the
9
- > repository with `node packages/cli/src/bin.ts`.
8
+ > **Pre-release.** Versions before 1.0 may change their commands and output between releases.
10
9
 
11
10
  ## Install
12
11
 
package/dist/bin.mjs CHANGED
@@ -13,8 +13,8 @@ import { createInterface } from "node:readline";
13
13
  */
14
14
  async function runCheck(library, options) {
15
15
  if (!library) throw new Error("parity lib check <library> [--tab t] [--mode m]");
16
- const { applyLibraryEdits, componentNode, generateId, librarySource, parseLibraryEdits, withLibraryContext } = await import("./src-WcAfq6g1.mjs");
17
- const { registryDir, registryEntries } = await import("./src-C8DCd2a1.mjs");
16
+ const { applyLibraryEdits, componentNode, generateId, librarySource, parseLibraryEdits, withLibraryContext } = await import("./src-FF8eY6EI.mjs");
17
+ const { registryDir, registryEntries } = await import("./src-DYi23Ypb.mjs");
18
18
  const entry = (await registryEntries()).find((item) => item.manifest.id === library);
19
19
  if (!entry) throw new Error(`The registry has no library "${library}"`);
20
20
  let manifest = entry.manifest;
@@ -25,7 +25,7 @@ async function runCheck(library, options) {
25
25
  const list = manifest.components?.list ?? {};
26
26
  const names = Object.keys(list).filter((name) => list[name].visual !== false);
27
27
  const id = (name) => `${library}/${name}`;
28
- const sources = Object.fromEntries(names.map((name) => [id(name), {
28
+ const sources = Object.fromEntries(Object.keys(list).map((name) => [id(name), {
29
29
  ...librarySource(library, name, list[name], library),
30
30
  declaration: ""
31
31
  }]));
@@ -142,8 +142,8 @@ function describeCheck(report) {
142
142
  * because it reads the project's files and its own copy of TypeScript.
143
143
  */
144
144
  async function runLib(packageName, options) {
145
- const { appManifestPath, generateLibrary, manifestText, mergeManifest, reviseLibrary } = await import("./src-rlZNC2MU.mjs");
146
- const { covers, registryDir, registryEntries } = await import("./src-C8DCd2a1.mjs");
145
+ const { appManifestPath, generateLibrary, manifestText, mergeManifest, reviseLibrary } = await import("./src-8MhDV_sA.mjs");
146
+ const { covers, registryDir, registryEntries } = await import("./src-DYi23Ypb.mjs");
147
147
  const spec = packageName === void 0 ? void 0 : packageSpec(packageName);
148
148
  let root = resolve(options.root ?? ".");
149
149
  if (spec && (spec.version !== void 0 || options.registry && !options.root)) {
@@ -154,7 +154,7 @@ async function runLib(packageName, options) {
154
154
  console.error(`Installing ${spec.name} ${version} on its own…`);
155
155
  root = await installedVersion(spec.name, version);
156
156
  }
157
- const { parseLibraryEdits } = await import("./src-rlZNC2MU.mjs");
157
+ const { parseLibraryEdits } = await import("./src-8MhDV_sA.mjs");
158
158
  const trialEdits = options.edits ? parseLibraryEdits(JSON.parse(await readFile(resolve(options.edits), "utf8"))) : void 0;
159
159
  const recordedId = options.registry && spec ? options.id ?? (await registryEntries()).find((entry) => entry.manifest.package?.name === spec.name)?.manifest.id : void 0;
160
160
  const appErrors = recordedId ? await readAppErrors(registryDir(), recordedId) : void 0;
@@ -168082,6 +168082,48 @@
168082
168082
  "as": "forwardRef",
168083
168083
  "group": "DatePicker",
168084
168084
  "sample": {
168085
+ "props": {
168086
+ "min": {
168087
+ "$call": {
168088
+ "import": "@chakra-ui/react",
168089
+ "export": "parseDate"
168090
+ },
168091
+ "args": [
168092
+ "2025-03-05"
168093
+ ]
168094
+ },
168095
+ "max": {
168096
+ "$call": {
168097
+ "import": "@chakra-ui/react",
168098
+ "export": "parseDate"
168099
+ },
168100
+ "args": [
168101
+ "2025-03-25"
168102
+ ]
168103
+ },
168104
+ "value": [
168105
+ {
168106
+ "$call": {
168107
+ "import": "@chakra-ui/react",
168108
+ "export": "parseDate"
168109
+ },
168110
+ "args": [
168111
+ "2025-03-15"
168112
+ ]
168113
+ }
168114
+ ],
168115
+ "defaultValue": [
168116
+ {
168117
+ "$call": {
168118
+ "import": "@chakra-ui/react",
168119
+ "export": "parseDate"
168120
+ },
168121
+ "args": [
168122
+ "2025-03-15"
168123
+ ]
168124
+ }
168125
+ ]
168126
+ },
168085
168127
  "children": [
168086
168128
  {
168087
168129
  "component": "DatePicker.Label",
@@ -260971,15 +261013,12 @@
260971
261013
  "sample": {
260972
261014
  "props": {
260973
261015
  "query": "spot",
260974
- "children": "Text",
261016
+ "children": "Spotlight bulb",
260975
261017
  "ignoreCase": true,
260976
261018
  "styles": {
260977
261019
  "fontWeight": "semibold"
260978
261020
  }
260979
- },
260980
- "children": [
260981
- "Spotlight bulb"
260982
- ]
261021
+ }
260983
261022
  },
260984
261023
  "fingerprint": "6bdcac2a",
260985
261024
  "props": {