@zeroxsolutions/zaku-cli 0.0.0-stage → 0.0.1
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/LICENSE +21 -0
- package/README.md +21 -2
- package/dist/rules.js +1 -0
- package/dist/zaku.mjs +58256 -0
- package/package.json +196 -3
package/package.json
CHANGED
|
@@ -1,6 +1,199 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeroxsolutions/zaku-cli",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "zaku's checker: checks a product's design data against its code and prints the rules script every Figma write runs.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/zeroxsolutions/agent-plugins.git",
|
|
11
|
+
"directory": "apps/zaku-cli"
|
|
12
|
+
},
|
|
13
|
+
"bin": {
|
|
14
|
+
"zaku": "./dist/zaku.mjs"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/zaku.mjs",
|
|
18
|
+
"dist/rules.js",
|
|
19
|
+
"README.md"
|
|
20
|
+
],
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=22"
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"playwright": ">=1.50.0"
|
|
29
|
+
},
|
|
30
|
+
"peerDependenciesMeta": {
|
|
31
|
+
"playwright": {
|
|
32
|
+
"optional": true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@figma/plugin-typings": "1.141.0",
|
|
37
|
+
"@modelcontextprotocol/sdk": "1.32.2",
|
|
38
|
+
"@types/node": "^24.19.1",
|
|
39
|
+
"@zeroxsolutions/cosmic": "0.3.4",
|
|
40
|
+
"commander": "15.0.0",
|
|
41
|
+
"playwright": "1.64.0",
|
|
42
|
+
"reflect-metadata": "0.2.2",
|
|
43
|
+
"tsyringe": "4.10.0",
|
|
44
|
+
"vitest": "5.0.3",
|
|
45
|
+
"zod": "4.6.5",
|
|
46
|
+
"@zeroxsolutions/zaku": "0.0.1"
|
|
47
|
+
},
|
|
48
|
+
"nx": {
|
|
49
|
+
"targets": {
|
|
50
|
+
"build": {
|
|
51
|
+
"executor": "@nx/esbuild:esbuild",
|
|
52
|
+
"outputs": [
|
|
53
|
+
"{options.outputPath}"
|
|
54
|
+
],
|
|
55
|
+
"defaultConfiguration": "production",
|
|
56
|
+
"options": {
|
|
57
|
+
"platform": "node",
|
|
58
|
+
"target": "node22",
|
|
59
|
+
"outputPath": "apps/zaku-cli/dist",
|
|
60
|
+
"outputFileName": "zaku.mjs",
|
|
61
|
+
"format": [
|
|
62
|
+
"esm"
|
|
63
|
+
],
|
|
64
|
+
"bundle": true,
|
|
65
|
+
"skipTypeCheck": true,
|
|
66
|
+
"declaration": false,
|
|
67
|
+
"thirdParty": true,
|
|
68
|
+
"main": "apps/zaku-cli/src/main.ts",
|
|
69
|
+
"tsConfig": "apps/zaku-cli/tsconfig.app.json",
|
|
70
|
+
"external": [
|
|
71
|
+
"playwright",
|
|
72
|
+
"playwright-core"
|
|
73
|
+
],
|
|
74
|
+
"esbuildOptions": {
|
|
75
|
+
"banner": {
|
|
76
|
+
"js": "import { createRequire as zakuCreateRequire } from 'node:module'; const require = zakuCreateRequire(import.meta.url);"
|
|
77
|
+
},
|
|
78
|
+
"outExtension": {
|
|
79
|
+
".js": ".mjs"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"assets": [
|
|
83
|
+
{
|
|
84
|
+
"input": "apps/zaku-cli/dist-rules",
|
|
85
|
+
"glob": "rules.js",
|
|
86
|
+
"output": "."
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"configurations": {
|
|
91
|
+
"development": {},
|
|
92
|
+
"production": {}
|
|
93
|
+
},
|
|
94
|
+
"dependsOn": [
|
|
95
|
+
"^build",
|
|
96
|
+
"build-rules-script"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"prune-lockfile": {
|
|
100
|
+
"dependsOn": [
|
|
101
|
+
"build"
|
|
102
|
+
],
|
|
103
|
+
"cache": true,
|
|
104
|
+
"executor": "@nx/js:prune-lockfile",
|
|
105
|
+
"inputs": [
|
|
106
|
+
"default",
|
|
107
|
+
"^default",
|
|
108
|
+
"{workspaceRoot}/pnpm-workspace.yaml",
|
|
109
|
+
"{workspaceRoot}/package.json",
|
|
110
|
+
{
|
|
111
|
+
"runtime": "node -e \"try{console.log('pnpm major '+require('child_process').execSync('pnpm --version',{stdio:['ignore','pipe','ignore']}).toString().trim().split('.')[0])}catch{console.log('pnpm major unavailable')}\""
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"outputs": [
|
|
115
|
+
"{workspaceRoot}/apps/zaku-cli/dist/package.json",
|
|
116
|
+
"{workspaceRoot}/apps/zaku-cli/dist/pnpm-lock.yaml",
|
|
117
|
+
"{workspaceRoot}/apps/zaku-cli/dist/pnpm-workspace.yaml",
|
|
118
|
+
"{workspaceRoot}/apps/zaku-cli/dist/patches",
|
|
119
|
+
"{workspaceRoot}/apps/zaku-cli/dist/local_path_modules"
|
|
120
|
+
],
|
|
121
|
+
"options": {
|
|
122
|
+
"buildTarget": "build"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"copy-workspace-modules": {
|
|
126
|
+
"dependsOn": [
|
|
127
|
+
"build"
|
|
128
|
+
],
|
|
129
|
+
"cache": true,
|
|
130
|
+
"outputs": [
|
|
131
|
+
"{workspaceRoot}/apps/zaku-cli/dist/workspace_modules"
|
|
132
|
+
],
|
|
133
|
+
"executor": "@nx/js:copy-workspace-modules",
|
|
134
|
+
"options": {
|
|
135
|
+
"buildTarget": "build"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"prune": {
|
|
139
|
+
"dependsOn": [
|
|
140
|
+
"prune-lockfile",
|
|
141
|
+
"copy-workspace-modules"
|
|
142
|
+
],
|
|
143
|
+
"executor": "nx:noop"
|
|
144
|
+
},
|
|
145
|
+
"serve": {
|
|
146
|
+
"continuous": true,
|
|
147
|
+
"executor": "@nx/js:node",
|
|
148
|
+
"defaultConfiguration": "development",
|
|
149
|
+
"dependsOn": [
|
|
150
|
+
"build"
|
|
151
|
+
],
|
|
152
|
+
"options": {
|
|
153
|
+
"buildTarget": "@zeroxsolutions/zaku-cli:build",
|
|
154
|
+
"runBuildTargetDependencies": false
|
|
155
|
+
},
|
|
156
|
+
"configurations": {
|
|
157
|
+
"development": {
|
|
158
|
+
"buildTarget": "@zeroxsolutions/zaku-cli:build:development"
|
|
159
|
+
},
|
|
160
|
+
"production": {
|
|
161
|
+
"buildTarget": "@zeroxsolutions/zaku-cli:build:production"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"plugin-bin": {
|
|
166
|
+
"executor": "nx:run-commands",
|
|
167
|
+
"dependsOn": [
|
|
168
|
+
"build"
|
|
169
|
+
],
|
|
170
|
+
"outputs": [
|
|
171
|
+
"{workspaceRoot}/plugins/zaku/bin/zaku.mjs",
|
|
172
|
+
"{workspaceRoot}/plugins/zaku/bin/rules.js"
|
|
173
|
+
],
|
|
174
|
+
"options": {
|
|
175
|
+
"command": "cp apps/zaku-cli/dist/zaku.mjs plugins/zaku/bin/zaku.mjs && cp apps/zaku-cli/dist/rules.js plugins/zaku/bin/rules.js && pnpm exec oxfmt --write plugins/zaku/bin/zaku.mjs && chmod +x plugins/zaku/bin/zaku.mjs",
|
|
176
|
+
"cwd": "{workspaceRoot}"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"build-rules-script": {
|
|
180
|
+
"executor": "nx:run-commands",
|
|
181
|
+
"dependsOn": [
|
|
182
|
+
"^build"
|
|
183
|
+
],
|
|
184
|
+
"cache": true,
|
|
185
|
+
"inputs": [
|
|
186
|
+
"production",
|
|
187
|
+
"^production"
|
|
188
|
+
],
|
|
189
|
+
"outputs": [
|
|
190
|
+
"{projectRoot}/dist-rules"
|
|
191
|
+
],
|
|
192
|
+
"options": {
|
|
193
|
+
"command": "esbuild apps/zaku-cli/src/rules-script/rules-script.ts --bundle --minify --format=iife --global-name=zakuRulesLib --platform=browser --target=es2020 --outfile=apps/zaku-cli/dist-rules/rules.js --log-level=warning",
|
|
194
|
+
"cwd": "{workspaceRoot}"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
6
199
|
}
|