@preply/ds-ai-cli 11.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/AGENTS.md +7 -0
- package/README.md +30 -0
- package/dist/__tests__/create-command.test.d.ts +2 -0
- package/dist/__tests__/create-command.test.d.ts.map +1 -0
- package/dist/bin.d.ts +2 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +38149 -0
- package/dist/create-command.d.ts +3 -0
- package/dist/create-command.d.ts.map +1 -0
- package/package.json +32 -0
- package/src/__tests__/create-command.test.ts +66 -0
- package/src/bin.ts +34 -0
- package/src/create-command.ts +25 -0
- package/tsconfig.json +11 -0
- package/vite.config.ts +20 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Agents: ai-cli
|
|
2
|
+
|
|
3
|
+
This package exposes all `@preply/ds-ai-core` tools as CLI subcommands via Commander.
|
|
4
|
+
|
|
5
|
+
## Keep in sync
|
|
6
|
+
|
|
7
|
+
When adding, removing, or changing CLI commands (arguments, options, descriptions), update the consumer-facing agent skill at `skills/design-system/SKILL.md` to reflect the new command syntax.
|
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# `@preply/ds-ai-cli`
|
|
2
|
+
|
|
3
|
+
> CLI for querying the Preply Design System (icons, tokens, components).
|
|
4
|
+
|
|
5
|
+
Exposes all AI tools from [`@preply/ds-ai-core`](../ai-core/README.md) as terminal subcommands via [Commander](https://github.com/tj/commander.js) + [zod-commander](https://github.com/because-kira/zod-commander).
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx @preply/ds-ai-cli <command> [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Commands
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
ds-ai components list --platform <web|react-native>
|
|
17
|
+
ds-ai components docs <name> --platform <web|react-native>
|
|
18
|
+
ds-ai icons search <name> --platform <web|react-native>
|
|
19
|
+
ds-ai tokens search-by-name <name> --platform <web|react-native> [--format scss|less|typescript]
|
|
20
|
+
ds-ai tokens search-by-value <value> --platform <web|react-native> [--format scss|less|typescript]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Development
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
yarn build # Build the package
|
|
27
|
+
yarn dev # Build in watch mode
|
|
28
|
+
yarn check:types # Type-check
|
|
29
|
+
yarn lint # Lint
|
|
30
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-command.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/create-command.test.ts"],"names":[],"mappings":""}
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
|