@norskvideo/norsk-studio-alpha 1.27.0-2026-01-26-4bc5078b → 1.27.0-2026-01-31-e37a5429
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/client/info.js +1626 -1313
- package/client/style.css +6 -598
- package/lib/info.js +6 -4
- package/lib/info.js.map +1 -1
- package/lib/processor.objectDetect/_gen/schema.d.ts +12 -0
- package/lib/processor.objectDetect/_gen/schema.js +16 -0
- package/lib/processor.objectDetect/_gen/schema.js.map +1 -0
- package/lib/processor.objectDetect/_gen/types.d.ts +49 -0
- package/lib/processor.objectDetect/_gen/types.js.map +1 -0
- package/lib/processor.objectDetect/_gen/zod.js +60 -0
- package/lib/processor.objectDetect/_gen/zod.js.map +1 -0
- package/lib/processor.objectDetect/info.d.ts +27 -0
- package/lib/processor.objectDetect/info.js +63 -0
- package/lib/processor.objectDetect/info.js.map +1 -0
- package/lib/processor.objectDetect/inline-view.d.ts +6 -0
- package/lib/processor.objectDetect/inline-view.js +41 -0
- package/lib/processor.objectDetect/inline-view.js.map +1 -0
- package/lib/processor.objectDetect/runtime.d.ts +28 -0
- package/lib/processor.objectDetect/runtime.js +112 -0
- package/lib/processor.objectDetect/runtime.js.map +1 -0
- package/lib/processor.objectDetect/types.yaml +78 -0
- package/lib/test/output.tams.js.map +1 -1
- package/lib/util.claudeAgent/_gen/schema.d.ts +17 -0
- package/lib/util.claudeAgent/_gen/schema.js +21 -0
- package/lib/util.claudeAgent/_gen/schema.js.map +1 -0
- package/lib/util.claudeAgent/_gen/types.d.ts +370 -0
- package/lib/util.claudeAgent/_gen/types.js.map +1 -0
- package/lib/util.claudeAgent/_gen/zod.js +147 -0
- package/lib/util.claudeAgent/_gen/zod.js.map +1 -0
- package/lib/util.claudeAgent/info.d.ts +63 -0
- package/lib/util.claudeAgent/info.js +131 -0
- package/lib/util.claudeAgent/info.js.map +1 -0
- package/lib/util.claudeAgent/runtime.d.ts +105 -0
- package/lib/util.claudeAgent/runtime.js +567 -0
- package/lib/util.claudeAgent/runtime.js.map +1 -0
- package/lib/util.claudeAgent/types.yaml +393 -0
- package/lib/util.geminiAgent/_gen/schema.d.ts +17 -0
- package/lib/util.geminiAgent/_gen/schema.js +21 -0
- package/lib/util.geminiAgent/_gen/schema.js.map +1 -0
- package/lib/util.geminiAgent/_gen/types.d.ts +370 -0
- package/lib/util.geminiAgent/_gen/types.js.map +1 -0
- package/lib/util.geminiAgent/_gen/zod.d.ts +2 -0
- package/lib/util.geminiAgent/_gen/zod.js +147 -0
- package/lib/util.geminiAgent/_gen/zod.js.map +1 -0
- package/lib/util.geminiAgent/info.d.ts +63 -0
- package/lib/util.geminiAgent/info.js +131 -0
- package/lib/util.geminiAgent/info.js.map +1 -0
- package/lib/util.geminiAgent/runtime.d.ts +107 -0
- package/lib/util.geminiAgent/runtime.js +621 -0
- package/lib/util.geminiAgent/runtime.js.map +1 -0
- package/lib/util.geminiAgent/types.yaml +392 -0
- package/package.json +24 -5
- package/client/util.aiChat/styles.css +0 -371
- package/lib/util.agent/_gen/schema.d.ts +0 -13
- package/lib/util.agent/_gen/schema.js +0 -17
- package/lib/util.agent/_gen/schema.js.map +0 -1
- package/lib/util.agent/_gen/types.d.ts +0 -343
- package/lib/util.agent/_gen/types.js.map +0 -1
- package/lib/util.agent/_gen/zod.js +0 -206
- package/lib/util.agent/_gen/zod.js.map +0 -1
- package/lib/util.agent/fullscreen-view.d.ts +0 -4
- package/lib/util.agent/fullscreen-view.js +0 -142
- package/lib/util.agent/fullscreen-view.js.map +0 -1
- package/lib/util.agent/info.d.ts +0 -126
- package/lib/util.agent/info.js +0 -141
- package/lib/util.agent/info.js.map +0 -1
- package/lib/util.agent/inline-view.d.ts +0 -6
- package/lib/util.agent/inline-view.js +0 -43
- package/lib/util.agent/inline-view.js.map +0 -1
- package/lib/util.agent/runtime.d.ts +0 -180
- package/lib/util.agent/runtime.js +0 -1254
- package/lib/util.agent/runtime.js.map +0 -1
- package/lib/util.agent/summary-view.d.ts +0 -4
- package/lib/util.agent/summary-view.js +0 -68
- package/lib/util.agent/summary-view.js.map +0 -1
- package/lib/util.agent/types.d.ts +0 -285
- package/lib/util.agent/types.js.map +0 -1
- package/lib/util.agent/types.yaml +0 -440
- package/lib/util.aiChat/_gen/schema.d.ts +0 -12
- package/lib/util.aiChat/_gen/schema.js +0 -16
- package/lib/util.aiChat/_gen/schema.js.map +0 -1
- package/lib/util.aiChat/_gen/types.d.ts +0 -98
- package/lib/util.aiChat/_gen/types.js.map +0 -1
- package/lib/util.aiChat/_gen/zod.js +0 -132
- package/lib/util.aiChat/_gen/zod.js.map +0 -1
- package/lib/util.aiChat/info.d.ts +0 -70
- package/lib/util.aiChat/info.js +0 -92
- package/lib/util.aiChat/info.js.map +0 -1
- package/lib/util.aiChat/runtime.d.ts +0 -32
- package/lib/util.aiChat/runtime.js +0 -304
- package/lib/util.aiChat/runtime.js.map +0 -1
- package/lib/util.aiChat/summary-view.d.ts +0 -7
- package/lib/util.aiChat/summary-view.js +0 -48
- package/lib/util.aiChat/summary-view.js.map +0 -1
- package/lib/util.aiChat/types.d.ts +0 -62
- package/lib/util.aiChat/types.js +0 -3
- package/lib/util.aiChat/types.js.map +0 -1
- package/lib/util.aiChat/types.yaml +0 -148
- /package/lib/{util.agent → processor.objectDetect}/_gen/types.js +0 -0
- /package/lib/{util.agent → processor.objectDetect}/_gen/zod.d.ts +0 -0
- /package/lib/{util.agent → util.claudeAgent/_gen}/types.js +0 -0
- /package/lib/{util.aiChat → util.claudeAgent}/_gen/zod.d.ts +0 -0
- /package/lib/{util.aiChat → util.geminiAgent}/_gen/types.js +0 -0
|
@@ -1,440 +0,0 @@
|
|
|
1
|
-
# This file has been generated, please edit types.source.yaml instead
|
|
2
|
-
|
|
3
|
-
openapi: 3.0.0
|
|
4
|
-
info:
|
|
5
|
-
title: Autonomous Agent
|
|
6
|
-
version: 1.0.0
|
|
7
|
-
paths:
|
|
8
|
-
/memory/working:
|
|
9
|
-
get:
|
|
10
|
-
summary: Get current working memory contents
|
|
11
|
-
description: Returns the current working memory state of the agent
|
|
12
|
-
responses:
|
|
13
|
-
"200":
|
|
14
|
-
description: Working memory data
|
|
15
|
-
content:
|
|
16
|
-
application/json:
|
|
17
|
-
schema:
|
|
18
|
-
type: object
|
|
19
|
-
properties:
|
|
20
|
-
type:
|
|
21
|
-
type: string
|
|
22
|
-
example: working_memory
|
|
23
|
-
data:
|
|
24
|
-
type: object
|
|
25
|
-
additionalProperties: true
|
|
26
|
-
timestamp:
|
|
27
|
-
type: string
|
|
28
|
-
format: date-time
|
|
29
|
-
required:
|
|
30
|
-
- type
|
|
31
|
-
- data
|
|
32
|
-
- timestamp
|
|
33
|
-
/memory/persistent:
|
|
34
|
-
get:
|
|
35
|
-
summary: Get current persistent memory contents
|
|
36
|
-
description: Returns the persistent memory summary of the agent
|
|
37
|
-
responses:
|
|
38
|
-
"200":
|
|
39
|
-
description: Persistent memory data
|
|
40
|
-
content:
|
|
41
|
-
application/json:
|
|
42
|
-
schema:
|
|
43
|
-
type: object
|
|
44
|
-
properties:
|
|
45
|
-
type:
|
|
46
|
-
type: string
|
|
47
|
-
example: persistent_memory
|
|
48
|
-
data:
|
|
49
|
-
type: object
|
|
50
|
-
additionalProperties: true
|
|
51
|
-
timestamp:
|
|
52
|
-
type: string
|
|
53
|
-
format: date-time
|
|
54
|
-
required:
|
|
55
|
-
- type
|
|
56
|
-
- data
|
|
57
|
-
- timestamp
|
|
58
|
-
/memory/summary:
|
|
59
|
-
get:
|
|
60
|
-
summary: Get summarized memory contents
|
|
61
|
-
description: Returns both working and persistent memory summaries
|
|
62
|
-
responses:
|
|
63
|
-
"200":
|
|
64
|
-
description: Memory summary data
|
|
65
|
-
content:
|
|
66
|
-
application/json:
|
|
67
|
-
schema:
|
|
68
|
-
type: object
|
|
69
|
-
properties:
|
|
70
|
-
type:
|
|
71
|
-
type: string
|
|
72
|
-
example: memory_summary
|
|
73
|
-
working_memory:
|
|
74
|
-
type: object
|
|
75
|
-
additionalProperties: true
|
|
76
|
-
persistent_memory:
|
|
77
|
-
type: object
|
|
78
|
-
additionalProperties: true
|
|
79
|
-
timestamp:
|
|
80
|
-
type: string
|
|
81
|
-
format: date-time
|
|
82
|
-
required:
|
|
83
|
-
- type
|
|
84
|
-
- working_memory
|
|
85
|
-
- persistent_memory
|
|
86
|
-
- timestamp
|
|
87
|
-
/status/detailed:
|
|
88
|
-
get:
|
|
89
|
-
summary: Get detailed agent status
|
|
90
|
-
description: Returns comprehensive agent status including memory and recent decisions
|
|
91
|
-
responses:
|
|
92
|
-
"200":
|
|
93
|
-
description: Detailed agent status
|
|
94
|
-
content:
|
|
95
|
-
application/json:
|
|
96
|
-
schema:
|
|
97
|
-
type: object
|
|
98
|
-
properties:
|
|
99
|
-
type:
|
|
100
|
-
type: string
|
|
101
|
-
example: detailed_status
|
|
102
|
-
agent_status:
|
|
103
|
-
type: object
|
|
104
|
-
properties:
|
|
105
|
-
is_running:
|
|
106
|
-
type: boolean
|
|
107
|
-
is_paused:
|
|
108
|
-
type: boolean
|
|
109
|
-
initialized:
|
|
110
|
-
type: boolean
|
|
111
|
-
cycles_this_minute:
|
|
112
|
-
type: number
|
|
113
|
-
total_cycles:
|
|
114
|
-
type: number
|
|
115
|
-
cycle_interval_ms:
|
|
116
|
-
type: number
|
|
117
|
-
required:
|
|
118
|
-
- is_running
|
|
119
|
-
- is_paused
|
|
120
|
-
- initialized
|
|
121
|
-
- cycles_this_minute
|
|
122
|
-
- total_cycles
|
|
123
|
-
- cycle_interval_ms
|
|
124
|
-
goal:
|
|
125
|
-
type: string
|
|
126
|
-
system_prompt:
|
|
127
|
-
type: string
|
|
128
|
-
memory:
|
|
129
|
-
type: object
|
|
130
|
-
properties:
|
|
131
|
-
working:
|
|
132
|
-
type: object
|
|
133
|
-
additionalProperties: true
|
|
134
|
-
persistent:
|
|
135
|
-
type: object
|
|
136
|
-
additionalProperties: true
|
|
137
|
-
required:
|
|
138
|
-
- working
|
|
139
|
-
- persistent
|
|
140
|
-
timestamp:
|
|
141
|
-
type: string
|
|
142
|
-
format: date-time
|
|
143
|
-
required:
|
|
144
|
-
- type
|
|
145
|
-
- agent_status
|
|
146
|
-
- goal
|
|
147
|
-
- system_prompt
|
|
148
|
-
- memory
|
|
149
|
-
- timestamp
|
|
150
|
-
components:
|
|
151
|
-
schemas:
|
|
152
|
-
AgentSettings:
|
|
153
|
-
type: object
|
|
154
|
-
properties:
|
|
155
|
-
id:
|
|
156
|
-
type: string
|
|
157
|
-
displayName:
|
|
158
|
-
type: string
|
|
159
|
-
systemPrompt:
|
|
160
|
-
type: string
|
|
161
|
-
goal:
|
|
162
|
-
type: string
|
|
163
|
-
maxCyclesPerMinute:
|
|
164
|
-
type: number
|
|
165
|
-
notes:
|
|
166
|
-
type: string
|
|
167
|
-
required:
|
|
168
|
-
- id
|
|
169
|
-
- displayName
|
|
170
|
-
- systemPrompt
|
|
171
|
-
- goal
|
|
172
|
-
AgentTask: &a1
|
|
173
|
-
type: object
|
|
174
|
-
properties:
|
|
175
|
-
id:
|
|
176
|
-
type: string
|
|
177
|
-
description:
|
|
178
|
-
type: string
|
|
179
|
-
status:
|
|
180
|
-
type: string
|
|
181
|
-
enum:
|
|
182
|
-
- pending
|
|
183
|
-
- in_progress
|
|
184
|
-
- completed
|
|
185
|
-
- failed
|
|
186
|
-
createdAt:
|
|
187
|
-
type: string
|
|
188
|
-
format: date-time
|
|
189
|
-
completedAt:
|
|
190
|
-
type: string
|
|
191
|
-
format: date-time
|
|
192
|
-
result:
|
|
193
|
-
type: string
|
|
194
|
-
error:
|
|
195
|
-
type: string
|
|
196
|
-
required:
|
|
197
|
-
- id
|
|
198
|
-
- description
|
|
199
|
-
- status
|
|
200
|
-
- createdAt
|
|
201
|
-
AgentAction: &a2
|
|
202
|
-
type: object
|
|
203
|
-
properties:
|
|
204
|
-
id:
|
|
205
|
-
type: string
|
|
206
|
-
type:
|
|
207
|
-
type: string
|
|
208
|
-
enum:
|
|
209
|
-
- tool_call
|
|
210
|
-
- component_command
|
|
211
|
-
- event_subscribe
|
|
212
|
-
- analysis
|
|
213
|
-
timestamp:
|
|
214
|
-
type: string
|
|
215
|
-
format: date-time
|
|
216
|
-
description:
|
|
217
|
-
type: string
|
|
218
|
-
parameters:
|
|
219
|
-
type: object
|
|
220
|
-
additionalProperties: true
|
|
221
|
-
result:
|
|
222
|
-
type: object
|
|
223
|
-
additionalProperties: true
|
|
224
|
-
success:
|
|
225
|
-
type: boolean
|
|
226
|
-
error:
|
|
227
|
-
type: string
|
|
228
|
-
required:
|
|
229
|
-
- id
|
|
230
|
-
- type
|
|
231
|
-
- timestamp
|
|
232
|
-
- description
|
|
233
|
-
- success
|
|
234
|
-
AgentState:
|
|
235
|
-
type: object
|
|
236
|
-
properties:
|
|
237
|
-
status:
|
|
238
|
-
type: string
|
|
239
|
-
enum:
|
|
240
|
-
- idle
|
|
241
|
-
- analyzing
|
|
242
|
-
- planning
|
|
243
|
-
- executing
|
|
244
|
-
- paused
|
|
245
|
-
- error
|
|
246
|
-
isRunning:
|
|
247
|
-
type: boolean
|
|
248
|
-
currentTask: *a1
|
|
249
|
-
completedTasks:
|
|
250
|
-
type: array
|
|
251
|
-
items: *a1
|
|
252
|
-
recentActions:
|
|
253
|
-
type: array
|
|
254
|
-
items: *a2
|
|
255
|
-
lastError:
|
|
256
|
-
type: string
|
|
257
|
-
cyclesThisMinute:
|
|
258
|
-
type: number
|
|
259
|
-
totalCycles:
|
|
260
|
-
type: number
|
|
261
|
-
startedAt:
|
|
262
|
-
type: string
|
|
263
|
-
format: date-time
|
|
264
|
-
lastCycleAt:
|
|
265
|
-
type: string
|
|
266
|
-
format: date-time
|
|
267
|
-
discoveredComponents:
|
|
268
|
-
type: array
|
|
269
|
-
items:
|
|
270
|
-
type: object
|
|
271
|
-
properties:
|
|
272
|
-
id:
|
|
273
|
-
type: string
|
|
274
|
-
type:
|
|
275
|
-
type: string
|
|
276
|
-
capabilities:
|
|
277
|
-
type: array
|
|
278
|
-
items:
|
|
279
|
-
type: string
|
|
280
|
-
required:
|
|
281
|
-
- id
|
|
282
|
-
- type
|
|
283
|
-
- capabilities
|
|
284
|
-
subscribedEvents:
|
|
285
|
-
type: array
|
|
286
|
-
items:
|
|
287
|
-
type: object
|
|
288
|
-
properties:
|
|
289
|
-
componentId:
|
|
290
|
-
type: string
|
|
291
|
-
eventType:
|
|
292
|
-
type: string
|
|
293
|
-
required:
|
|
294
|
-
- componentId
|
|
295
|
-
- eventType
|
|
296
|
-
required:
|
|
297
|
-
- status
|
|
298
|
-
- isRunning
|
|
299
|
-
- completedTasks
|
|
300
|
-
- recentActions
|
|
301
|
-
- cyclesThisMinute
|
|
302
|
-
- totalCycles
|
|
303
|
-
- discoveredComponents
|
|
304
|
-
- subscribedEvents
|
|
305
|
-
AgentEvent:
|
|
306
|
-
oneOf:
|
|
307
|
-
- type: object
|
|
308
|
-
properties:
|
|
309
|
-
type:
|
|
310
|
-
enum:
|
|
311
|
-
- agent_started
|
|
312
|
-
timestamp:
|
|
313
|
-
type: string
|
|
314
|
-
format: date-time
|
|
315
|
-
required:
|
|
316
|
-
- type
|
|
317
|
-
- timestamp
|
|
318
|
-
- type: object
|
|
319
|
-
properties:
|
|
320
|
-
type:
|
|
321
|
-
enum:
|
|
322
|
-
- agent_stopped
|
|
323
|
-
timestamp:
|
|
324
|
-
type: string
|
|
325
|
-
format: date-time
|
|
326
|
-
required:
|
|
327
|
-
- type
|
|
328
|
-
- timestamp
|
|
329
|
-
- type: object
|
|
330
|
-
properties:
|
|
331
|
-
type:
|
|
332
|
-
enum:
|
|
333
|
-
- task_created
|
|
334
|
-
task: *a1
|
|
335
|
-
required:
|
|
336
|
-
- type
|
|
337
|
-
- task
|
|
338
|
-
- type: object
|
|
339
|
-
properties:
|
|
340
|
-
type:
|
|
341
|
-
enum:
|
|
342
|
-
- task_completed
|
|
343
|
-
task: *a1
|
|
344
|
-
required:
|
|
345
|
-
- type
|
|
346
|
-
- task
|
|
347
|
-
- type: object
|
|
348
|
-
properties:
|
|
349
|
-
type:
|
|
350
|
-
enum:
|
|
351
|
-
- action_taken
|
|
352
|
-
action: *a2
|
|
353
|
-
required:
|
|
354
|
-
- type
|
|
355
|
-
- action
|
|
356
|
-
- type: object
|
|
357
|
-
properties:
|
|
358
|
-
type:
|
|
359
|
-
enum:
|
|
360
|
-
- error_occurred
|
|
361
|
-
error:
|
|
362
|
-
type: string
|
|
363
|
-
required:
|
|
364
|
-
- type
|
|
365
|
-
- error
|
|
366
|
-
- type: object
|
|
367
|
-
properties:
|
|
368
|
-
type:
|
|
369
|
-
enum:
|
|
370
|
-
- component_discovered
|
|
371
|
-
componentId:
|
|
372
|
-
type: string
|
|
373
|
-
capabilities:
|
|
374
|
-
type: array
|
|
375
|
-
items:
|
|
376
|
-
type: string
|
|
377
|
-
required:
|
|
378
|
-
- type
|
|
379
|
-
- componentId
|
|
380
|
-
- capabilities
|
|
381
|
-
AgentCommand:
|
|
382
|
-
oneOf:
|
|
383
|
-
- type: object
|
|
384
|
-
properties:
|
|
385
|
-
type:
|
|
386
|
-
enum:
|
|
387
|
-
- start_agent
|
|
388
|
-
required:
|
|
389
|
-
- type
|
|
390
|
-
- type: object
|
|
391
|
-
properties:
|
|
392
|
-
type:
|
|
393
|
-
enum:
|
|
394
|
-
- stop_agent
|
|
395
|
-
required:
|
|
396
|
-
- type
|
|
397
|
-
- type: object
|
|
398
|
-
properties:
|
|
399
|
-
type:
|
|
400
|
-
enum:
|
|
401
|
-
- pause_agent
|
|
402
|
-
required:
|
|
403
|
-
- type
|
|
404
|
-
- type: object
|
|
405
|
-
properties:
|
|
406
|
-
type:
|
|
407
|
-
enum:
|
|
408
|
-
- resume_agent
|
|
409
|
-
required:
|
|
410
|
-
- type
|
|
411
|
-
- type: object
|
|
412
|
-
properties:
|
|
413
|
-
type:
|
|
414
|
-
enum:
|
|
415
|
-
- assign_task
|
|
416
|
-
description:
|
|
417
|
-
type: string
|
|
418
|
-
required:
|
|
419
|
-
- type
|
|
420
|
-
- description
|
|
421
|
-
- type: object
|
|
422
|
-
properties:
|
|
423
|
-
type:
|
|
424
|
-
enum:
|
|
425
|
-
- cancel_task
|
|
426
|
-
taskId:
|
|
427
|
-
type: string
|
|
428
|
-
required:
|
|
429
|
-
- type
|
|
430
|
-
- taskId
|
|
431
|
-
- type: object
|
|
432
|
-
properties:
|
|
433
|
-
type:
|
|
434
|
-
enum:
|
|
435
|
-
- update_goal
|
|
436
|
-
goal:
|
|
437
|
-
type: string
|
|
438
|
-
required:
|
|
439
|
-
- type
|
|
440
|
-
- goal
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { components } from "./types";
|
|
2
|
-
import { schemas } from "./zod";
|
|
3
|
-
type Schema<T extends keyof typeof schemas> = {
|
|
4
|
-
schema: (typeof schemas)[T];
|
|
5
|
-
type: T extends keyof components["schemas"] ? components["schemas"][T] : unknown;
|
|
6
|
-
};
|
|
7
|
-
export declare const AIChatSettings: Schema<"AIChatSettings">;
|
|
8
|
-
export declare const AIChatMessage: Schema<"AIChatMessage">;
|
|
9
|
-
export declare const AIChatState: Schema<"AIChatState">;
|
|
10
|
-
export declare const AIChatEvent: Schema<"AIChatEvent">;
|
|
11
|
-
export declare const AIChatCommand: Schema<"AIChatCommand">;
|
|
12
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AIChatCommand = exports.AIChatEvent = exports.AIChatState = exports.AIChatMessage = exports.AIChatSettings = void 0;
|
|
4
|
-
const zod_1 = require("./zod");
|
|
5
|
-
function createSchema(name) {
|
|
6
|
-
return {
|
|
7
|
-
schema: zod_1.schemas[name],
|
|
8
|
-
type: {},
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
exports.AIChatSettings = createSchema("AIChatSettings");
|
|
12
|
-
exports.AIChatMessage = createSchema("AIChatMessage");
|
|
13
|
-
exports.AIChatState = createSchema("AIChatState");
|
|
14
|
-
exports.AIChatEvent = createSchema("AIChatEvent");
|
|
15
|
-
exports.AIChatCommand = createSchema("AIChatCommand");
|
|
16
|
-
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/util.aiChat/_gen/schema.ts"],"names":[],"mappings":";;;AAKA,+BAAgC;AAOhC,SAAS,YAAY,CACnB,IAAO;IAEP,OAAO;QACL,MAAM,EAAE,aAAO,CAAC,IAAI,CAAC;QAErB,IAAI,EAAE,EAAgF;KACvF,CAAC;AACJ,CAAC;AAEY,QAAA,cAAc,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC;AAChD,QAAA,aAAa,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;AAC9C,QAAA,WAAW,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;AAC1C,QAAA,WAAW,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;AAC1C,QAAA,aAAa,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
export type paths = Record<string, never>;
|
|
2
|
-
export type webhooks = Record<string, never>;
|
|
3
|
-
export interface components {
|
|
4
|
-
schemas: {
|
|
5
|
-
AIChatSettings: {
|
|
6
|
-
id: string;
|
|
7
|
-
displayName: string;
|
|
8
|
-
systemPrompt: string;
|
|
9
|
-
initialMessage?: string;
|
|
10
|
-
maxTokens?: number;
|
|
11
|
-
temperature?: number;
|
|
12
|
-
notes?: string;
|
|
13
|
-
};
|
|
14
|
-
AIChatMessage: {
|
|
15
|
-
id: string;
|
|
16
|
-
role: "user" | "assistant" | "system" | "tool";
|
|
17
|
-
content: string;
|
|
18
|
-
timestamp: string;
|
|
19
|
-
toolCalls?: {
|
|
20
|
-
id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
arguments: Record<string, never>;
|
|
23
|
-
}[];
|
|
24
|
-
toolCallId?: string;
|
|
25
|
-
error?: string;
|
|
26
|
-
};
|
|
27
|
-
AIChatState: {
|
|
28
|
-
messages?: {
|
|
29
|
-
id: string;
|
|
30
|
-
role: "user" | "assistant" | "system" | "tool";
|
|
31
|
-
content: string;
|
|
32
|
-
timestamp: string;
|
|
33
|
-
toolCalls?: {
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
arguments: Record<string, never>;
|
|
37
|
-
}[];
|
|
38
|
-
toolCallId?: string;
|
|
39
|
-
error?: string;
|
|
40
|
-
}[];
|
|
41
|
-
isThinking?: boolean;
|
|
42
|
-
currentProvider?: string;
|
|
43
|
-
providerAvailable?: boolean;
|
|
44
|
-
lastError?: string;
|
|
45
|
-
conversationStarted?: string;
|
|
46
|
-
};
|
|
47
|
-
AIChatEvent: {
|
|
48
|
-
type: "message_sent";
|
|
49
|
-
message: {
|
|
50
|
-
id: string;
|
|
51
|
-
role: "user" | "assistant" | "system" | "tool";
|
|
52
|
-
content: string;
|
|
53
|
-
timestamp: string;
|
|
54
|
-
toolCalls?: {
|
|
55
|
-
id: string;
|
|
56
|
-
name: string;
|
|
57
|
-
arguments: Record<string, never>;
|
|
58
|
-
}[];
|
|
59
|
-
toolCallId?: string;
|
|
60
|
-
error?: string;
|
|
61
|
-
};
|
|
62
|
-
} | {
|
|
63
|
-
type: "message_received";
|
|
64
|
-
message: {
|
|
65
|
-
id: string;
|
|
66
|
-
role: "user" | "assistant" | "system" | "tool";
|
|
67
|
-
content: string;
|
|
68
|
-
timestamp: string;
|
|
69
|
-
toolCalls?: {
|
|
70
|
-
id: string;
|
|
71
|
-
name: string;
|
|
72
|
-
arguments: Record<string, never>;
|
|
73
|
-
}[];
|
|
74
|
-
toolCallId?: string;
|
|
75
|
-
error?: string;
|
|
76
|
-
};
|
|
77
|
-
} | {
|
|
78
|
-
type: "conversation_reset";
|
|
79
|
-
timestamp: string;
|
|
80
|
-
} | {
|
|
81
|
-
type: "error_occurred";
|
|
82
|
-
error: string;
|
|
83
|
-
};
|
|
84
|
-
AIChatCommand: {
|
|
85
|
-
type: "send_message";
|
|
86
|
-
content: string;
|
|
87
|
-
} | {
|
|
88
|
-
type: "reset_conversation";
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
responses: never;
|
|
92
|
-
parameters: never;
|
|
93
|
-
requestBodies: never;
|
|
94
|
-
headers: never;
|
|
95
|
-
pathItems: never;
|
|
96
|
-
}
|
|
97
|
-
export type $defs = Record<string, never>;
|
|
98
|
-
export type operations = Record<string, never>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/util.aiChat/_gen/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.schemas = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const AIChatSettings = zod_1.z
|
|
6
|
-
.object({
|
|
7
|
-
id: zod_1.z.string(),
|
|
8
|
-
displayName: zod_1.z.string(),
|
|
9
|
-
systemPrompt: zod_1.z.string(),
|
|
10
|
-
initialMessage: zod_1.z.string().optional(),
|
|
11
|
-
maxTokens: zod_1.z.number().optional(),
|
|
12
|
-
temperature: zod_1.z.number().optional(),
|
|
13
|
-
notes: zod_1.z.string().optional(),
|
|
14
|
-
})
|
|
15
|
-
.strict();
|
|
16
|
-
const AIChatMessage = zod_1.z
|
|
17
|
-
.object({
|
|
18
|
-
id: zod_1.z.string(),
|
|
19
|
-
role: zod_1.z.enum(["user", "assistant", "system", "tool"]),
|
|
20
|
-
content: zod_1.z.string(),
|
|
21
|
-
timestamp: zod_1.z.string().datetime({ offset: true }),
|
|
22
|
-
toolCalls: zod_1.z
|
|
23
|
-
.array(zod_1.z
|
|
24
|
-
.object({
|
|
25
|
-
id: zod_1.z.string(),
|
|
26
|
-
name: zod_1.z.string(),
|
|
27
|
-
arguments: zod_1.z.object({}).partial().strict(),
|
|
28
|
-
})
|
|
29
|
-
.strict())
|
|
30
|
-
.optional(),
|
|
31
|
-
toolCallId: zod_1.z.string().optional(),
|
|
32
|
-
error: zod_1.z.string().optional(),
|
|
33
|
-
})
|
|
34
|
-
.strict();
|
|
35
|
-
const AIChatState = zod_1.z
|
|
36
|
-
.object({
|
|
37
|
-
messages: zod_1.z.array(zod_1.z
|
|
38
|
-
.object({
|
|
39
|
-
id: zod_1.z.string(),
|
|
40
|
-
role: zod_1.z.enum(["user", "assistant", "system", "tool"]),
|
|
41
|
-
content: zod_1.z.string(),
|
|
42
|
-
timestamp: zod_1.z.string().datetime({ offset: true }),
|
|
43
|
-
toolCalls: zod_1.z
|
|
44
|
-
.array(zod_1.z
|
|
45
|
-
.object({
|
|
46
|
-
id: zod_1.z.string(),
|
|
47
|
-
name: zod_1.z.string(),
|
|
48
|
-
arguments: zod_1.z.object({}).partial().strict(),
|
|
49
|
-
})
|
|
50
|
-
.strict())
|
|
51
|
-
.optional(),
|
|
52
|
-
toolCallId: zod_1.z.string().optional(),
|
|
53
|
-
error: zod_1.z.string().optional(),
|
|
54
|
-
})
|
|
55
|
-
.strict()),
|
|
56
|
-
isThinking: zod_1.z.boolean(),
|
|
57
|
-
currentProvider: zod_1.z.string(),
|
|
58
|
-
providerAvailable: zod_1.z.boolean(),
|
|
59
|
-
lastError: zod_1.z.string(),
|
|
60
|
-
conversationStarted: zod_1.z.string().datetime({ offset: true }),
|
|
61
|
-
})
|
|
62
|
-
.partial()
|
|
63
|
-
.strict();
|
|
64
|
-
const AIChatEvent = zod_1.z.union([
|
|
65
|
-
zod_1.z
|
|
66
|
-
.object({
|
|
67
|
-
type: zod_1.z.unknown(),
|
|
68
|
-
message: zod_1.z
|
|
69
|
-
.object({
|
|
70
|
-
id: zod_1.z.string(),
|
|
71
|
-
role: zod_1.z.enum(["user", "assistant", "system", "tool"]),
|
|
72
|
-
content: zod_1.z.string(),
|
|
73
|
-
timestamp: zod_1.z.string().datetime({ offset: true }),
|
|
74
|
-
toolCalls: zod_1.z
|
|
75
|
-
.array(zod_1.z
|
|
76
|
-
.object({
|
|
77
|
-
id: zod_1.z.string(),
|
|
78
|
-
name: zod_1.z.string(),
|
|
79
|
-
arguments: zod_1.z.object({}).partial().strict(),
|
|
80
|
-
})
|
|
81
|
-
.strict())
|
|
82
|
-
.optional(),
|
|
83
|
-
toolCallId: zod_1.z.string().optional(),
|
|
84
|
-
error: zod_1.z.string().optional(),
|
|
85
|
-
})
|
|
86
|
-
.strict(),
|
|
87
|
-
})
|
|
88
|
-
.strict(),
|
|
89
|
-
zod_1.z
|
|
90
|
-
.object({
|
|
91
|
-
type: zod_1.z.unknown(),
|
|
92
|
-
message: zod_1.z
|
|
93
|
-
.object({
|
|
94
|
-
id: zod_1.z.string(),
|
|
95
|
-
role: zod_1.z.enum(["user", "assistant", "system", "tool"]),
|
|
96
|
-
content: zod_1.z.string(),
|
|
97
|
-
timestamp: zod_1.z.string().datetime({ offset: true }),
|
|
98
|
-
toolCalls: zod_1.z
|
|
99
|
-
.array(zod_1.z
|
|
100
|
-
.object({
|
|
101
|
-
id: zod_1.z.string(),
|
|
102
|
-
name: zod_1.z.string(),
|
|
103
|
-
arguments: zod_1.z.object({}).partial().strict(),
|
|
104
|
-
})
|
|
105
|
-
.strict())
|
|
106
|
-
.optional(),
|
|
107
|
-
toolCallId: zod_1.z.string().optional(),
|
|
108
|
-
error: zod_1.z.string().optional(),
|
|
109
|
-
})
|
|
110
|
-
.strict(),
|
|
111
|
-
})
|
|
112
|
-
.strict(),
|
|
113
|
-
zod_1.z
|
|
114
|
-
.object({
|
|
115
|
-
type: zod_1.z.unknown(),
|
|
116
|
-
timestamp: zod_1.z.string().datetime({ offset: true }),
|
|
117
|
-
})
|
|
118
|
-
.strict(),
|
|
119
|
-
zod_1.z.object({ type: zod_1.z.unknown(), error: zod_1.z.string() }).strict(),
|
|
120
|
-
]);
|
|
121
|
-
const AIChatCommand = zod_1.z.union([
|
|
122
|
-
zod_1.z.object({ type: zod_1.z.unknown(), content: zod_1.z.string() }).strict(),
|
|
123
|
-
zod_1.z.object({ type: zod_1.z.unknown() }).strict(),
|
|
124
|
-
]);
|
|
125
|
-
exports.schemas = {
|
|
126
|
-
AIChatSettings,
|
|
127
|
-
AIChatMessage,
|
|
128
|
-
AIChatState,
|
|
129
|
-
AIChatEvent,
|
|
130
|
-
AIChatCommand,
|
|
131
|
-
};
|
|
132
|
-
//# sourceMappingURL=zod.js.map
|