@vertesia/client 1.6.0-dev.20260923.085325Z → 1.6.0-dev.20261004.085740Z

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 (93) hide show
  1. package/lib/EnvironmentsApi.d.ts +2 -1
  2. package/lib/EnvironmentsApi.d.ts.map +1 -1
  3. package/lib/EnvironmentsApi.js +3 -0
  4. package/lib/EnvironmentsApi.js.map +1 -1
  5. package/lib/InferenceProfilesApi.d.ts +14 -0
  6. package/lib/InferenceProfilesApi.d.ts.map +1 -0
  7. package/lib/InferenceProfilesApi.js +33 -0
  8. package/lib/InferenceProfilesApi.js.map +1 -0
  9. package/lib/InteractionBase.d.ts +2 -954
  10. package/lib/InteractionBase.d.ts.map +1 -1
  11. package/lib/InteractionConfigurationsApi.d.ts +9 -0
  12. package/lib/InteractionConfigurationsApi.d.ts.map +1 -0
  13. package/lib/InteractionConfigurationsApi.js +16 -0
  14. package/lib/InteractionConfigurationsApi.js.map +1 -0
  15. package/lib/InteractionsApi.d.ts +2 -7
  16. package/lib/InteractionsApi.d.ts.map +1 -1
  17. package/lib/InteractionsApi.js.map +1 -1
  18. package/lib/InternalRunBudgetsApi.d.ts +8 -0
  19. package/lib/InternalRunBudgetsApi.d.ts.map +1 -0
  20. package/lib/InternalRunBudgetsApi.js +11 -0
  21. package/lib/InternalRunBudgetsApi.js.map +1 -0
  22. package/lib/client.d.ts +8 -10
  23. package/lib/client.d.ts.map +1 -1
  24. package/lib/client.js +7 -0
  25. package/lib/client.js.map +1 -1
  26. package/lib/index.d.ts +1 -0
  27. package/lib/index.d.ts.map +1 -1
  28. package/lib/index.js +1 -0
  29. package/lib/index.js.map +1 -1
  30. package/lib/store/AgentsApi.d.ts +6 -1
  31. package/lib/store/AgentsApi.d.ts.map +1 -1
  32. package/lib/store/AgentsApi.js +7 -0
  33. package/lib/store/AgentsApi.js.map +1 -1
  34. package/lib/store/ContentApi.d.ts +111 -0
  35. package/lib/store/ContentApi.d.ts.map +1 -0
  36. package/lib/store/ContentApi.js +83 -0
  37. package/lib/store/ContentApi.js.map +1 -0
  38. package/lib/store/DataApi.d.ts +1 -1
  39. package/lib/store/DataApi.js +1 -1
  40. package/lib/store/IndexingApi.d.ts +1 -1
  41. package/lib/store/IndexingApi.d.ts.map +1 -1
  42. package/lib/store/IndexingApi.js +2 -1
  43. package/lib/store/IndexingApi.js.map +1 -1
  44. package/lib/store/client.d.ts +2 -0
  45. package/lib/store/client.d.ts.map +1 -1
  46. package/lib/store/client.js +2 -0
  47. package/lib/store/client.js.map +1 -1
  48. package/lib/store/index.d.ts +1 -0
  49. package/lib/store/index.d.ts.map +1 -1
  50. package/lib/store/index.js +1 -0
  51. package/lib/store/index.js.map +1 -1
  52. package/lib/vertesia-client.js +4 -4
  53. package/lib/vertesia-client.js.map +1 -1
  54. package/package.json +11 -10
  55. package/src/EnvironmentsApi.ts +6 -0
  56. package/src/InferenceProfilesApi.ts +47 -0
  57. package/src/InteractionConfigurationsApi.ts +20 -0
  58. package/src/InteractionsApi.ts +2 -9
  59. package/src/InternalRunBudgetsApi.ts +13 -0
  60. package/src/client.ts +7 -0
  61. package/src/index.ts +1 -0
  62. package/src/store/AgentsApi.ts +9 -0
  63. package/src/store/ContentApi.ts +158 -0
  64. package/src/store/DataApi.ts +1 -1
  65. package/src/store/IndexingApi.ts +2 -0
  66. package/src/store/client.ts +2 -0
  67. package/src/store/index.ts +1 -0
  68. package/src/AccountApi.test.ts +0 -30
  69. package/src/AppsApi.test.ts +0 -132
  70. package/src/EnvironmentsApi.test.ts +0 -39
  71. package/src/InteractionOutput.test.ts +0 -338
  72. package/src/OAuthServerApi.test.ts +0 -56
  73. package/src/ProjectsApi.test.ts +0 -33
  74. package/src/RunsApi.test.ts +0 -24
  75. package/src/ViewsApi.test.ts +0 -38
  76. package/src/app-session.test.ts +0 -23
  77. package/src/bundle-isolation.test.ts +0 -37
  78. package/src/client.test.ts +0 -332
  79. package/src/execute.test.ts +0 -22
  80. package/src/store/AgentsApi.artifacts.test.ts +0 -119
  81. package/src/store/AgentsApi.history.test.ts +0 -29
  82. package/src/store/AgentsApi.stream.test.ts +0 -386
  83. package/src/store/DataApi.test.ts +0 -42
  84. package/src/store/EmbeddingsApi.test.ts +0 -31
  85. package/src/store/EventsApi.test.ts +0 -131
  86. package/src/store/FilesApi.test.ts +0 -118
  87. package/src/store/ObjectsApi.test.ts +0 -50
  88. package/src/store/ProcessApi.test.ts +0 -24
  89. package/src/store/ViewsApi.test.ts +0 -33
  90. package/src/store/signed-url.test.ts +0 -204
  91. package/src/store/stream-gap.test.ts +0 -230
  92. package/src/store/stream-termination.test.ts +0 -82
  93. package/src/store/uploadMimeType.test.ts +0 -22
