eve-hub 0.6.45 → 0.6.46
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/team.d.mts +1 -1
- package/team.mjs +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eve-hub",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.46",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Bot-side code shared by every hub agent: registry tools, the roster hook, the eve channel, the host sandbox and browser, and model helpers.",
|
|
6
6
|
"type": "module",
|
package/team.d.mts
CHANGED
|
@@ -19,6 +19,6 @@ export const EDGE_KINDS: readonly [string, ...string[]];
|
|
|
19
19
|
export const SECTIONS: readonly { id: string; edge: { kind: string; from: unknown; to: unknown }; text: string }[];
|
|
20
20
|
export const SECTIONS_HASH: string;
|
|
21
21
|
export function teamEdges(nodes: readonly TeamNode[]): TeamEdge[];
|
|
22
|
-
export function teamModel(input: { agents: readonly TeamAgent[]; humans?: readonly { name: string; color?: string }[]; tools?: Record<string, readonly string[] | null | undefined> }): TeamModel;
|
|
22
|
+
export function teamModel(input: { agents: readonly TeamAgent[]; humans?: readonly { name: string; label?: string; color?: string }[]; tools?: Record<string, readonly string[] | null | undefined> }): TeamModel;
|
|
23
23
|
export function teamText(model: TeamModel): string;
|
|
24
24
|
export function teamRecall(history: readonly unknown[], fetchTeam: (since?: string) => Promise<TeamModel | null>): Promise<{ messages: { id: string; content: string }[] }>;
|
package/team.mjs
CHANGED
|
@@ -53,7 +53,7 @@ export function teamEdges(nodes) {
|
|
|
53
53
|
// name -> the tool names its eve reports, absent or null when not reported.
|
|
54
54
|
export function teamModel({ agents, humans = [], tools = {} }) {
|
|
55
55
|
const nodes = [
|
|
56
|
-
...humans.map((h) => ({ id: h.name, kind: "human", label: h.name, ...(h.color ? { color: h.color } : {}) })),
|
|
56
|
+
...humans.map((h) => ({ id: h.name, kind: "human", label: h.label ?? h.name, ...(h.color ? { color: h.color } : {}) })),
|
|
57
57
|
...agents.map((a) => ({
|
|
58
58
|
id: a.name,
|
|
59
59
|
kind: a.kind ?? "other",
|