@chat-js/registry 0.2.0-beta.1 → 0.2.0-beta.2
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
|
@@ -12,7 +12,7 @@ bun run build
|
|
|
12
12
|
|
|
13
13
|
`build.ts` serializes the catalog and tool descriptors, then runs published `shadcn@4.21.0 build`. shadcn reads the source files and emits `dist/r/*.json`. Both the intermediate `registry.json` and output are generated, never edited. The output directory is cleared first, so deleted items cannot survive a build.
|
|
14
14
|
|
|
15
|
-
The npm package publishes `dist/r/`. Release candidate `0.2.0-beta.
|
|
15
|
+
The npm package publishes `dist/r/`. Release candidate `0.2.0-beta.2` provides the Base UI namespace `https://unpkg.com/@chat-js/registry@0.2.0-beta.2/dist/r/{name}.json`, an identical `/base/{name}.json` namespace, and native Radix source at `/radix/{name}.json`. These candidate URLs become available after publication. Historical version 0 npm artifacts retain their legacy `items/` format for already-published CLIs; existing standard-registry clients retain their configured release. UI-dependent plugins and document bundles declare `contractVersion: 2` and matching `uiBase: "base"` or `uiBase: "radix"` so incompatible hosts are rejected before ChatJS installation or synchronization writes. The shared gateway and sandbox contracts remain at published version `0.2.0`. Publish the registry candidate before the matching CLI `0.9.0-beta.2`. Use `--tag beta` for both prereleases and keep stable `latest` unchanged. Descriptor contract version 2 is independent of npm versioning. The static Vercel deployment serves the same output.
|
|
16
16
|
|
|
17
17
|
## Tools
|
|
18
18
|
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"path": "src/plugins/model-preferences/src/model-row.tsx",
|
|
38
|
-
"content": "import React, { memo } from \"react\";\n\nimport { TableCell, TableRow } from \"@/components/ui/table\";\nimport { AVAILABLE_FEATURES } from \"@/lib/features-config\";\nimport { ModelSelectorLogo } from \"@/components/model-selector-logo\";\n\nimport { Switch } from \"@/components/ui/switch\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst ModelRowComponent = ({\n model,\n isEnabled,\n onToggle,\n}: {\n readonly model: {\n readonly id: string;\n readonly name: string;\n readonly reasoning?: boolean;\n };\n readonly isEnabled: boolean;\n readonly onToggle: (modelId: string, isEnabled: boolean) => void;\n}) => {\n const ReasoningIcon = AVAILABLE_FEATURES.reasoning.icon;\n\n return (\n <TableRow>\n <TableCell className=\"w-full py-2.5 pl-0\">\n <div className=\"flex items-center gap-2.5\">\n <ModelSelectorLogo modelId={model.id} />\n <span className=\"text-sm font-medium\">{model.name}</span>\n {}\n {model.reasoning === true && (\n <ReasoningIcon\n aria-label={AVAILABLE_FEATURES.reasoning.description}\n className={cn(\n \"text-muted-foreground size-3.5\",\n isEnabled && \"text-foreground\"\n )}\n />\n )}\n {}\n </div>\n </TableCell>\n <TableCell className=\"py-2.5 pr-0\">\n <Switch\n checked={isEnabled}\n onCheckedChange={() => {\n onToggle(model.id, isEnabled);\n }}\n />\n </TableCell>\n </TableRow>\n );\n};\n\nconst ModelRow = memo(ModelRowComponent);\n\nModelRow.displayName = \"PureModelRow\";\nexport { ModelRow };\n",
|
|
38
|
+
"content": "import React, { memo } from \"react\";\n\nimport { TableCell, TableRow } from \"@/components/ui/table\";\nimport { AVAILABLE_FEATURES } from \"@/lib/features-config\";\nimport { ModelSelectorLogo } from \"@/components/model-selector-logo\";\n\nimport { Switch } from \"@/components/ui/switch\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst ModelRowComponent = ({\n model,\n isEnabled,\n onToggle,\n}: {\n readonly model: {\n readonly id: string;\n readonly name: string;\n readonly reasoning?: boolean;\n };\n readonly isEnabled: boolean;\n readonly onToggle: (modelId: string, isEnabled: boolean) => void;\n}) => {\n const ReasoningIcon = AVAILABLE_FEATURES.reasoning.icon;\n\n return (\n <TableRow>\n <TableCell className=\"w-full py-2.5 pl-0 whitespace-normal\">\n <div className=\"flex items-center gap-2.5\">\n <ModelSelectorLogo modelId={model.id} />\n <span className=\"text-sm font-medium\">{model.name}</span>\n {}\n {model.reasoning === true && (\n <ReasoningIcon\n aria-label={AVAILABLE_FEATURES.reasoning.description}\n className={cn(\n \"text-muted-foreground size-3.5\",\n isEnabled && \"text-foreground\"\n )}\n />\n )}\n {}\n </div>\n </TableCell>\n <TableCell className=\"py-2.5 pr-0\">\n <Switch\n checked={isEnabled}\n onCheckedChange={() => {\n onToggle(model.id, isEnabled);\n }}\n />\n </TableCell>\n </TableRow>\n );\n};\n\nconst ModelRow = memo(ModelRowComponent);\n\nModelRow.displayName = \"PureModelRow\";\nexport { ModelRow };\n",
|
|
39
39
|
"type": "registry:file",
|
|
40
40
|
"target": "~/plugins/model-preferences/model-row.tsx"
|
|
41
41
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"path": "src/plugins/model-preferences/src/model-row.tsx",
|
|
38
|
-
"content": "import React, { memo } from \"react\";\n\nimport { TableCell, TableRow } from \"@/components/ui/table\";\nimport { AVAILABLE_FEATURES } from \"@/lib/features-config\";\nimport { ModelSelectorLogo } from \"@/components/model-selector-logo\";\n\nimport { Switch } from \"@/components/ui/switch\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst ModelRowComponent = ({\n model,\n isEnabled,\n onToggle,\n}: {\n readonly model: {\n readonly id: string;\n readonly name: string;\n readonly reasoning?: boolean;\n };\n readonly isEnabled: boolean;\n readonly onToggle: (modelId: string, isEnabled: boolean) => void;\n}) => {\n const ReasoningIcon = AVAILABLE_FEATURES.reasoning.icon;\n\n return (\n <TableRow>\n <TableCell className=\"w-full py-2.5 pl-0\">\n <div className=\"flex items-center gap-2.5\">\n <ModelSelectorLogo modelId={model.id} />\n <span className=\"text-sm font-medium\">{model.name}</span>\n {}\n {model.reasoning === true && (\n <ReasoningIcon\n aria-label={AVAILABLE_FEATURES.reasoning.description}\n className={cn(\n \"text-muted-foreground size-3.5\",\n isEnabled && \"text-foreground\"\n )}\n />\n )}\n {}\n </div>\n </TableCell>\n <TableCell className=\"py-2.5 pr-0\">\n <Switch\n checked={isEnabled}\n onCheckedChange={() => {\n onToggle(model.id, isEnabled);\n }}\n />\n </TableCell>\n </TableRow>\n );\n};\n\nconst ModelRow = memo(ModelRowComponent);\n\nModelRow.displayName = \"PureModelRow\";\nexport { ModelRow };\n",
|
|
38
|
+
"content": "import React, { memo } from \"react\";\n\nimport { TableCell, TableRow } from \"@/components/ui/table\";\nimport { AVAILABLE_FEATURES } from \"@/lib/features-config\";\nimport { ModelSelectorLogo } from \"@/components/model-selector-logo\";\n\nimport { Switch } from \"@/components/ui/switch\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst ModelRowComponent = ({\n model,\n isEnabled,\n onToggle,\n}: {\n readonly model: {\n readonly id: string;\n readonly name: string;\n readonly reasoning?: boolean;\n };\n readonly isEnabled: boolean;\n readonly onToggle: (modelId: string, isEnabled: boolean) => void;\n}) => {\n const ReasoningIcon = AVAILABLE_FEATURES.reasoning.icon;\n\n return (\n <TableRow>\n <TableCell className=\"w-full py-2.5 pl-0 whitespace-normal\">\n <div className=\"flex items-center gap-2.5\">\n <ModelSelectorLogo modelId={model.id} />\n <span className=\"text-sm font-medium\">{model.name}</span>\n {}\n {model.reasoning === true && (\n <ReasoningIcon\n aria-label={AVAILABLE_FEATURES.reasoning.description}\n className={cn(\n \"text-muted-foreground size-3.5\",\n isEnabled && \"text-foreground\"\n )}\n />\n )}\n {}\n </div>\n </TableCell>\n <TableCell className=\"py-2.5 pr-0\">\n <Switch\n checked={isEnabled}\n onCheckedChange={() => {\n onToggle(model.id, isEnabled);\n }}\n />\n </TableCell>\n </TableRow>\n );\n};\n\nconst ModelRow = memo(ModelRowComponent);\n\nModelRow.displayName = \"PureModelRow\";\nexport { ModelRow };\n",
|
|
39
39
|
"type": "registry:file",
|
|
40
40
|
"target": "~/plugins/model-preferences/model-row.tsx"
|
|
41
41
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"path": "src/plugins/model-preferences/src/model-row.tsx",
|
|
38
|
-
"content": "import React, { memo } from \"react\";\n\nimport { TableCell, TableRow } from \"@/components/ui/table\";\nimport { AVAILABLE_FEATURES } from \"@/lib/features-config\";\nimport { ModelSelectorLogo } from \"@/components/model-selector-logo\";\n\nimport { Switch } from \"@/components/ui/switch\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst ModelRowComponent = ({\n model,\n isEnabled,\n onToggle,\n}: {\n readonly model: {\n readonly id: string;\n readonly name: string;\n readonly reasoning?: boolean;\n };\n readonly isEnabled: boolean;\n readonly onToggle: (modelId: string, isEnabled: boolean) => void;\n}) => {\n const ReasoningIcon = AVAILABLE_FEATURES.reasoning.icon;\n\n return (\n <TableRow>\n <TableCell className=\"w-full py-2.5 pl-0\">\n <div className=\"flex items-center gap-2.5\">\n <ModelSelectorLogo modelId={model.id} />\n <span className=\"text-sm font-medium\">{model.name}</span>\n {}\n {model.reasoning === true && (\n <ReasoningIcon\n aria-label={AVAILABLE_FEATURES.reasoning.description}\n className={cn(\n \"text-muted-foreground size-3.5\",\n isEnabled && \"text-foreground\"\n )}\n />\n )}\n {}\n </div>\n </TableCell>\n <TableCell className=\"py-2.5 pr-0\">\n <Switch\n checked={isEnabled}\n onCheckedChange={() => {\n onToggle(model.id, isEnabled);\n }}\n />\n </TableCell>\n </TableRow>\n );\n};\n\nconst ModelRow = memo(ModelRowComponent);\n\nModelRow.displayName = \"PureModelRow\";\nexport { ModelRow };\n",
|
|
38
|
+
"content": "import React, { memo } from \"react\";\n\nimport { TableCell, TableRow } from \"@/components/ui/table\";\nimport { AVAILABLE_FEATURES } from \"@/lib/features-config\";\nimport { ModelSelectorLogo } from \"@/components/model-selector-logo\";\n\nimport { Switch } from \"@/components/ui/switch\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst ModelRowComponent = ({\n model,\n isEnabled,\n onToggle,\n}: {\n readonly model: {\n readonly id: string;\n readonly name: string;\n readonly reasoning?: boolean;\n };\n readonly isEnabled: boolean;\n readonly onToggle: (modelId: string, isEnabled: boolean) => void;\n}) => {\n const ReasoningIcon = AVAILABLE_FEATURES.reasoning.icon;\n\n return (\n <TableRow>\n <TableCell className=\"w-full py-2.5 pl-0 whitespace-normal\">\n <div className=\"flex items-center gap-2.5\">\n <ModelSelectorLogo modelId={model.id} />\n <span className=\"text-sm font-medium\">{model.name}</span>\n {}\n {model.reasoning === true && (\n <ReasoningIcon\n aria-label={AVAILABLE_FEATURES.reasoning.description}\n className={cn(\n \"text-muted-foreground size-3.5\",\n isEnabled && \"text-foreground\"\n )}\n />\n )}\n {}\n </div>\n </TableCell>\n <TableCell className=\"py-2.5 pr-0\">\n <Switch\n checked={isEnabled}\n onCheckedChange={() => {\n onToggle(model.id, isEnabled);\n }}\n />\n </TableCell>\n </TableRow>\n );\n};\n\nconst ModelRow = memo(ModelRowComponent);\n\nModelRow.displayName = \"PureModelRow\";\nexport { ModelRow };\n",
|
|
39
39
|
"type": "registry:file",
|
|
40
40
|
"target": "~/plugins/model-preferences/model-row.tsx"
|
|
41
41
|
},
|