@aintela/chat 0.5.2 → 0.6.0
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/README.md +3 -3
- package/dist/Memory-BUnmYGNv.js +37 -0
- package/dist/Memory-BUnmYGNv.js.map +1 -0
- package/dist/components.js +4855 -4618
- package/dist/components.js.map +1 -1
- package/dist/detachedRunModel-1ii9qGTW.js +50 -0
- package/dist/detachedRunModel-1ii9qGTW.js.map +1 -0
- package/dist/hooks.js +1 -1
- package/dist/{httpArtifactService-EEhF_mp9.js → httpArtifactService-DYQDPVVH.js} +61 -61
- package/dist/httpArtifactService-DYQDPVVH.js.map +1 -0
- package/dist/{httpSessionService-wBby4ggl.js → httpSessionService-BY7JeW8d.js} +2 -2
- package/dist/{httpSessionService-wBby4ggl.js.map → httpSessionService-BY7JeW8d.js.map} +1 -1
- package/dist/index.js +252 -246
- package/dist/models.js +35 -34
- package/dist/{serializer-CC-nM3ig.js → serializer-BNsp8xs2.js} +161 -161
- package/dist/serializer-BNsp8xs2.js.map +1 -0
- package/dist/services.js +2 -2
- package/dist/src/components/AiChat/ChatPane/parts/uiToolRegistry.d.ts +1 -1
- package/dist/src/components/AiChat/ChatPane/verbosity.d.ts +8 -1
- package/dist/src/components/AiChat/ChatPane/verbosityContentTools.test.d.ts +1 -0
- package/dist/src/components/AiChat/index.d.ts +1 -1
- package/dist/src/components/AiChat/stateConfiguration.d.ts +5 -5
- package/dist/src/components/index.d.ts +2 -2
- package/dist/src/components/v2/{SubAgentBoxV2.d.ts → DetachedRunBoxV2.d.ts} +6 -6
- package/dist/src/components/v2/DetachedRunTaskBox.d.ts +43 -0
- package/dist/src/components/v2/DetachedRunTaskBox.test.d.ts +1 -0
- package/dist/src/components/v2/index.d.ts +4 -2
- package/dist/src/components/v2/toolCategories.d.ts +1 -1
- package/dist/src/models/ServerEvent.d.ts +3 -3
- package/dist/src/models/detachedRunModel.d.ts +48 -0
- package/dist/src/models/detachedRunModel.test.d.ts +1 -0
- package/dist/src/models/index.d.ts +2 -2
- package/dist/src/models/semanticKernelModel/models.d.ts +5 -5
- package/dist/src/services/WebSocketConnection/streamStats.d.ts +2 -2
- package/dist/src/services/servers/AgentGatewayWSAsync.d.ts +5 -5
- package/dist/src/services/wire/decodeFrame.d.ts +1 -1
- package/dist/tests/fixtures.d.ts +8 -8
- package/dist/{useChatSessions-C6sYF4U6.js → useChatSessions-Q41Jmr6P.js} +2 -2
- package/dist/{useChatSessions-C6sYF4U6.js.map → useChatSessions-Q41Jmr6P.js.map} +1 -1
- package/package.json +1 -1
- package/dist/ClientMessage-DUby3KyC.js +0 -34
- package/dist/ClientMessage-DUby3KyC.js.map +0 -1
- package/dist/Memory-CjrYSkzB.js +0 -47
- package/dist/Memory-CjrYSkzB.js.map +0 -1
- package/dist/httpArtifactService-EEhF_mp9.js.map +0 -1
- package/dist/serializer-CC-nM3ig.js.map +0 -1
- package/dist/src/models/subAgentModel.d.ts +0 -48
package/README.md
CHANGED
|
@@ -135,12 +135,12 @@ Every v2 component is exported under its **plain name** — `AppBar`, `Prompt`,
|
|
|
135
135
|
alias, so no existing import breaks. Prefer the plain names.
|
|
136
136
|
|
|
137
137
|
The suffix existed to separate these from a v1 layer that no longer exists: the
|
|
138
|
-
last four v1 components (`Prompt`, `LastPrompts`, `TaskList`, `
|
|
138
|
+
last four v1 components (`Prompt`, `LastPrompts`, `TaskList`, `DetachedRunBox`) were
|
|
139
139
|
deleted in 0.3.0 after confirming nothing consumed them, and the two
|
|
140
140
|
`AiChatFloating` implementations were merged into one. Gone with them are the
|
|
141
141
|
props that selected the v1 renderers — **`compactPrompt`**, **`showTaskList`**
|
|
142
|
-
and **`
|
|
143
|
-
and
|
|
142
|
+
and **`showDetachedRuns`**. The prompt is always the compact one now; the task list
|
|
143
|
+
and detached run trace live in the RunProgress panel.
|
|
144
144
|
|
|
145
145
|
### One engine, one agent (breaking in 0.3.0)
|
|
146
146
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var e = (a, i, r) => i in a ? g(a, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[i] = r;
|
|
3
|
+
var h = (a, i) => g(a, "name", { value: i, configurable: !0 });
|
|
4
|
+
var s = (a, i, r) => e(a, typeof i != "symbol" ? i + "" : i, r);
|
|
5
|
+
const b = class b {
|
|
6
|
+
constructor(i, r) {
|
|
7
|
+
s(this, "id");
|
|
8
|
+
s(this, "biName");
|
|
9
|
+
this.id = i, this.biName = r;
|
|
10
|
+
}
|
|
11
|
+
getBiName() {
|
|
12
|
+
return `BI_${this.biName}`;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
h(b, "Account");
|
|
16
|
+
let d = b;
|
|
17
|
+
const D = {
|
|
18
|
+
ExplorerAgent: "ExplorerAgent",
|
|
19
|
+
DashboardAgent: "DashboardAgent",
|
|
20
|
+
Unknown: "Unknown"
|
|
21
|
+
};
|
|
22
|
+
var n = /* @__PURE__ */ ((a) => (a[a.Table = 0] = "Table", a[a.Metric = 1] = "Metric", a[a.Chart = 2] = "Chart", a[a.Dashboards = 3] = "Dashboards", a[a.Suggestions = 4] = "Suggestions", a[a.Memory = 5] = "Memory", a))(n || {});
|
|
23
|
+
const c = {
|
|
24
|
+
0: "Table",
|
|
25
|
+
1: "Metric",
|
|
26
|
+
2: "Chart",
|
|
27
|
+
3: "Dashboards",
|
|
28
|
+
4: "Suggestions",
|
|
29
|
+
5: "Memory"
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
d as A,
|
|
33
|
+
c as M,
|
|
34
|
+
D as a,
|
|
35
|
+
n as b
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=Memory-BUnmYGNv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Memory-BUnmYGNv.js","sources":["../src/models/contexts.ts","../src/models/Agent.ts","../src/models/Memory.ts"],"sourcesContent":["import type { Customer } from \"./Customer\";\nimport type { Agent } from \"./Agent\";\nimport { type IDBStorable } from \"./IDBStorable\";\n\nexport class Account {\n id: string;\n biName: string;\n\n constructor(id: string, biName: string) {\n this.id = id;\n this.biName = biName;\n }\n\n getBiName() {\n return `BI_${this.biName}`;\n }\n}\n\nexport interface User extends IDBStorable {\n email: string;\n family_name: string;\n given_name: string;\n name: string;\n hd: string;\n picture: string;\n access_token: string;\n previous_access_token?: string;\n refresh_token?: string;\n account?: Account;\n}\n\nexport interface AuthState {\n isAuthenticated: boolean;\n isLoading: boolean;\n login: (userData: User) => void;\n logout: () => void;\n errorMessage: string | null;\n}\n\nexport interface AgentContext {\n agentConfig: Partial<Agent>;\n customer?: Customer;\n model?: string;\n}\n","export type AgentKind = 'ExplorerAgent' | 'DashboardAgent' | 'Unknown';\nexport const AgentKind = {\n ExplorerAgent: 'ExplorerAgent' as AgentKind,\n DashboardAgent: 'DashboardAgent' as AgentKind,\n Unknown: 'Unknown' as AgentKind,\n} as const;\n\n/**\n * Agent model - represents an AI agent configuration\n * Mirrors the .NET Agent entity in Envision.SemanticKernel.Models.Agent\n */\nexport interface Agent {\n id: string;\n name: string;\n type?: AgentKind;\n defaultModelId?: string;\n defaultQuickModelId?: string;\n description?: string;\n muiIconName?: string;\n embeddingConfigurationId: string;\n agentImplementation?: string;\n agentBootStrapImplementation?: string;\n parameters?: Record<string, string>;\n plugins: string[];\n /** List of additional main instruction IDs (Category: Main or Generic) for this agent */\n mainInstructionIds?: string[];\n lastUpdated?: Date;\n created?: Date;\n}\n\n/**\n * Partial agent for listing purposes (only essential fields)\n */\nexport type AgentSummary = Pick<Agent, 'id' | 'name' | 'description' | 'muiIconName' | 'type'>;\n","/**\n * Memory model - represents a semantic memory stored in MongoDB and Qdrant\n * Mirrors the .NET Memory entity in Envision.SemanticKernel.Core/Memory/Memory.cs\n */\n\n/**\n * Context types for memories - determines how they're filtered in semantic search\n */\nexport enum MemoryContexts {\n Table = 0, // Table schema information\n Metric = 1, // Business metrics and KPIs\n Chart = 2, // Chart/visualization descriptions\n Dashboards = 3, // Dashboard information\n Suggestions = 4, // Business recommendations\n Memory = 5 // General memories (no filter applied in search)\n}\n\n/**\n * Human-readable labels for each context type\n */\nexport const MemoryContextLabels: Record<MemoryContexts, string> = {\n [MemoryContexts.Table]: 'Table',\n [MemoryContexts.Metric]: 'Metric',\n [MemoryContexts.Chart]: 'Chart',\n [MemoryContexts.Dashboards]: 'Dashboards',\n [MemoryContexts.Suggestions]: 'Suggestions',\n [MemoryContexts.Memory]: 'Memory',\n};\n\n/**\n * Full Memory entity as stored in the database\n */\nexport interface SemanticMemory {\n id: string;\n memoryText: string;\n relatedTags?: string;\n created?: string;\n updatedAt?: string;\n // Runtime properties (populated by search results only)\n runtimeScore?: number;\n runtimeRank?: number;\n}\n\n/**\n * Input model for creating/updating memories\n * Does not include id, created, or runtime properties\n */\nexport interface SemanticMemoryInput {\n memoryText: string;\n relatedTags?: string;\n}\n\n/**\n * Options for semantic search\n */\nexport interface SemanticMemorySearchOptions {\n relatedTable?: string;\n relatedContext?: MemoryContexts;\n relatedTags?: string;\n limit?: number;\n}\n"],"names":["_Account","id","biName","__publicField","__name","Account","AgentKind","MemoryContexts","MemoryContextLabels"],"mappings":";;;;AAIO,MAAMA,IAAN,MAAMA,EAAQ;AAAA,EAIjB,YAAYC,GAAYC,GAAgB;AAHxC,IAAAC,EAAA;AACA,IAAAA,EAAA;AAGI,SAAK,KAAKF,GACV,KAAK,SAASC;AAAA,EAClB;AAAA,EAEA,YAAY;AACR,WAAO,MAAM,KAAK,MAAM;AAAA,EAC5B;AACJ;AAZqBE,EAAAJ,GAAA;AAAd,IAAMK,IAANL;ACHA,MAAMM,IAAY;AAAA,EACrB,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,SAAS;AACb;ACGO,IAAKC,sBAAAA,OACRA,EAAAA,EAAA,QAAQ,CAAA,IAAR,SACAA,EAAAA,EAAA,SAAS,CAAA,IAAT,UACAA,EAAAA,EAAA,QAAQ,CAAA,IAAR,SACAA,EAAAA,EAAA,aAAa,CAAA,IAAb,cACAA,EAAAA,EAAA,cAAc,CAAA,IAAd,eACAA,EAAAA,EAAA,SAAS,CAAA,IAAT,UANQA,IAAAA,KAAA,CAAA,CAAA;AAYL,MAAMC,IAAsD;AAAA,EAC9D,GAAuB;AAAA,EACvB,GAAwB;AAAA,EACxB,GAAuB;AAAA,EACvB,GAA4B;AAAA,EAC5B,GAA6B;AAAA,EAC7B,GAAwB;AAC7B;"}
|