@eworkbase/plugin-ai-rules 0.4.0 → 0.4.2

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
@@ -2593,10 +2593,6 @@
2593
2593
  line-height: 1.7;
2594
2594
  }
2595
2595
 
2596
- .workbase-execution-log[data-display="full"] {
2597
- max-width: calc(75ch + 100px);
2598
- }
2599
-
2600
2596
  .workbase-log-entries {
2601
2597
  margin: 0;
2602
2598
  padding: 0;
@@ -2604,49 +2600,21 @@
2604
2600
  }
2605
2601
 
2606
2602
  .workbase-log-entry {
2607
- grid-template-columns: 72px minmax(0, 1fr);
2608
- gap: 28px;
2609
2603
  min-width: 0;
2610
- padding: 0 0 20px;
2611
- scroll-margin-top: 24px;
2612
- display: grid;
2613
- position: relative;
2614
- }
2615
-
2616
- .workbase-log-entry:last-child {
2617
- padding-bottom: 0;
2604
+ padding: 20px 0;
2605
+ scroll-margin-top: 20px;
2618
2606
  }
2619
2607
 
2620
- .workbase-log-entry:before {
2621
- content: "";
2622
- border: 1px solid var(--color-border-strong);
2623
- background: var(--color-surface);
2624
- border-radius: 50%;
2625
- width: 7px;
2626
- height: 7px;
2627
- position: absolute;
2628
- top: 9px;
2629
- left: 84px;
2630
- }
2631
-
2632
- .workbase-log-entry:not(:last-child):after {
2633
- content: "";
2634
- background: var(--color-border);
2635
- width: 1px;
2636
- position: absolute;
2637
- top: 20px;
2638
- bottom: 2px;
2639
- left: 87px;
2608
+ .workbase-log-entry + .workbase-log-entry {
2609
+ border-top: 1px solid var(--color-border);
2640
2610
  }
2641
2611
 
2642
- .workbase-log-entry[data-status="failed"]:before {
2643
- border-color: var(--color-danger);
2644
- background: var(--color-danger);
2612
+ .workbase-log-entry:first-child {
2613
+ padding-top: 0;
2645
2614
  }
2646
2615
 
2647
- .workbase-log-entry[data-status="pending"]:before {
2648
- border-color: var(--color-warning);
2649
- background: var(--color-brand-weak);
2616
+ .workbase-log-entry:last-child {
2617
+ padding-bottom: 0;
2650
2618
  }
2651
2619
 
2652
2620
  .workbase-log-entry:focus-visible {
@@ -2654,18 +2622,7 @@
2654
2622
  outline-offset: 4px;
2655
2623
  }
2656
2624
 
2657
- .workbase-log-time {
2658
- color: var(--color-muted);
2659
- font-variant-numeric: tabular-nums;
2660
- text-align: right;
2661
- white-space: nowrap;
2662
- grid-area: 1 / 1;
2663
- padding-top: 2px;
2664
- font-size: 12px;
2665
- }
2666
-
2667
2625
  .workbase-log-body {
2668
- grid-area: 1 / 2;
2669
2626
  min-width: 0;
2670
2627
  position: relative;
2671
2628
  }
@@ -2673,36 +2630,31 @@
2673
2630
  .workbase-log-heading {
2674
2631
  flex-wrap: wrap;
2675
2632
  align-items: baseline;
2676
- gap: 4px 12px;
2677
- min-height: 24px;
2678
- margin-bottom: 8px;
2633
+ gap: 4px 10px;
2634
+ margin-bottom: 10px;
2679
2635
  display: flex;
2680
2636
  }
2681
2637
 
2682
2638
  .workbase-log-heading strong {
2683
2639
  overflow-wrap: anywhere;
2684
- flex: 1;
2685
2640
  min-width: 0;
2686
2641
  font-size: 14px;
2687
2642
  font-weight: 600;
2688
2643
  }
2689
2644
 
2690
- .workbase-log-kind, .workbase-log-status, .workbase-log-note {
2645
+ .workbase-log-kind, .workbase-log-status, .workbase-log-note, .workbase-log-time {
2691
2646
  color: var(--color-muted);
2692
2647
  font-size: 12px;
2693
2648
  }
2694
2649
 
2695
- .workbase-log-status {
2650
+ .workbase-log-time {
2651
+ font-variant-numeric: tabular-nums;
2696
2652
  white-space: nowrap;
2697
2653
  margin-left: auto;
2698
2654
  }
2699
2655
 
2700
- .workbase-execution-log[data-display="full"] .workbase-log-heading strong {
2701
- flex: 0 auto;
2702
- }
2703
-
2704
- .workbase-execution-log[data-display="full"] .workbase-log-status {
2705
- margin-left: 0;
2656
+ .workbase-log-status {
2657
+ white-space: nowrap;
2706
2658
  }
2707
2659
 
2708
2660
  .workbase-log-status[data-status="failed"], .workbase-log-error {
@@ -2713,7 +2665,11 @@
2713
2665
  color: var(--color-success);
2714
2666
  }
2715
2667
 
2716
- .workbase-log-status:is([data-status="needs_action"], [data-status="warning"]), .workbase-log-status:is([data-status="pending"], [data-status="invalid"]) {
2668
+ .workbase-log-status[data-status="in_progress"] {
2669
+ color: var(--color-accent);
2670
+ }
2671
+
2672
+ .workbase-log-status:is([data-status="needs_action"], [data-status="warning"], [data-status="pending"]) {
2717
2673
  color: var(--color-warning);
2718
2674
  }
2719
2675
 
@@ -2733,6 +2689,7 @@
2733
2689
  .workbase-log-content :is(h1, h2, h3, h4) {
2734
2690
  margin-block: 20px 8px;
2735
2691
  font-size: 1em;
2692
+ font-weight: 600;
2736
2693
  line-height: 1.5;
2737
2694
  }
2738
2695
 
@@ -2758,17 +2715,21 @@
2758
2715
  text-decoration: underline;
2759
2716
  }
2760
2717
 
2761
- .workbase-log-content pre, .workbase-log-details pre, .workbase-log-raw {
2762
- background: var(--color-surface-muted);
2718
+ .workbase-log-content pre, .workbase-log-stream pre, .workbase-log-toolbar pre {
2763
2719
  white-space: pre-wrap;
2764
2720
  overflow-wrap: anywhere;
2765
- scrollbar-color: var(--color-border-strong) transparent;
2766
- scrollbar-width: thin;
2721
+ tab-size: 2;
2767
2722
  max-width: 100%;
2768
- max-height: 360px;
2769
- padding: 12px;
2770
- font-size: 12px;
2771
- overflow: auto;
2723
+ margin: 0;
2724
+ padding: 12px 16px;
2725
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
2726
+ font-size: 13px;
2727
+ line-height: 1.7;
2728
+ }
2729
+
2730
+ .workbase-log-content pre {
2731
+ background: var(--color-surface-muted);
2732
+ margin-block: 12px;
2772
2733
  }
2773
2734
 
2774
2735
  .workbase-log-content table {
@@ -2782,62 +2743,80 @@
2782
2743
  padding: 6px 10px;
2783
2744
  }
2784
2745
 
2785
- .workbase-log-details {
2786
- margin-top: 10px;
2746
+ .workbase-log-entry:is([data-kind="question"], [data-kind="answer"]) .workbase-log-body {
2747
+ background: var(--color-surface-muted);
2748
+ padding: 12px 16px;
2787
2749
  }
2788
2750
 
2789
- .workbase-log-details summary {
2790
- cursor: pointer;
2791
- width: fit-content;
2792
- color: var(--color-muted);
2793
- font-size: 12px;
2751
+ .workbase-log-kind {
2752
+ color: var(--color-brand);
2753
+ font-weight: 600;
2794
2754
  }
2795
2755
 
2796
- .workbase-log-operation > summary {
2797
- cursor: pointer;
2798
- border-radius: 4px;
2756
+ .workbase-log-terminal {
2757
+ background: var(--color-surface-muted);
2758
+ min-width: 0;
2759
+ margin-top: 12px;
2760
+ }
2761
+
2762
+ .workbase-log-toolbar {
2763
+ border-bottom: 1px solid var(--color-border);
2764
+ min-height: 36px;
2765
+ color: var(--color-muted);
2766
+ flex-wrap: wrap;
2799
2767
  align-items: center;
2800
- gap: 12px;
2801
- min-height: 28px;
2802
- list-style: none;
2768
+ gap: 4px 12px;
2769
+ padding: 2px 16px;
2770
+ font-size: 12px;
2803
2771
  display: flex;
2804
2772
  }
2805
2773
 
2806
- .workbase-log-operation > summary::-webkit-details-marker {
2807
- display: none;
2774
+ .workbase-log-toolbar pre {
2775
+ min-width: 0;
2776
+ color: var(--color-foreground);
2777
+ flex: 1;
2778
+ padding: 8px 0;
2779
+ font-weight: 600;
2808
2780
  }
2809
2781
 
2810
- .workbase-log-operation .workbase-log-heading {
2811
- flex: 1;
2812
- margin: 0;
2782
+ .workbase-log-copy {
2783
+ margin-left: auto;
2813
2784
  }
2814
2785
 
2815
- .workbase-log-operation[open] > summary {
2816
- margin-bottom: 12px;
2786
+ .workbase-log-toolbar button {
2787
+ min-height: 32px;
2788
+ color: var(--color-brand);
2789
+ font: inherit;
2790
+ cursor: pointer;
2791
+ background: none;
2792
+ border: 0;
2793
+ padding: 4px 0;
2817
2794
  }
2818
2795
 
2819
- .workbase-log-chevron {
2820
- width: 6px;
2821
- height: 6px;
2822
- color: var(--color-muted);
2823
- border-bottom: 1px solid;
2824
- border-right: 1px solid;
2825
- flex-shrink: 0;
2826
- margin-right: 4px;
2827
- transform: rotate(-45deg);
2796
+ .workbase-log-toolbar button:hover, .workbase-log-link:hover {
2797
+ color: var(--color-brand-deep);
2798
+ text-underline-offset: 3px;
2799
+ text-decoration: underline;
2828
2800
  }
2829
2801
 
2830
- .workbase-log-operation[open] > summary .workbase-log-chevron {
2831
- transform: rotate(45deg);
2802
+ .workbase-log-stream[data-stream="error"] {
2803
+ color: var(--color-danger);
2832
2804
  }
2833
2805
 
2834
- .workbase-log-operation summary:hover {
2835
- color: var(--color-brand);
2806
+ .workbase-log-stream-label {
2807
+ padding: 10px 16px 0;
2808
+ font-size: 12px;
2809
+ font-weight: 600;
2810
+ display: block;
2836
2811
  }
2837
2812
 
2838
- .workbase-execution-log summary:focus-visible {
2839
- outline: 2px solid var(--color-accent);
2840
- outline-offset: 4px;
2813
+ .workbase-log-stream-label + pre {
2814
+ padding-top: 4px;
2815
+ }
2816
+
2817
+ .workbase-log-prompt {
2818
+ color: var(--color-muted);
2819
+ user-select: none;
2841
2820
  }
2842
2821
 
2843
2822
  .workbase-execution-log ::selection {
@@ -2850,35 +2829,7 @@
2850
2829
  top: 0;
2851
2830
  }
2852
2831
 
2853
- .workbase-log-calls {
2854
- margin: 12px 0;
2855
- padding: 0;
2856
- list-style: none;
2857
- }
2858
-
2859
- .workbase-log-calls > li {
2860
- grid-template-columns: minmax(0, 1fr) max-content max-content;
2861
- align-items: center;
2862
- gap: 4px 16px;
2863
- padding-block: 8px;
2864
- font-size: 13px;
2865
- display: grid;
2866
- }
2867
-
2868
- .workbase-log-calls > li + li {
2869
- border-top: 1px solid var(--color-border);
2870
- }
2871
-
2872
- .workbase-log-calls > li > span:first-child {
2873
- overflow-wrap: anywhere;
2874
- min-width: 0;
2875
- }
2876
-
2877
- .workbase-log-calls .workbase-log-note {
2878
- white-space: nowrap;
2879
- }
2880
-
2881
- .workbase-log-link, .workbase-log-copy button {
2832
+ .workbase-log-link {
2882
2833
  min-height: 32px;
2883
2834
  color: var(--color-brand);
2884
2835
  font: inherit;
@@ -2887,22 +2838,10 @@
2887
2838
  background: none;
2888
2839
  border: 0;
2889
2840
  padding: 4px 0;
2841
+ font-size: 13px;
2890
2842
  text-decoration: underline;
2891
2843
  }
2892
2844
 
2893
- .workbase-log-calls .workbase-log-link {
2894
- white-space: nowrap;
2895
- justify-self: end;
2896
- }
2897
-
2898
- .workbase-log-copy {
2899
- color: var(--color-muted);
2900
- align-items: center;
2901
- gap: 12px;
2902
- font-size: 12px;
2903
- display: flex;
2904
- }
2905
-
2906
2845
  .workbase-log-follow {
2907
2846
  justify-content: center;
2908
2847
  padding-top: 8px;
@@ -2912,7 +2851,7 @@
2912
2851
  .workbase-log-latest {
2913
2852
  border: 1px solid var(--color-border-strong);
2914
2853
  background: var(--color-surface);
2915
- min-height: 28px;
2854
+ min-height: 32px;
2916
2855
  color: var(--color-foreground);
2917
2856
  font: inherit;
2918
2857
  cursor: pointer;
@@ -2921,6 +2860,10 @@
2921
2860
  font-size: 12px;
2922
2861
  }
2923
2862
 
2863
+ .workbase-log-latest:hover {
2864
+ background: var(--color-surface-muted);
2865
+ }
2866
+
2924
2867
  .workbase-log-latest[data-following="true"] {
2925
2868
  visibility: hidden;
2926
2869
  }
@@ -2934,111 +2877,39 @@
2934
2877
  overscroll-behavior: contain;
2935
2878
  scrollbar-width: thin;
2936
2879
  scrollbar-color: var(--color-border-strong) transparent;
2937
- max-height: 280px;
2938
- padding: 2px 10px 2px 2px;
2880
+ max-height: 400px;
2881
+ padding: 2px 12px 2px 2px;
2939
2882
  overflow: auto;
2940
2883
  }
2941
2884
 
2942
2885
  .workbase-execution-log[data-display="compact"] .workbase-log-entry {
2943
- grid-template-columns: minmax(0, 1fr) auto;
2944
- gap: 12px;
2945
- padding: 0 0 18px 22px;
2886
+ padding-block: 16px;
2946
2887
  }
2947
2888
 
2948
- .workbase-execution-log[data-display="compact"] .workbase-log-entry:before {
2949
- top: 7px;
2950
- left: 2px;
2951
- }
2952
-
2953
- .workbase-execution-log[data-display="compact"] .workbase-log-entry:after {
2954
- top: 18px;
2955
- left: 5px;
2956
- }
2957
-
2958
- .workbase-execution-log[data-display="compact"] .workbase-log-entry[data-status="completed"]:before {
2959
- background: var(--color-success);
2960
- border-color: var(--color-success);
2961
- }
2962
-
2963
- .workbase-execution-log[data-display="compact"] .workbase-log-time {
2964
- grid-area: 1 / 2;
2965
- padding: 0;
2966
- line-height: 20px;
2967
- }
2968
-
2969
- .workbase-execution-log[data-display="compact"] .workbase-log-body {
2970
- grid-area: 1 / 1;
2971
- padding: 0;
2972
- }
2973
-
2974
- .workbase-execution-log[data-display="compact"] .workbase-log-heading {
2975
- min-height: 20px;
2976
- margin: 0;
2977
- }
2978
-
2979
- .workbase-execution-log[data-display="compact"] .workbase-log-heading strong {
2980
- -webkit-line-clamp: 2;
2981
- -webkit-box-orient: vertical;
2982
- font-size: 13px;
2983
- font-weight: 500;
2984
- line-height: 20px;
2985
- display: -webkit-box;
2986
- overflow: hidden;
2987
- }
2988
-
2989
- .workbase-execution-log[data-display="compact"] .workbase-log-status {
2990
- white-space: nowrap;
2991
- flex-shrink: 0;
2992
- font-size: 12px;
2993
- }
2994
-
2995
- .workbase-execution-log[data-display="compact"] .workbase-log-status:not([data-status="failed"], [data-status="needs_action"], [data-status="warning"], [data-status="interrupted"]) {
2996
- clip-path: inset(50%);
2997
- width: 1px;
2998
- height: 1px;
2999
- position: absolute;
3000
- overflow: hidden;
2889
+ .workbase-execution-log[data-display="compact"] .workbase-log-entry:first-child {
2890
+ padding-top: 0;
3001
2891
  }
3002
2892
 
3003
2893
  @media (width <= 600px) {
3004
- .workbase-execution-log[data-display="full"] .workbase-log-entry {
3005
- grid-template-columns: minmax(0, 1fr);
3006
- gap: 4px;
3007
- padding-left: 20px;
2894
+ .workbase-log-heading {
2895
+ gap: 4px 8px;
3008
2896
  }
3009
2897
 
3010
- .workbase-execution-log[data-display="full"] .workbase-log-time {
3011
- text-align: left;
3012
- grid-area: 1 / 1;
2898
+ .workbase-log-heading strong {
2899
+ flex: 1;
3013
2900
  }
3014
2901
 
3015
- .workbase-execution-log[data-display="full"] .workbase-log-body {
3016
- grid-area: 2 / 1;
2902
+ .workbase-log-heading .workbase-log-note {
2903
+ flex-basis: 100%;
2904
+ order: 1;
3017
2905
  }
3018
2906
 
3019
- .workbase-execution-log[data-display="full"] .workbase-log-entry:before {
3020
- top: 9px;
3021
- left: 0;
2907
+ .workbase-log-content pre, .workbase-log-stream pre, .workbase-log-toolbar {
2908
+ padding-inline: 12px;
3022
2909
  }
3023
2910
 
3024
- .workbase-execution-log[data-display="full"] .workbase-log-entry:not(:last-child):after {
3025
- left: 3px;
3026
- }
3027
-
3028
- .workbase-log-calls > li {
3029
- grid-template-columns: minmax(0, 1fr) auto;
3030
- }
3031
-
3032
- .workbase-log-calls > li > span:first-child {
3033
- grid-column: 1 / -1;
3034
- }
3035
-
3036
- .workbase-log-calls .workbase-log-link {
3037
- grid-column: 2;
3038
- }
3039
-
3040
- .workbase-log-kind {
3041
- margin-left: 0;
2911
+ .workbase-log-stream-label {
2912
+ padding-left: 12px;
3042
2913
  }
3043
2914
  }
3044
2915
 
@@ -6342,6 +6213,50 @@
6342
6213
  display: flex;
6343
6214
  }
6344
6215
 
6216
+ .sync-conflict-recovery {
6217
+ gap: 12px;
6218
+ width: 100%;
6219
+ display: grid;
6220
+ }
6221
+
6222
+ .sync-conflict-files {
6223
+ overflow-wrap: anywhere;
6224
+ margin: 0;
6225
+ padding-left: 20px;
6226
+ }
6227
+
6228
+ .resource-publication-notice {
6229
+ color: var(--color-muted);
6230
+ overflow-wrap: anywhere;
6231
+ margin: 0;
6232
+ font-size: 12px;
6233
+ line-height: 1.6;
6234
+ }
6235
+
6236
+ .configuration-row .resource-publication {
6237
+ justify-self: start;
6238
+ align-items: center;
6239
+ gap: 5px;
6240
+ font-weight: 500;
6241
+ display: inline-flex;
6242
+ }
6243
+
6244
+ .resource-publication:before {
6245
+ content: "";
6246
+ background: currentColor;
6247
+ border-radius: 50%;
6248
+ width: 5px;
6249
+ height: 5px;
6250
+ }
6251
+
6252
+ .configuration-row .resource-publication[data-status="synced"] {
6253
+ color: var(--color-success);
6254
+ }
6255
+
6256
+ .configuration-row .resource-publication[data-status="pending"] {
6257
+ color: var(--color-warning);
6258
+ }
6259
+
6345
6260
  @media (width <= 520px) {
6346
6261
  .app-shell {
6347
6262
  gap: 20px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eworkbase/plugin-ai-rules",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "workbase": {
6
6
  "id": "ai-rules",
@@ -16,7 +16,7 @@
16
16
  ],
17
17
  "description": "统一维护团队的规则、技能、命令与 MCP 配置,并生成 Codex、Claude Code 等客户端文件。支持初始化、预览生成结果、检查配置、同步规则和更新规则来源。",
18
18
  "apiVersion": 2,
19
- "workbaseVersion": "^0.7.0"
19
+ "workbaseVersion": "^0.7.3"
20
20
  },
21
21
  "exports": "./dist/plugin.mjs",
22
22
  "engines": {
@@ -38,7 +38,7 @@
38
38
  "tsdown": "0.23.0",
39
39
  "typescript": "^5.8.3",
40
40
  "yaml": "^2.8.1",
41
- "@eworkbase/sdk": "0.4.0"
41
+ "@eworkbase/sdk": "0.4.3"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"