@springbrand/message-panel 0.1.3-alpha.27 → 0.1.3-alpha.28

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.
@@ -1,7 +1,7 @@
1
1
  import { Diamond, X } from "@phosphor-icons/react";
2
2
 
3
3
  export interface CapabilityChipProps {
4
- kind: "skill" | "plan";
4
+ kind: "skill" | "tool" | "plan";
5
5
  label: string;
6
6
  removable?: boolean;
7
7
  onRemove?: () => void;
@@ -35,7 +35,7 @@ export interface CloudOsMessageMetadata extends UnknownRecord {
35
35
  }
36
36
 
37
37
  export interface CloudOsRequestedCapability {
38
- kind: "skill" | "plan";
38
+ kind: "skill" | "tool" | "plan";
39
39
  name: string;
40
40
  label: string;
41
41
  }
@@ -186,7 +186,7 @@ export function requestedCapabilitiesOf(
186
186
  return metadata.requestedCapabilities.flatMap((value) => {
187
187
  const capability = recordOf(value);
188
188
  if (
189
- (capability.kind !== "skill" && capability.kind !== "plan") ||
189
+ (capability.kind !== "skill" && capability.kind !== "tool" && capability.kind !== "plan") ||
190
190
  typeof capability.name !== "string" ||
191
191
  !capability.name.trim() ||
192
192
  typeof capability.label !== "string" ||
@@ -64,7 +64,7 @@ export interface CloudOsComposerCommand {
64
64
  }
65
65
 
66
66
  export interface CloudOsCapabilityView {
67
- kind: "skill" | "plan";
67
+ kind: "skill" | "tool" | "plan";
68
68
  name: string;
69
69
  label: string;
70
70
  }
@@ -532,8 +532,12 @@
532
532
  font-weight: 600;
533
533
  }
534
534
  .cos-markdown img {
535
- max-width: 100%;
535
+ max-width: min(100%, 16rem);
536
+ max-height: 13rem;
537
+ width: auto;
536
538
  height: auto;
539
+ border-radius: 0.75rem;
540
+ object-fit: contain;
537
541
  }
538
542
 
539
543
  /* ── 输入框容器(container query 决定「添加资源」标签是否显示)─────────────── */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springbrand/message-panel",
3
- "version": "0.1.3-alpha.27",
3
+ "version": "0.1.3-alpha.28",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src",