@roomle/embedding-lib 11.0.0-alpha.12 → 11.0.0-alpha.13

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.
Files changed (42) hide show
  1. package/THIRD-PARTY-NOTICES.txt +2 -2
  2. package/ai-model-host-CaiYrZkh.mjs +152 -0
  3. package/ai-model-host-HAJONHCj.mjs +156 -0
  4. package/ai.js +1 -128
  5. package/ai.min.js +1 -127
  6. package/chat-model-DooKwd8I.mjs +117 -0
  7. package/chat-model-KHuz1Ej9.mjs +118 -0
  8. package/configurator.js +2 -2
  9. package/configurator.min.js +2 -2
  10. package/construction.js +17718 -162
  11. package/construction.min.js +17397 -177
  12. package/docs/md/web/embedding/CHANGELOG.md +93 -4
  13. package/hi.js +91 -393
  14. package/hi.min.js +88 -351
  15. package/{mcp-tools-BLB7pCga.mjs → mcp-tools-C6O2gQZW.mjs} +0 -1
  16. package/{mcp-tools-BirFT2R0.mjs → mcp-tools-m_3IX0vB.mjs} +0 -1
  17. package/package.json +1 -1
  18. package/packages/common/src/utils/ai-model-relay.d.ts +1 -1
  19. package/packages/embedding-lib/src/ai-model-host.d.ts +36 -0
  20. package/packages/embedding-lib/src/ai.d.ts +11 -27
  21. package/packages/embedding-lib/src/hi.d.ts +1 -0
  22. package/packages/embedding-lib/src/homag-intelligence/decisions.d.ts +7 -0
  23. package/packages/embedding-lib/src/homag-intelligence/hi-model-proxy.d.ts +4 -1
  24. package/packages/embedding-lib/src/homag-intelligence/hi-planning-assistant.d.ts +9 -19
  25. package/packages/web-sdk/packages/assistant.d.ts +2 -1
  26. package/packages/web-sdk/packages/common-core/src/planning-assistant/chat-recovery.d.ts +5 -1
  27. package/packages/web-sdk/packages/common-core/src/planning-assistant/continuation.d.ts +5 -3
  28. package/packages/web-sdk/packages/common-core/src/planning-assistant/usage.d.ts +31 -0
  29. package/roomle-embedding-lib.js +37 -37
  30. package/roomle-embedding-lib.min.js +30 -30
  31. package/sbom.cdx.json +5 -5
  32. package/usage-C3HE9yXi.mjs +33 -0
  33. package/usage-CYqDPQOx.mjs +34 -0
  34. package/chat-model-B7BO8IhK.mjs +0 -212
  35. package/chat-model-XYf503pT.mjs +0 -213
  36. package/continuation-CswXtOus.mjs +0 -10
  37. package/continuation-NclHDSgS.mjs +0 -9
  38. package/dist-BZSd56sr.mjs +0 -17422
  39. package/dist-S9sLSjZ4.mjs +0 -17087
  40. package/packages/embedding-lib/src/homag-intelligence/hi-planning-usage.d.ts +0 -54
  41. package/turn-limits-9LbUeSG2.mjs +0 -9
  42. package/turn-limits-Ciq383Bd.mjs +0 -10
@@ -1,54 +0,0 @@
1
- type Usage = {
2
- inputTokens?: number;
3
- outputTokens?: number;
4
- totalTokens?: number;
5
- inputTokenDetails?: {
6
- noCacheTokens?: number;
7
- cacheReadTokens?: number;
8
- cacheWriteTokens?: number;
9
- };
10
- outputTokenDetails?: {
11
- reasoningTokens?: number;
12
- };
13
- raw?: Record<string, unknown>;
14
- };
15
- export declare const tokenCounts: (usage?: Usage) => {
16
- inputTokens: number;
17
- outputTokens: number;
18
- totalTokens: number;
19
- };
20
- export declare const sumCounts: (counts: (number | null)[]) => number;
21
- export declare const usageDetails: (usage?: Usage) => {
22
- cacheReadTokens: number;
23
- cacheWriteTokens: number;
24
- noCacheTokens: number;
25
- reasoningTokens: number;
26
- rawUsageAvailable: boolean;
27
- };
28
- export declare const summarizeDetails: (steps: ReturnType<typeof usageDetails>[]) => {
29
- [k: string]: {
30
- tokens: number;
31
- status: string;
32
- reportedSteps: number;
33
- observedSteps: number;
34
- };
35
- };
36
- export declare const describePayload: (text: string) => Promise<{
37
- bytes: number;
38
- sha256: string;
39
- }>;
40
- export declare const describeModelRequest: (text: string, seenInput: Set<string>) => Promise<{
41
- bytes: number;
42
- sha256: string;
43
- } | {
44
- sections: {
45
- inputBytes: number;
46
- newInputBytes: number;
47
- repeatedInputBytes: number;
48
- toolsBytes: number;
49
- otherBytes: number;
50
- };
51
- bytes: number;
52
- sha256: string;
53
- }>;
54
- export {};
@@ -1,9 +0,0 @@
1
-
2
- var e = (e) => AbortSignal.any(e), t = 3e5, n = (e) => `The turn reached its time limit of ${e / 6e4} minutes. Should I continue?`, r = (e, t, r) => (r({ type: "time-limit" }), r({ type: "done" }), {
3
- role: "assistant",
4
- content: `${e}\n\n${n(t)}`
5
- }), i = "The step limit of this turn is reached: this answer cannot call a tool. Tell the user what you did and what is still open, say that the step limit of the turn was reached, and ask whether you should continue. The next message of the user starts a new turn, in which you can call tools again.", a = (e, t) => e === 31 ? {
6
- toolChoice: "none",
7
- instructions: t ? `${t}\n\n${i}` : i
8
- } : {};
9
- export { e as a, n as i, r as n, a as r, t };
@@ -1,10 +0,0 @@
1
-
2
- // packages/common/src/dep-free/abort-signal.ts
3
- var e = (e) => AbortSignal.any(e), t = 3e5, n = (e) => `The turn reached its time limit of ${e / 6e4} minutes. Should I continue?`, r = (e, t, r) => (r({ type: "time-limit" }), r({ type: "done" }), {
4
- role: "assistant",
5
- content: `${e}\n\n${n(t)}`
6
- }), i = "The step limit of this turn is reached: this answer cannot call a tool. Tell the user what you did and what is still open, say that the step limit of the turn was reached, and ask whether you should continue. The next message of the user starts a new turn, in which you can call tools again.", a = (e, t) => e === 31 ? {
7
- toolChoice: "none",
8
- instructions: t ? `${t}\n\n${i}` : i
9
- } : {};
10
- export { e as a, n as i, r as n, a as r, t };