@@ -1,82 +0,0 @@
1
- import { type AgentMessage, AgentMessageType, type CompactMessage } from '@vertesia/common';
2
- import { describe, expect, it } from 'vitest';
3
- import { shouldCloseAgentRunStream, shouldCloseCompactRunStream } from './stream-termination.js';
4
-
5
- describe('stream termination', () => {
6
- const rootRunId = 'root-run';
7
-
8
- it('closes agent streams on the root run completion', () => {
9
- const message: AgentMessage = {
10
- type: AgentMessageType.COMPLETE,
11
- timestamp: Date.now(),
12
- workflow_run_id: rootRunId,
13
- message: 'root complete',
14
- workstream_id: 'main',
15
- details: {
16
- process_run_id: rootRunId,
17
- },
18
- };
19
-
20
- expect(shouldCloseAgentRunStream(message, rootRunId)).toBe(true);
21
- });
22
-
23
- it('keeps agent streams open for child process completion on main', () => {
24
- const message: AgentMessage = {
25
- type: AgentMessageType.COMPLETE,
26
- timestamp: Date.now(),
27
- workflow_run_id: rootRunId,
28
- message: 'child complete',
29
- workstream_id: 'main',
30
- details: {
31
- process_run_id: 'child-run',
32
- },
33
- };
34
-
35
- expect(shouldCloseAgentRunStream(message, rootRunId)).toBe(false);
36
- });
37
-
38
- it('keeps compact streams open for child process completion on main', () => {
39
- const message: CompactMessage = {
40
- t: AgentMessageType.COMPLETE,
41
- m: 'child complete',
42
- d: {
43
- process_run_id: 'child-run',
44
- },
45
- };
46
-
47
- expect(shouldCloseCompactRunStream(message, rootRunId)).toBe(false);
48
- });
49
-
50
- it('still closes streams for main completion without process metadata', () => {
51
- const message: CompactMessage = {
52
- t: AgentMessageType.COMPLETE,
53
- m: 'conversation complete',
54
- };
55
-
56
- expect(shouldCloseCompactRunStream(message, rootRunId)).toBe(true);
57
- });
58
-
59
- it('keeps interactive root streams open when the conversation becomes idle', () => {
60
- const message: AgentMessage = {
61
- type: AgentMessageType.IDLE,
62
- timestamp: Date.now(),
63
- workflow_run_id: rootRunId,
64
- message: 'Waiting for your command...',
65
- workstream_id: 'main',
66
- };
67
-
68
- expect(shouldCloseAgentRunStream(message, rootRunId)).toBe(false);
69
- expect(shouldCloseAgentRunStream(message, rootRunId, true)).toBe(true);
70
- });
71
-
72
- it('keeps compact streams open when a child workstream becomes idle', () => {
73
- const message: CompactMessage = {
74
- t: AgentMessageType.IDLE,
75
- m: 'Child waiting',
76
- w: 'implementation',
77
- };
78
-
79
- expect(shouldCloseCompactRunStream(message, rootRunId)).toBe(false);
80
- expect(shouldCloseCompactRunStream(message, rootRunId, true)).toBe(false);
81
- });
82
- });
@@ -1,22 +0,0 @@
1
- import { describe, expect, it } from 'vitest';
2
- import { getUploadMimeTypeHint, resolveUploadMimeType } from './uploadMimeType.js';
3
-
4
- describe('upload MIME type resolution', () => {
5
- it('keeps a specific browser-provided content type', () => {
6
- expect(getUploadMimeTypeHint('text/plain')).toBe('text/plain');
7
- expect(resolveUploadMimeType('text/plain', 'text/markdown')).toBe('text/plain');
8
- });
9
-
10
- it('uses filename inference when the browser reports generic binary content', () => {
11
- expect(getUploadMimeTypeHint('application/octet-stream')).toBeUndefined();
12
- expect(resolveUploadMimeType('application/octet-stream', 'text/markdown')).toBe('text/markdown');
13
- });
14
-
15
- it('uses filename inference when the browser omits the content type', () => {
16
- expect(resolveUploadMimeType('', 'text/markdown')).toBe('text/markdown');
17
- });
18
-
19
- it('retains octet-stream when no more specific type can be inferred', () => {
20
- expect(resolveUploadMimeType('application/octet-stream', undefined)).toBe('application/octet-stream');
21
- });
22
- });