@ycodium-ai/plugin-api 0.2.6153 → 0.2.6182

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 +1 @@
1
- {"version":3,"file":"dataPorts.gen.js","sourceRoot":"","sources":["source/dataPorts.gen.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,+CAA+C;AAgvB/C,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC;AACpD,MAAM,CAAC,MAAM,6BAA6B,GAAG,KAAK,CAAC;AACnD,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC;AAClC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAC7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AACnC,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,CAAC;AAChD,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAC"}
1
+ {"version":3,"file":"dataPorts.gen.js","sourceRoot":"","sources":["source/dataPorts.gen.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,+CAA+C;AAkwB/C,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC;AACpD,MAAM,CAAC,MAAM,6BAA6B,GAAG,KAAK,CAAC;AACnD,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC;AAClC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAC7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AACnC,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,CAAC;AAChD,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAC"}
@@ -1,9 +1,14 @@
1
1
  export type SessionContextSummaryToolkit = "board" | "memory" | "messages";
2
2
 
3
+ export type SessionOverviewStatus =
4
+ | { readonly mode: "full" | "guide"; readonly revision: number }
5
+ | { readonly mode: "unknown" | "empty" | "disabled" };
6
+
3
7
  export interface SessionContextSummaryInput {
4
8
  readonly enabledToolkits: ReadonlyArray<SessionContextSummaryToolkit>;
5
9
  readonly onDemandHiddenCount?: number | null | undefined;
6
10
  readonly activeSkillCount: number;
11
+ readonly overview?: SessionOverviewStatus;
7
12
  readonly handbookRelease?: string | null | undefined;
8
13
  readonly inContextExperienceCount: number;
9
14
  }
@@ -22,7 +27,13 @@ export type SessionContextSummaryTranslateFn = (
22
27
  | "contextWindow.memory"
23
28
  | "contextWindow.memorySummary"
24
29
  | "contextWindow.experiencesCount"
25
- | "contextWindow.memoryEmpty",
30
+ | "contextWindow.memoryEmpty"
31
+ | "contextWindow.overview"
32
+ | "contextWindow.overviewFull"
33
+ | "contextWindow.overviewGuide"
34
+ | "contextWindow.overviewUnknown"
35
+ | "contextWindow.overviewEmpty"
36
+ | "contextWindow.overviewDisabled",
26
37
  options?: Record<string, unknown>,
27
38
  ) => string;
28
39
 
@@ -72,6 +83,18 @@ function formatSessionMemoryValue(
72
83
  t: SessionContextSummaryTranslateFn,
73
84
  summary: SessionContextSummaryInput,
74
85
  ): string {
86
+ switch (summary.overview?.mode) {
87
+ case "full":
88
+ return t("contextWindow.overviewFull", { revision: summary.overview.revision });
89
+ case "guide":
90
+ return t("contextWindow.overviewGuide");
91
+ case "empty":
92
+ return t("contextWindow.overviewEmpty");
93
+ case "disabled":
94
+ return t("contextWindow.overviewDisabled");
95
+ case "unknown":
96
+ return t("contextWindow.overviewUnknown");
97
+ }
75
98
  const { handbookRelease, inContextExperienceCount } = summary;
76
99
  const hasRelease = typeof handbookRelease === "string" && handbookRelease.length > 0;
77
100
  const hasExperiences = inContextExperienceCount > 0;
@@ -109,7 +132,7 @@ export function formatSessionContextSummaryRows(
109
132
  },
110
133
  {
111
134
  key: "memory",
112
- label: t("contextWindow.memory"),
135
+ label: t(summary.overview === undefined ? "contextWindow.memory" : "contextWindow.overview"),
113
136
  value: formatSessionMemoryValue(t, summary),
114
137
  },
115
138
  ];
@@ -1,4 +1,5 @@
1
1
  import type { ConversationComposerApi, ConversationComposerPending } from "./conversation.ts";
2
+ import type { ConversationQuestions } from "./conversationHostModels.ts";
2
3
 
3
4
  // 会话插件对宿主暴露的嵌入视图:视图 id、plugin id 与宿主注入的保留字段。
4
5
  // 经 `@ycodium-ai/plugin-api/conversation` 导出,不单独成子路径。
@@ -45,5 +46,6 @@ export interface ConversationPendingRequestsViewProps {
45
46
  readonly threadId: string;
46
47
  /** 这条会话的待处理项与回答它们的命令。 */
47
48
  readonly pending: ConversationComposerPending;
49
+ readonly asyncQuestions?: ConversationQuestions;
48
50
  readonly api: ConversationComposerApi;
49
51
  }
@@ -492,6 +492,9 @@ export interface ConversationSessionContextSummary {
492
492
  readonly enabledToolkits: readonly ConversationSessionToolkit[];
493
493
  readonly onDemandHiddenCount?: number | null | undefined;
494
494
  readonly activeSkillCount: number;
495
+ readonly overview?:
496
+ | { readonly mode: "full" | "guide"; readonly revision: number }
497
+ | { readonly mode: "unknown" | "empty" | "disabled" };
495
498
  readonly handbookRelease: string | null;
496
499
  readonly inContextExperienceCount: number;
497
500
  }