@eworkbase/plugin-ai-rules 0.8.7 → 0.8.9

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/ui/style.css CHANGED
@@ -2469,6 +2469,45 @@
2469
2469
  line-height: 1.55;
2470
2470
  }
2471
2471
 
2472
+ .workbase-plugin-error[data-variant="compact"] {
2473
+ padding: 8px 12px;
2474
+ }
2475
+
2476
+ .workbase-plugin-error[data-variant="compact"] .workbase-error-header {
2477
+ flex-wrap: wrap;
2478
+ gap: 6px 10px;
2479
+ }
2480
+
2481
+ .workbase-error-compact-copy {
2482
+ flex-wrap: wrap;
2483
+ flex: 24ch;
2484
+ align-items: baseline;
2485
+ gap: 2px 10px;
2486
+ min-width: 0;
2487
+ display: flex;
2488
+ }
2489
+
2490
+ .workbase-plugin-error[data-variant="compact"] .workbase-error-title {
2491
+ font-size: var(--workbase-type-meta);
2492
+ flex: 0 auto;
2493
+ }
2494
+
2495
+ .workbase-plugin-error[data-variant="compact"] .workbase-error-cause {
2496
+ min-width: 0;
2497
+ color: var(--color-muted);
2498
+ font-size: var(--workbase-type-meta);
2499
+ flex: 24ch;
2500
+ line-height: 1.45;
2501
+ }
2502
+
2503
+ .workbase-error-compact-actions {
2504
+ flex-wrap: wrap;
2505
+ align-items: center;
2506
+ gap: 6px;
2507
+ margin-inline-start: auto;
2508
+ display: inline-flex;
2509
+ }
2510
+
2472
2511
  .workbase-error-actions, .workbase-inline-error {
2473
2512
  flex-wrap: wrap;
2474
2513
  align-items: center;
@@ -2702,6 +2741,81 @@
2702
2741
  }
2703
2742
  }
2704
2743
 
2744
+ .workbase-publish-button {
2745
+ border: 1px solid color-mix(in srgb, var(--color-brand-gold) 52%, transparent);
2746
+ background: var(--color-primary);
2747
+ min-height: 36px;
2748
+ color: var(--color-primary-foreground);
2749
+ font: inherit;
2750
+ font-size: var(--workbase-type-body);
2751
+ white-space: nowrap;
2752
+ cursor: pointer;
2753
+ border-radius: 8px;
2754
+ justify-content: center;
2755
+ align-items: center;
2756
+ gap: 7px;
2757
+ padding: 6px 12px 6px 13px;
2758
+ font-weight: 600;
2759
+ line-height: 1.25;
2760
+ transition: background-color .14s, box-shadow .14s, transform .14s;
2761
+ display: inline-flex;
2762
+ box-shadow: 0 1px 3px #8a500029;
2763
+ }
2764
+
2765
+ .workbase-publish-button:hover:not(:disabled) {
2766
+ background: var(--color-primary-hover);
2767
+ box-shadow: 0 2px 6px #8a500038;
2768
+ }
2769
+
2770
+ .workbase-publish-button:active:not(:disabled) {
2771
+ transform: translateY(1px);
2772
+ }
2773
+
2774
+ .workbase-publish-button:disabled {
2775
+ opacity: .55;
2776
+ cursor: not-allowed;
2777
+ box-shadow: none;
2778
+ }
2779
+
2780
+ .workbase-publish-button:focus-visible {
2781
+ outline: 2px solid var(--color-accent);
2782
+ outline-offset: 2px;
2783
+ }
2784
+
2785
+ .workbase-publish-icon {
2786
+ flex-shrink: 0;
2787
+ justify-content: center;
2788
+ align-items: center;
2789
+ width: 15px;
2790
+ height: 15px;
2791
+ display: inline-flex;
2792
+ }
2793
+
2794
+ .workbase-publish-icon svg {
2795
+ width: 15px;
2796
+ height: 15px;
2797
+ }
2798
+
2799
+ .workbase-publish-label {
2800
+ min-width: 0;
2801
+ }
2802
+
2803
+ .workbase-publish-count {
2804
+ background: var(--color-brand-deep);
2805
+ min-width: 20px;
2806
+ height: 20px;
2807
+ color: var(--color-brand-weak);
2808
+ font-variant-numeric: tabular-nums;
2809
+ border-radius: 999px;
2810
+ justify-content: center;
2811
+ align-items: center;
2812
+ padding: 0 6px;
2813
+ font-size: 11px;
2814
+ font-weight: 700;
2815
+ line-height: 1;
2816
+ display: inline-flex;
2817
+ }
2818
+
2705
2819
  .workbase-empty-state {
2706
2820
  text-align: center;
2707
2821
  place-content: center;
@@ -3378,8 +3492,12 @@
3378
3492
  background: none;
3379
3493
  border: 0;
3380
3494
  border-radius: 7px;
3495
+ justify-content: center;
3496
+ align-items: center;
3497
+ gap: 6px;
3381
3498
  padding: 4px 13px;
3382
3499
  font-weight: 600;
3500
+ display: inline-flex;
3383
3501
  }
3384
3502
 
3385
3503
  .configuration-page-tabs button:hover {
@@ -3397,6 +3515,15 @@
3397
3515
  outline-offset: 1px;
3398
3516
  }
3399
3517
 
3518
+ .configuration-page-tabs button[data-modified="true"]:after, .configuration-tabs button[data-modified="true"]:after {
3519
+ content: "";
3520
+ background: var(--color-warning);
3521
+ border-radius: 50%;
3522
+ flex-shrink: 0;
3523
+ width: 6px;
3524
+ height: 6px;
3525
+ }
3526
+
3400
3527
  .configuration-manager {
3401
3528
  min-width: 0;
3402
3529
  min-height: 0;
@@ -6710,6 +6837,13 @@
6710
6837
  display: flex;
6711
6838
  }
6712
6839
 
6840
+ .configuration-navigation-actions {
6841
+ flex-shrink: 0;
6842
+ align-items: center;
6843
+ gap: 8px;
6844
+ display: inline-flex;
6845
+ }
6846
+
6713
6847
  .rules-sync-sections:not([hidden]) {
6714
6848
  align-content: start;
6715
6849
  gap: var(--workbase-panel-gap);
@@ -7118,8 +7252,6 @@
7118
7252
  }
7119
7253
 
7120
7254
  .rules-refresh.mantine-Button-root {
7121
- grid-column: 3;
7122
- justify-self: end;
7123
7255
  width: 30px;
7124
7256
  padding: 0;
7125
7257
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eworkbase/plugin-ai-rules",
3
- "version": "0.8.7",
3
+ "version": "0.8.9",
4
4
  "type": "module",
5
5
  "workbase": {
6
6
  "id": "ai-rules",
@@ -18,7 +18,7 @@
18
18
  "description": "统一维护团队的规则、技能、命令与 MCP 配置,并生成 Codex、Claude Code、Antigravity 等客户端文件。支持初始化、预览生成结果、检查配置、同步规则和更新规则来源。",
19
19
  "apiVersion": 2,
20
20
  "minimumPluginVersion": "0.2.1",
21
- "workbaseVersion": "^0.8.7"
21
+ "workbaseVersion": "^0.8.9"
22
22
  },
23
23
  "exports": "./dist/plugin.mjs",
24
24
  "engines": {
@@ -42,7 +42,7 @@
42
42
  "typescript": "^5.8.3",
43
43
  "yaml": "^2.8.1",
44
44
  "lucide-react": "^1.21.0",
45
- "@eworkbase/sdk": "0.8.6"
45
+ "@eworkbase/sdk": "0.8.7"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"