@kazee-ds/init 0.1.8 → 0.1.10
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/package.json +1 -1
- package/src/content.mjs +2 -2
- package/templates/AGENTS.md +2 -2
- package/templates/consumer-lint.md +3 -3
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# @kazee-ds/init
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Version **0.1.10** pins runtime/styles **0.7.0** and lint **0.5.1**. Verify all target versions before using registry commands. Local candidate verification uses matching packed artifacts. See [release status](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/versions.md).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Preview-first setup for an existing standalone React or Vue application. Preserve the application's framework, package manager and configuration. Earlier CLI releases targeted private GitLab.
|
|
6
|
+
|
|
7
|
+
From an existing application, preview with `npm exec --yes --package=@kazee-ds/init@0.1.10 -- kazee-init`; append `--apply` after reviewing the plan.
|
|
6
8
|
|
|
7
9
|
From the design-system checkout, run:
|
|
8
10
|
|
package/package.json
CHANGED
package/src/content.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
2
|
|
|
3
|
-
export const RELEASE = Object.freeze({ framework: '0.
|
|
3
|
+
export const RELEASE = Object.freeze({ framework: '0.7.0', styles: '0.7.0', lint: '0.5.1' });
|
|
4
4
|
export const REGISTRY = 'https://registry.npmjs.org/';
|
|
5
5
|
const INIT_VERSION = JSON.parse(
|
|
6
6
|
readFileSync(new URL('../package.json', import.meta.url), 'utf8'),
|
|
@@ -15,7 +15,7 @@ export function managedRules(framework) {
|
|
|
15
15
|
).replaceAll('\r\n', '\n');
|
|
16
16
|
const other = framework === 'react' ? 'Vue' : 'React';
|
|
17
17
|
const filtered = template.replace(new RegExp(`## ${other} API\\n[\\s\\S]*?(?=\\n## |$)`), '');
|
|
18
|
-
return `${START}\n<!-- Template revision: 2026-10-
|
|
18
|
+
return `${START}\n<!-- Template revision: 2026-10-30; init ${INIT_VERSION}; ${framework} -->\n${filtered.trim()}\n${END}`;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export function installCommand(manager, framework) {
|
package/templates/AGENTS.md
CHANGED
|
@@ -5,7 +5,7 @@ Apply these rules to UI work in this application alongside its existing project
|
|
|
5
5
|
## Check the installed contract first
|
|
6
6
|
|
|
7
7
|
- Read this application's `package.json` and lockfile before changing UI. Use its installed package version as the API contract.
|
|
8
|
-
- Use the installed version
|
|
8
|
+
- Use the exact installed version public catalog. Published framework/styles 0.6.0 use tokens 0.4.4 and lint 0.5.0. Published MCP 0.1.9 lacks the verified 0.6.0 snapshot; the 0.1.10 candidate adds it alongside a separate 0.7.0-workspace preview. Confirm publication before updating the client pin and reconnect. Never substitute workspace docs for an installed registry package. New Avatar/date/time/dense-control APIs require matching 0.7.0 artifacts; do not assume they exist in earlier packages.
|
|
9
9
|
- When Kazee MCP is connected, read `get_catalog_versions`, then `list_components`, `get_component_docs`, and `get_component_examples` using this framework and exact installed version. Otherwise inspect the installed package's public types when uncertain. A prop accepted by React Aria, Reka UI, or another UI library is not automatically supported by Kazee components.
|
|
10
10
|
- Start file discovery in application source, manifests, and the installed Kazee package's public entry points/types. Do not recursively list all of `node_modules` or investigate React Aria/Reka UI internals for routine component usage.
|
|
11
11
|
- Investigate dependency internals only when a concrete type, build, or runtime failure remains unexplained by the public contract. Identify that failure and the relevant file before expanding the search. When the requested behavior, build, and typecheck pass, report the result and any unrun checks instead of continuing speculative API research.
|
|
@@ -22,7 +22,7 @@ MCP is a read-only reference, not an installer or validator. It needs no token a
|
|
|
22
22
|
- Import from `@kazee-ds/react` or `@kazee-ds/vue` public entry points. Do not copy package source into the application or import private build files.
|
|
23
23
|
- Do not bypass these components by importing React Aria or Reka UI directly to recreate their behavior. Keep unrelated existing integrations outside the task unchanged.
|
|
24
24
|
- Import `@kazee-ds/styles/index.css` once at the application's global CSS entry. It includes the tokens; do not add a duplicate token stylesheet.
|
|
25
|
-
-
|
|
25
|
+
- Check the installed version before styling. In versions that expose composition, pass Tailwind classes directly to public parts (for example Select.Trigger), use root className/style in React or class/style in Vue, and use the typed classNames map for compact APIs. Older versions may not forward these props. Do not target undocumented internal DOM selectors. Style application layout with application-owned wrappers.
|
|
26
26
|
- Common Button variants include `primary`, `secondary`, and `danger`; sizes are `sm`, `md`, and `lg`. Read the exact versioned contract for additional variants, icon-only and pending support. Defaults are `primary` and `md`; use `danger` for destructive actions.
|
|
27
27
|
|
|
28
28
|
## React API
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Consumer lint rules
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The next consumer lint **0.5.1** candidate accepts the expanded size/variant APIs while preserving import, event and accessible-name checks. Published lint **0.5.0** accompanies runtime/styles **0.6.0**. New runtime/styles **0.7.0** and tokens **0.5.0** remain unpublished candidates. See [versions](versions.md).
|
|
4
4
|
|
|
5
5
|
## Rules
|
|
6
6
|
|
|
@@ -46,14 +46,14 @@ import { Button, Select } from '@kazee-ds/vue';
|
|
|
46
46
|
</template>
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
The rule rejects selected unsupported props. Coverage varies by component and version; consult installed public types rather than treating this rule as a complete API schema.
|
|
49
|
+
The rule rejects selected unsupported props. Coverage varies by component and version; consult installed public types rather than treating this rule as a complete API schema. The unpublished composition update allows root className/style (React), class/style (Vue), and typed classNames maps; earlier published versions can still reject these. Public compound parts accept their documented styling props. Framework callback, variant, accessible-name and import checks remain active. It reports diagnostics only; it does not autofix events, change application state, or rewrite imports.
|
|
50
50
|
|
|
51
51
|
## Enable in a consuming application
|
|
52
52
|
|
|
53
53
|
Configure public npm access without read credentials using the [installation guide](installation.md). Keep the application's existing ESLint configuration, parsers, plugins, package manager, and lockfile, then install:
|
|
54
54
|
|
|
55
55
|
```sh
|
|
56
|
-
npm install --save-dev --save-exact @kazee-ds/eslint-config@0.
|
|
56
|
+
npm install --save-dev --save-exact @kazee-ds/eslint-config@0.5.0
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
Merge the configuration object into the application's existing flat config, after its framework/parser setup:
|