chat-js 1.0.0-alpha.3 → 1.0.0-alpha.4
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 +4 -2
- package/dist/index.js +6 -5
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -30,9 +30,11 @@ The CLI installs only that item's adapter files and declared dependencies. `@cha
|
|
|
30
30
|
|
|
31
31
|
Run `bun --filter chat-js test:gateways` from the repository root to verify independent installs of all built-ins and an external registry gateway.
|
|
32
32
|
|
|
33
|
+
After publication, run `bun --filter chat-js test:published` to create an app using the public npm CLI and registry, then check its types, lint, dependency versions, and native sandbox imports without local tarball overrides.
|
|
34
|
+
|
|
33
35
|
## Installation and migration
|
|
34
36
|
|
|
35
|
-
The `1.0.0-alpha.
|
|
37
|
+
The `1.0.0-alpha.4` release continues the ChatJS 1.0 alpha series under the `chat-js` package name. Apps are usable, but APIs and generated source may change substantially before 1.0. Use `npx chat-js@alpha` for the examples below. This CLI supports Base UI and Radix with registry `0.2.0-beta.5`.
|
|
36
38
|
|
|
37
39
|
Pass native shadcn visual options after `--`:
|
|
38
40
|
|
|
@@ -73,7 +75,7 @@ Existing ChatJS applications need a source migration; upgrading the CLI does not
|
|
|
73
75
|
|
|
74
76
|
Migrate callers together with primitives. Base UI menu actions use `onClick` and custom triggers use `render`; Radix uses `onSelect` and `asChild`. Passing Radix `onSelect` to a Base UI menu may compile without running the action. Use each library's native composition and ordinary links styled with `buttonVariants` for navigation. Preserve EVE message IDs, scroll anchoring, draft/IME behavior, approval dispatch before specialized renderers, and document revision actions. Verify these flows in your app before removing the old wrappers. Markdown still uses Streamdown; tool-specific renderers remain installed source.
|
|
75
77
|
|
|
76
|
-
This CLI candidate pins new apps to `@chat-js/registry@0.2.0-beta.
|
|
78
|
+
This CLI candidate pins new apps to `@chat-js/registry@0.2.0-beta.5`. Matching registry builds preserve the root Base namespace and add complete `/base/{name}.json` and `/radix/{name}.json` namespaces. Fresh Radix generation selects `/radix/`; item IDs and installation targets remain the same. Subsequent `add` and `sync` retain the configured namespace and check the host's native `base-*` or `radix-*` style before writing source or registrations.
|
|
77
79
|
|
|
78
80
|
UI-specific plugins and tools declare descriptor `contractVersion: 2` with matching `uiBase: "base"` or `uiBase: "radix"`. A mismatch stops installation; v2 descriptor versions do not prescribe npm major versions. Legacy v1 descriptors remain supported. Existing applications are not automatically migrated between libraries: changing `components.json` or a registry URL alone is insufficient. Keep the compatible registry namespace until migrating primitives and callers together. Publish the matching registry candidate under `beta` before publishing the CLI under `alpha`. The CLI’s `latest` tag also points to the explicitly approved `1.0.0-alpha.2` as an explicit default-install policy; the version remains an alpha until the stable 1.0 launch.
|
|
79
81
|
|
package/dist/index.js
CHANGED
|
@@ -22765,7 +22765,7 @@ import { registrySchema } from "shadcn/schema";
|
|
|
22765
22765
|
// ../registry/package.json
|
|
22766
22766
|
var package_default = {
|
|
22767
22767
|
name: "@chat-js/registry",
|
|
22768
|
-
version: "0.2.0-beta.
|
|
22768
|
+
version: "0.2.0-beta.5",
|
|
22769
22769
|
private: false,
|
|
22770
22770
|
description: "ChatJS tool and gateway registry items",
|
|
22771
22771
|
keywords: [
|
|
@@ -42579,7 +42579,7 @@ var gatewayMetadata = {
|
|
|
42579
42579
|
// ../gateways/package.json
|
|
42580
42580
|
var package_default2 = {
|
|
42581
42581
|
name: "@chat-js/gateways",
|
|
42582
|
-
version: "0.2.
|
|
42582
|
+
version: "0.2.1",
|
|
42583
42583
|
description: "Gateway contracts and shared runtime utilities for ChatJS registry extensions",
|
|
42584
42584
|
license: "Apache-2.0",
|
|
42585
42585
|
repository: {
|
|
@@ -46545,7 +46545,7 @@ var withRegistryTransport = async (operation) => {
|
|
|
46545
46545
|
};
|
|
46546
46546
|
|
|
46547
46547
|
// src/registry/shadcn.ts
|
|
46548
|
-
var registryUrl = "https://unpkg.com/@chat-js/registry@0.2.0-beta.
|
|
46548
|
+
var registryUrl = "https://unpkg.com/@chat-js/registry@0.2.0-beta.5/dist/r/{name}.json";
|
|
46549
46549
|
var registryConfig = async (cwd) => {
|
|
46550
46550
|
const config3 = await getRegistriesConfig(cwd);
|
|
46551
46551
|
const source = await optionalFile(path14.join(cwd, "components.json"));
|
|
@@ -50800,7 +50800,7 @@ import path29 from "node:path";
|
|
|
50800
50800
|
// package.json
|
|
50801
50801
|
var package_default3 = {
|
|
50802
50802
|
name: "chat-js",
|
|
50803
|
-
version: "1.0.0-alpha.
|
|
50803
|
+
version: "1.0.0-alpha.4",
|
|
50804
50804
|
private: false,
|
|
50805
50805
|
description: "CLI for creating and extending ChatJS apps",
|
|
50806
50806
|
keywords: [
|
|
@@ -50843,6 +50843,7 @@ var package_default3 = {
|
|
|
50843
50843
|
prepublishOnly: "bun run build && node ./dist/index.js --help >/dev/null",
|
|
50844
50844
|
"test:native-create": "bash scripts/test-native-create.sh",
|
|
50845
50845
|
"test:scaffold": "bash scripts/test-scaffold.sh",
|
|
50846
|
+
"test:published": "bash scripts/test-published.sh",
|
|
50846
50847
|
"test:gateways": "bun run template:sync && bun test --timeout 180000 ./test/gateway-selection.test.ts",
|
|
50847
50848
|
"test:types": "tsc --noEmit",
|
|
50848
50849
|
lint: "oxlint . && oxfmt --check .",
|
|
@@ -50850,7 +50851,7 @@ var package_default3 = {
|
|
|
50850
50851
|
"test:native-agent": "bun test/native-agent-acceptance.ts"
|
|
50851
50852
|
},
|
|
50852
50853
|
dependencies: {
|
|
50853
|
-
"@chat-js/gateways": "0.2.
|
|
50854
|
+
"@chat-js/gateways": "0.2.1",
|
|
50854
50855
|
"@clack/prompts": "^1.0.1",
|
|
50855
50856
|
commander: "^14.0.0",
|
|
50856
50857
|
"files-sdk": "2.5.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chat-js",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "CLI for creating and extending ChatJS apps",
|
|
6
6
|
"keywords": [
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"prepublishOnly": "bun run build && node ./dist/index.js --help >/dev/null",
|
|
44
44
|
"test:native-create": "bash scripts/test-native-create.sh",
|
|
45
45
|
"test:scaffold": "bash scripts/test-scaffold.sh",
|
|
46
|
+
"test:published": "bash scripts/test-published.sh",
|
|
46
47
|
"test:gateways": "bun run template:sync && bun test --timeout 180000 ./test/gateway-selection.test.ts",
|
|
47
48
|
"test:types": "tsc --noEmit",
|
|
48
49
|
"lint": "oxlint . && oxfmt --check .",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"test:native-agent": "bun test/native-agent-acceptance.ts"
|
|
51
52
|
},
|
|
52
53
|
"dependencies": {
|
|
53
|
-
"@chat-js/gateways": "0.2.
|
|
54
|
+
"@chat-js/gateways": "0.2.1",
|
|
54
55
|
"@clack/prompts": "^1.0.1",
|
|
55
56
|
"commander": "^14.0.0",
|
|
56
57
|
"files-sdk": "2.5.0",
|