rafters 0.0.70 → 0.0.72
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/dist/index.js +25788 -25350
- package/dist/registry/types.d.ts +9 -1
- package/dist/registry/types.js +3 -2
- package/package.json +15 -14
package/dist/registry/types.d.ts
CHANGED
|
@@ -19,13 +19,19 @@ declare const RegistryFileSchema: z.ZodObject<{
|
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
type RegistryFile = z.infer<typeof RegistryFileSchema>;
|
|
21
21
|
/**
|
|
22
|
-
* Item type in registry
|
|
22
|
+
* Item type in registry.
|
|
23
|
+
* `substrate` is the behavior-layer runtime (the score contract, compose
|
|
24
|
+
* slices, reactive hooks -- everything under ui/src outside components /
|
|
25
|
+
* primitives / composites). It is a copy-in shared dependency resolved like a
|
|
26
|
+
* primitive; the specific dir it installs into (`@/lib`, `@/hooks`, ...) is
|
|
27
|
+
* carried in the item's file path, so the type never grows per kind.
|
|
23
28
|
*/
|
|
24
29
|
declare const RegistryItemTypeSchema: z.ZodEnum<{
|
|
25
30
|
ui: "ui";
|
|
26
31
|
primitive: "primitive";
|
|
27
32
|
composite: "composite";
|
|
28
33
|
rule: "rule";
|
|
34
|
+
substrate: "substrate";
|
|
29
35
|
}>;
|
|
30
36
|
type RegistryItemType = z.infer<typeof RegistryItemTypeSchema>;
|
|
31
37
|
/**
|
|
@@ -59,6 +65,7 @@ declare const RegistryItemSchema: z.ZodObject<{
|
|
|
59
65
|
primitive: "primitive";
|
|
60
66
|
composite: "composite";
|
|
61
67
|
rule: "rule";
|
|
68
|
+
substrate: "substrate";
|
|
62
69
|
}>;
|
|
63
70
|
description: z.ZodOptional<z.ZodString>;
|
|
64
71
|
primitives: z.ZodArray<z.ZodString>;
|
|
@@ -93,6 +100,7 @@ declare const RegistryIndexSchema: z.ZodObject<{
|
|
|
93
100
|
primitives: z.ZodArray<z.ZodString>;
|
|
94
101
|
composites: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
95
102
|
rules: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
103
|
+
substrate: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
96
104
|
}, z.core.$strip>;
|
|
97
105
|
type RegistryIndex = z.infer<typeof RegistryIndexSchema>;
|
|
98
106
|
|
package/dist/registry/types.js
CHANGED
|
@@ -8,7 +8,7 @@ var RegistryFileSchema = z.object({
|
|
|
8
8
|
devDependencies: z.array(z.string()).default([])
|
|
9
9
|
// e.g., ["vitest"] - from @devDependencies JSDoc
|
|
10
10
|
});
|
|
11
|
-
var RegistryItemTypeSchema = z.enum(["ui", "primitive", "composite", "rule"]);
|
|
11
|
+
var RegistryItemTypeSchema = z.enum(["ui", "primitive", "composite", "rule", "substrate"]);
|
|
12
12
|
var RegistryItemIntelligenceSchema = z.object({
|
|
13
13
|
cognitiveLoad: z.number().optional(),
|
|
14
14
|
attentionEconomics: z.string().optional(),
|
|
@@ -36,7 +36,8 @@ var RegistryIndexSchema = z.object({
|
|
|
36
36
|
components: z.array(z.string()),
|
|
37
37
|
primitives: z.array(z.string()),
|
|
38
38
|
composites: z.array(z.string()).default([]),
|
|
39
|
-
rules: z.array(z.string()).default([])
|
|
39
|
+
rules: z.array(z.string()).default([]),
|
|
40
|
+
substrate: z.array(z.string()).default([])
|
|
40
41
|
});
|
|
41
42
|
export {
|
|
42
43
|
RegistryFileSchema,
|
package/package.json
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rafters",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.72",
|
|
4
4
|
"description": "Design Intelligence CLI. Scaffold tokens, import existing shadcn/Tailwind v4 sources, add components, and serve an MCP server so AI agents read decisions instead of guessing.",
|
|
5
5
|
"homepage": "https://rafters.studio",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/rafters-studio/rafters.git",
|
|
10
|
+
"directory": "packages/cli"
|
|
11
|
+
},
|
|
8
12
|
"bin": {
|
|
9
13
|
"rafters": "./dist/index.js"
|
|
10
14
|
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"LICENSE"
|
|
18
|
+
],
|
|
19
|
+
"type": "module",
|
|
11
20
|
"exports": {
|
|
12
21
|
".": "./dist/index.js",
|
|
13
22
|
"./registry/types": {
|
|
@@ -15,10 +24,9 @@
|
|
|
15
24
|
"import": "./dist/registry/types.js"
|
|
16
25
|
}
|
|
17
26
|
},
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
],
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
22
30
|
"scripts": {
|
|
23
31
|
"build": "tsup",
|
|
24
32
|
"dev": "tsup --watch",
|
|
@@ -34,6 +42,7 @@
|
|
|
34
42
|
"@antfu/ni": "^28.1.0",
|
|
35
43
|
"@inquirer/prompts": "^8.2.0",
|
|
36
44
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
45
|
+
"@tailwindcss/cli": "^4.1.18",
|
|
37
46
|
"commander": "^13.0.0",
|
|
38
47
|
"css-tree": "^3.2.1",
|
|
39
48
|
"execa": "^9.6.1",
|
|
@@ -56,13 +65,5 @@
|
|
|
56
65
|
"typescript": "catalog:",
|
|
57
66
|
"vitest": "catalog:",
|
|
58
67
|
"zocker": "catalog:"
|
|
59
|
-
},
|
|
60
|
-
"repository": {
|
|
61
|
-
"type": "git",
|
|
62
|
-
"url": "git+https://github.com/rafters-studio/rafters.git",
|
|
63
|
-
"directory": "packages/cli"
|
|
64
|
-
},
|
|
65
|
-
"publishConfig": {
|
|
66
|
-
"access": "public"
|
|
67
68
|
}
|
|
68
69
|
}
|