@eworkbase/plugin-ai-rules 0.4.3 → 0.8.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/dist/plugin.mjs +10038 -260
- package/dist/ui/main.js +39 -38
- package/dist/ui/style.css +35 -21
- package/package.json +4 -3
package/dist/ui/style.css
CHANGED
|
@@ -2536,14 +2536,48 @@
|
|
|
2536
2536
|
outline-offset: -2px;
|
|
2537
2537
|
}
|
|
2538
2538
|
|
|
2539
|
+
.workbase-error-header {
|
|
2540
|
+
justify-content: space-between;
|
|
2541
|
+
align-items: baseline;
|
|
2542
|
+
gap: 12px;
|
|
2543
|
+
display: flex;
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2539
2546
|
.workbase-plugin-error .workbase-error-title {
|
|
2540
2547
|
color: var(--color-danger);
|
|
2541
|
-
margin: 0
|
|
2548
|
+
margin: 0;
|
|
2542
2549
|
font-size: 14px;
|
|
2543
2550
|
font-weight: 600;
|
|
2544
2551
|
line-height: 1.5;
|
|
2545
2552
|
}
|
|
2546
2553
|
|
|
2554
|
+
.workbase-error-toggle {
|
|
2555
|
+
min-height: 24px;
|
|
2556
|
+
color: var(--color-muted);
|
|
2557
|
+
font: inherit;
|
|
2558
|
+
cursor: pointer;
|
|
2559
|
+
background: none;
|
|
2560
|
+
border: 0;
|
|
2561
|
+
border-radius: 4px;
|
|
2562
|
+
flex: none;
|
|
2563
|
+
padding: 0 4px;
|
|
2564
|
+
font-size: 12px;
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
.workbase-error-toggle:hover {
|
|
2568
|
+
color: var(--color-foreground);
|
|
2569
|
+
text-decoration: underline;
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
.workbase-error-toggle:focus-visible {
|
|
2573
|
+
outline: 2px solid var(--color-accent);
|
|
2574
|
+
outline-offset: 2px;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
.workbase-error-header + .workbase-error-cause {
|
|
2578
|
+
margin-top: 8px;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2547
2581
|
.workbase-plugin-error .workbase-error-cause {
|
|
2548
2582
|
color: var(--color-foreground);
|
|
2549
2583
|
white-space: pre-wrap;
|
|
@@ -6656,26 +6690,6 @@
|
|
|
6656
6690
|
padding-left: 20px;
|
|
6657
6691
|
}
|
|
6658
6692
|
|
|
6659
|
-
.resource-publication-notice {
|
|
6660
|
-
color: var(--color-warning);
|
|
6661
|
-
font-size: var(--workbase-type-meta);
|
|
6662
|
-
overflow-wrap: anywhere;
|
|
6663
|
-
margin: 0 0 8px;
|
|
6664
|
-
line-height: 1.6;
|
|
6665
|
-
}
|
|
6666
|
-
|
|
6667
|
-
.configuration-list .resource-publication-notice {
|
|
6668
|
-
color: var(--color-muted);
|
|
6669
|
-
margin: 8px 4px 0;
|
|
6670
|
-
}
|
|
6671
|
-
|
|
6672
|
-
@media (width <= 560px) {
|
|
6673
|
-
.configuration-list .resource-publication-notice {
|
|
6674
|
-
grid-column: 1 / -1;
|
|
6675
|
-
margin: 0;
|
|
6676
|
-
}
|
|
6677
|
-
}
|
|
6678
|
-
|
|
6679
6693
|
.configuration-row .resource-publication {
|
|
6680
6694
|
justify-self: start;
|
|
6681
6695
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eworkbase/plugin-ai-rules",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"workbase": {
|
|
6
6
|
"id": "ai-rules",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"description": "统一维护团队的规则、技能、命令与 MCP 配置,并生成 Codex、Claude Code 等客户端文件。支持初始化、预览生成结果、检查配置、同步规则和更新规则来源。",
|
|
19
19
|
"apiVersion": 2,
|
|
20
|
-
"workbaseVersion": "^0.
|
|
20
|
+
"workbaseVersion": "^0.8.1"
|
|
21
21
|
},
|
|
22
22
|
"exports": "./dist/plugin.mjs",
|
|
23
23
|
"engines": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@types/node": "^24.0.3",
|
|
31
31
|
"@types/react": "^19.1.8",
|
|
32
32
|
"@types/react-dom": "^19.1.6",
|
|
33
|
+
"micromark": "4.0.2",
|
|
33
34
|
"jsonc-parser": "^3.3.1",
|
|
34
35
|
"react": "^19.1.0",
|
|
35
36
|
"react-dom": "^19.1.0",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"typescript": "^5.8.3",
|
|
41
42
|
"yaml": "^2.8.1",
|
|
42
43
|
"lucide-react": "^1.21.0",
|
|
43
|
-
"@eworkbase/sdk": "0.
|
|
44
|
+
"@eworkbase/sdk": "0.8.1"
|
|
44
45
|
},
|
|
45
46
|
"publishConfig": {
|
|
46
47
|
"access": "public"
|