@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.
Files changed (103) hide show
  1. package/client/info.js +1626 -1313
  2. package/client/style.css +6 -598
  3. package/lib/info.js +6 -4
  4. package/lib/info.js.map +1 -1
  5. package/lib/processor.objectDetect/_gen/schema.d.ts +12 -0
  6. package/lib/processor.objectDetect/_gen/schema.js +16 -0
  7. package/lib/processor.objectDetect/_gen/schema.js.map +1 -0
  8. package/lib/processor.objectDetect/_gen/types.d.ts +49 -0
  9. package/lib/processor.objectDetect/_gen/types.js.map +1 -0
  10. package/lib/processor.objectDetect/_gen/zod.js +60 -0
  11. package/lib/processor.objectDetect/_gen/zod.js.map +1 -0
  12. package/lib/processor.objectDetect/info.d.ts +27 -0
  13. package/lib/processor.objectDetect/info.js +63 -0
  14. package/lib/processor.objectDetect/info.js.map +1 -0
  15. package/lib/processor.objectDetect/inline-view.d.ts +6 -0
  16. package/lib/processor.objectDetect/inline-view.js +41 -0
  17. package/lib/processor.objectDetect/inline-view.js.map +1 -0
  18. package/lib/processor.objectDetect/runtime.d.ts +28 -0
  19. package/lib/processor.objectDetect/runtime.js +112 -0
  20. package/lib/processor.objectDetect/runtime.js.map +1 -0
  21. package/lib/processor.objectDetect/types.yaml +78 -0
  22. package/lib/test/output.tams.js.map +1 -1
  23. package/lib/util.claudeAgent/_gen/schema.d.ts +17 -0
  24. package/lib/util.claudeAgent/_gen/schema.js +21 -0
  25. package/lib/util.claudeAgent/_gen/schema.js.map +1 -0
  26. package/lib/util.claudeAgent/_gen/types.d.ts +370 -0
  27. package/lib/util.claudeAgent/_gen/types.js.map +1 -0
  28. package/lib/util.claudeAgent/_gen/zod.js +147 -0
  29. package/lib/util.claudeAgent/_gen/zod.js.map +1 -0
  30. package/lib/util.claudeAgent/info.d.ts +63 -0
  31. package/lib/util.claudeAgent/info.js +131 -0
  32. package/lib/util.claudeAgent/info.js.map +1 -0
  33. package/lib/util.claudeAgent/runtime.d.ts +105 -0
  34. package/lib/util.claudeAgent/runtime.js +567 -0
  35. package/lib/util.claudeAgent/runtime.js.map +1 -0
  36. package/lib/util.claudeAgent/types.yaml +393 -0
  37. package/lib/util.geminiAgent/_gen/schema.d.ts +17 -0
  38. package/lib/util.geminiAgent/_gen/schema.js +21 -0
  39. package/lib/util.geminiAgent/_gen/schema.js.map +1 -0
  40. package/lib/util.geminiAgent/_gen/types.d.ts +370 -0
  41. package/lib/util.geminiAgent/_gen/types.js.map +1 -0
  42. package/lib/util.geminiAgent/_gen/zod.d.ts +2 -0
  43. package/lib/util.geminiAgent/_gen/zod.js +147 -0
  44. package/lib/util.geminiAgent/_gen/zod.js.map +1 -0
  45. package/lib/util.geminiAgent/info.d.ts +63 -0
  46. package/lib/util.geminiAgent/info.js +131 -0
  47. package/lib/util.geminiAgent/info.js.map +1 -0
  48. package/lib/util.geminiAgent/runtime.d.ts +107 -0
  49. package/lib/util.geminiAgent/runtime.js +621 -0
  50. package/lib/util.geminiAgent/runtime.js.map +1 -0
  51. package/lib/util.geminiAgent/types.yaml +392 -0
  52. package/package.json +24 -5
  53. package/client/util.aiChat/styles.css +0 -371
  54. package/lib/util.agent/_gen/schema.d.ts +0 -13
  55. package/lib/util.agent/_gen/schema.js +0 -17
  56. package/lib/util.agent/_gen/schema.js.map +0 -1
  57. package/lib/util.agent/_gen/types.d.ts +0 -343
  58. package/lib/util.agent/_gen/types.js.map +0 -1
  59. package/lib/util.agent/_gen/zod.js +0 -206
  60. package/lib/util.agent/_gen/zod.js.map +0 -1
  61. package/lib/util.agent/fullscreen-view.d.ts +0 -4
  62. package/lib/util.agent/fullscreen-view.js +0 -142
  63. package/lib/util.agent/fullscreen-view.js.map +0 -1
  64. package/lib/util.agent/info.d.ts +0 -126
  65. package/lib/util.agent/info.js +0 -141
  66. package/lib/util.agent/info.js.map +0 -1
  67. package/lib/util.agent/inline-view.d.ts +0 -6
  68. package/lib/util.agent/inline-view.js +0 -43
  69. package/lib/util.agent/inline-view.js.map +0 -1
  70. package/lib/util.agent/runtime.d.ts +0 -180
  71. package/lib/util.agent/runtime.js +0 -1254
  72. package/lib/util.agent/runtime.js.map +0 -1
  73. package/lib/util.agent/summary-view.d.ts +0 -4
  74. package/lib/util.agent/summary-view.js +0 -68
  75. package/lib/util.agent/summary-view.js.map +0 -1
  76. package/lib/util.agent/types.d.ts +0 -285
  77. package/lib/util.agent/types.js.map +0 -1
  78. package/lib/util.agent/types.yaml +0 -440
  79. package/lib/util.aiChat/_gen/schema.d.ts +0 -12
  80. package/lib/util.aiChat/_gen/schema.js +0 -16
  81. package/lib/util.aiChat/_gen/schema.js.map +0 -1
  82. package/lib/util.aiChat/_gen/types.d.ts +0 -98
  83. package/lib/util.aiChat/_gen/types.js.map +0 -1
  84. package/lib/util.aiChat/_gen/zod.js +0 -132
  85. package/lib/util.aiChat/_gen/zod.js.map +0 -1
  86. package/lib/util.aiChat/info.d.ts +0 -70
  87. package/lib/util.aiChat/info.js +0 -92
  88. package/lib/util.aiChat/info.js.map +0 -1
  89. package/lib/util.aiChat/runtime.d.ts +0 -32
  90. package/lib/util.aiChat/runtime.js +0 -304
  91. package/lib/util.aiChat/runtime.js.map +0 -1
  92. package/lib/util.aiChat/summary-view.d.ts +0 -7
  93. package/lib/util.aiChat/summary-view.js +0 -48
  94. package/lib/util.aiChat/summary-view.js.map +0 -1
  95. package/lib/util.aiChat/types.d.ts +0 -62
  96. package/lib/util.aiChat/types.js +0 -3
  97. package/lib/util.aiChat/types.js.map +0 -1
  98. package/lib/util.aiChat/types.yaml +0 -148
  99. /package/lib/{util.agent → processor.objectDetect}/_gen/types.js +0 -0
  100. /package/lib/{util.agent → processor.objectDetect}/_gen/zod.d.ts +0 -0
  101. /package/lib/{util.agent → util.claudeAgent/_gen}/types.js +0 -0
  102. /package/lib/{util.aiChat → util.claudeAgent}/_gen/zod.d.ts +0 -0
  103. /package/lib/{util.aiChat → util.geminiAgent}/_gen/types.js +0 -0
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SendPromptBody = exports.ActiveSubscription = exports.ActiveTimer = exports.ToolCall = exports.TriggerContext = exports.AgentInvocation = exports.Commands = exports.Events = exports.State = exports.ClaudeAgentConfig = 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.ClaudeAgentConfig = createSchema("ClaudeAgentConfig");
12
+ exports.State = createSchema("State");
13
+ exports.Events = createSchema("Events");
14
+ exports.Commands = createSchema("Commands");
15
+ exports.AgentInvocation = createSchema("AgentInvocation");
16
+ exports.TriggerContext = createSchema("TriggerContext");
17
+ exports.ToolCall = createSchema("ToolCall");
18
+ exports.ActiveTimer = createSchema("ActiveTimer");
19
+ exports.ActiveSubscription = createSchema("ActiveSubscription");
20
+ exports.SendPromptBody = createSchema("SendPromptBody");
21
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/util.claudeAgent/_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,iBAAiB,GAAG,YAAY,CAAC,mBAAmB,CAAC,CAAC;AACtD,QAAA,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;AAC9B,QAAA,MAAM,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;AAChC,QAAA,QAAQ,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;AACpC,QAAA,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;AAClD,QAAA,cAAc,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC;AAChD,QAAA,QAAQ,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;AACpC,QAAA,WAAW,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;AAC1C,QAAA,kBAAkB,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;AACxD,QAAA,cAAc,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,370 @@
1
+ export interface paths {
2
+ "/invocations": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ get: operations["getInvocations"];
10
+ put?: never;
11
+ post?: never;
12
+ delete?: never;
13
+ options?: never;
14
+ head?: never;
15
+ patch?: never;
16
+ trace?: never;
17
+ };
18
+ "/timers": {
19
+ parameters: {
20
+ query?: never;
21
+ header?: never;
22
+ path?: never;
23
+ cookie?: never;
24
+ };
25
+ get: operations["getTimers"];
26
+ put?: never;
27
+ post?: never;
28
+ delete?: never;
29
+ options?: never;
30
+ head?: never;
31
+ patch?: never;
32
+ trace?: never;
33
+ };
34
+ "/subscriptions": {
35
+ parameters: {
36
+ query?: never;
37
+ header?: never;
38
+ path?: never;
39
+ cookie?: never;
40
+ };
41
+ get: operations["getSubscriptions"];
42
+ put?: never;
43
+ post?: never;
44
+ delete?: never;
45
+ options?: never;
46
+ head?: never;
47
+ patch?: never;
48
+ trace?: never;
49
+ };
50
+ "/memory": {
51
+ parameters: {
52
+ query?: never;
53
+ header?: never;
54
+ path?: never;
55
+ cookie?: never;
56
+ };
57
+ get: operations["getMemory"];
58
+ put?: never;
59
+ post?: never;
60
+ delete: operations["clearMemory"];
61
+ options?: never;
62
+ head?: never;
63
+ patch?: never;
64
+ trace?: never;
65
+ };
66
+ "/prompt": {
67
+ parameters: {
68
+ query?: never;
69
+ header?: never;
70
+ path?: never;
71
+ cookie?: never;
72
+ };
73
+ get?: never;
74
+ put?: never;
75
+ post: operations["sendPrompt"];
76
+ delete?: never;
77
+ options?: never;
78
+ head?: never;
79
+ patch?: never;
80
+ trace?: never;
81
+ };
82
+ }
83
+ export type webhooks = Record<string, never>;
84
+ export interface components {
85
+ schemas: {
86
+ ClaudeAgentConfig: {
87
+ id: string;
88
+ displayName: string;
89
+ model?: string;
90
+ systemPrompt: string;
91
+ mission: string;
92
+ initialPrompt?: string;
93
+ maxStepsPerInvocation?: number;
94
+ notes?: string;
95
+ };
96
+ State: {
97
+ status?: "idle" | "thinking" | "error";
98
+ currentTask?: string;
99
+ activeTimerCount?: number;
100
+ activeSubscriptionCount?: number;
101
+ invocationCount?: number;
102
+ lastActivity?: string;
103
+ errorMessage?: string;
104
+ };
105
+ Events: {
106
+ type: "agent_invoked";
107
+ trigger: string;
108
+ prompt: string;
109
+ } | {
110
+ type: "agent_completed";
111
+ invocationId: string;
112
+ result: string;
113
+ toolsUsed?: string[];
114
+ durationMs?: number;
115
+ } | {
116
+ type: "timer_set";
117
+ timerId: string;
118
+ delayMs: number;
119
+ reason: string;
120
+ intervalMs?: number;
121
+ } | {
122
+ type: "timer_cancelled";
123
+ timerId: string;
124
+ } | {
125
+ type: "timer_fired";
126
+ timerId: string;
127
+ reason: string;
128
+ } | {
129
+ type: "subscription_added";
130
+ subscriptionId: string;
131
+ componentId: string;
132
+ } | {
133
+ type: "subscription_removed";
134
+ subscriptionId: string;
135
+ } | {
136
+ type: "error_occurred";
137
+ error: string;
138
+ };
139
+ Commands: {
140
+ type: "send_prompt";
141
+ prompt: string;
142
+ } | {
143
+ type: "cancel_current";
144
+ } | {
145
+ type: "clear_memory";
146
+ } | {
147
+ type: "clear_timers";
148
+ } | {
149
+ type: "clear_subscriptions";
150
+ };
151
+ AgentInvocation: {
152
+ id: string;
153
+ timestamp: string;
154
+ trigger: {
155
+ type: "user_command" | "timer" | "component_event";
156
+ source?: string;
157
+ details?: {
158
+ [key: string]: unknown;
159
+ };
160
+ };
161
+ prompt: string;
162
+ toolCalls?: {
163
+ toolName: string;
164
+ args?: {
165
+ [key: string]: unknown;
166
+ };
167
+ result?: string;
168
+ success?: boolean;
169
+ timestamp: string;
170
+ }[];
171
+ result?: string;
172
+ durationMs?: number;
173
+ };
174
+ TriggerContext: {
175
+ type: "user_command" | "timer" | "component_event";
176
+ source?: string;
177
+ details?: {
178
+ [key: string]: unknown;
179
+ };
180
+ };
181
+ ToolCall: {
182
+ toolName: string;
183
+ args?: {
184
+ [key: string]: unknown;
185
+ };
186
+ result?: string;
187
+ success?: boolean;
188
+ timestamp: string;
189
+ };
190
+ ActiveTimer: {
191
+ id: string;
192
+ reason: string;
193
+ firesAt: string;
194
+ remainingMs?: number;
195
+ intervalMs?: number;
196
+ };
197
+ ActiveSubscription: {
198
+ id: string;
199
+ componentId: string;
200
+ subscribedAt: string;
201
+ eventTypes?: string[];
202
+ };
203
+ SendPromptBody: {
204
+ prompt: string;
205
+ };
206
+ };
207
+ responses: never;
208
+ parameters: never;
209
+ requestBodies: never;
210
+ headers: never;
211
+ pathItems: never;
212
+ }
213
+ export type $defs = Record<string, never>;
214
+ export interface operations {
215
+ getInvocations: {
216
+ parameters: {
217
+ query?: never;
218
+ header?: never;
219
+ path?: never;
220
+ cookie?: never;
221
+ };
222
+ requestBody?: never;
223
+ responses: {
224
+ 200: {
225
+ headers: {
226
+ [name: string]: unknown;
227
+ };
228
+ content: {
229
+ "application/json": {
230
+ id: string;
231
+ timestamp: string;
232
+ trigger: {
233
+ type: "user_command" | "timer" | "component_event";
234
+ source?: string;
235
+ details?: {
236
+ [key: string]: unknown;
237
+ };
238
+ };
239
+ prompt: string;
240
+ toolCalls?: {
241
+ toolName: string;
242
+ args?: {
243
+ [key: string]: unknown;
244
+ };
245
+ result?: string;
246
+ success?: boolean;
247
+ timestamp: string;
248
+ }[];
249
+ result?: string;
250
+ durationMs?: number;
251
+ }[];
252
+ };
253
+ };
254
+ };
255
+ };
256
+ getTimers: {
257
+ parameters: {
258
+ query?: never;
259
+ header?: never;
260
+ path?: never;
261
+ cookie?: never;
262
+ };
263
+ requestBody?: never;
264
+ responses: {
265
+ 200: {
266
+ headers: {
267
+ [name: string]: unknown;
268
+ };
269
+ content: {
270
+ "application/json": {
271
+ id: string;
272
+ reason: string;
273
+ firesAt: string;
274
+ remainingMs?: number;
275
+ intervalMs?: number;
276
+ }[];
277
+ };
278
+ };
279
+ };
280
+ };
281
+ getSubscriptions: {
282
+ parameters: {
283
+ query?: never;
284
+ header?: never;
285
+ path?: never;
286
+ cookie?: never;
287
+ };
288
+ requestBody?: never;
289
+ responses: {
290
+ 200: {
291
+ headers: {
292
+ [name: string]: unknown;
293
+ };
294
+ content: {
295
+ "application/json": {
296
+ id: string;
297
+ componentId: string;
298
+ subscribedAt: string;
299
+ eventTypes?: string[];
300
+ }[];
301
+ };
302
+ };
303
+ };
304
+ };
305
+ getMemory: {
306
+ parameters: {
307
+ query?: never;
308
+ header?: never;
309
+ path?: never;
310
+ cookie?: never;
311
+ };
312
+ requestBody?: never;
313
+ responses: {
314
+ 200: {
315
+ headers: {
316
+ [name: string]: unknown;
317
+ };
318
+ content: {
319
+ "application/json": {
320
+ [key: string]: unknown;
321
+ };
322
+ };
323
+ };
324
+ };
325
+ };
326
+ clearMemory: {
327
+ parameters: {
328
+ query?: never;
329
+ header?: never;
330
+ path?: never;
331
+ cookie?: never;
332
+ };
333
+ requestBody?: never;
334
+ responses: {
335
+ 204: {
336
+ headers: {
337
+ [name: string]: unknown;
338
+ };
339
+ content?: never;
340
+ };
341
+ };
342
+ };
343
+ sendPrompt: {
344
+ parameters: {
345
+ query?: never;
346
+ header?: never;
347
+ path?: never;
348
+ cookie?: never;
349
+ };
350
+ requestBody: {
351
+ content: {
352
+ "application/json": {
353
+ prompt: string;
354
+ };
355
+ };
356
+ };
357
+ responses: {
358
+ 200: {
359
+ headers: {
360
+ [name: string]: unknown;
361
+ };
362
+ content: {
363
+ "application/json": {
364
+ invocationId?: string;
365
+ };
366
+ };
367
+ };
368
+ };
369
+ };
370
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/util.claudeAgent/_gen/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.schemas = void 0;
4
+ const zod_1 = require("zod");
5
+ const ClaudeAgentConfig = zod_1.z
6
+ .object({
7
+ id: zod_1.z.string(),
8
+ displayName: zod_1.z.string(),
9
+ model: zod_1.z.string().optional(),
10
+ systemPrompt: zod_1.z.string(),
11
+ mission: zod_1.z.string(),
12
+ initialPrompt: zod_1.z.string().optional(),
13
+ maxStepsPerInvocation: zod_1.z.number().optional(),
14
+ notes: zod_1.z.string().optional(),
15
+ })
16
+ .strict();
17
+ const State = zod_1.z
18
+ .object({
19
+ status: zod_1.z.enum(["idle", "thinking", "error"]),
20
+ currentTask: zod_1.z.string(),
21
+ activeTimerCount: zod_1.z.number(),
22
+ activeSubscriptionCount: zod_1.z.number(),
23
+ invocationCount: zod_1.z.number(),
24
+ lastActivity: zod_1.z.string().datetime({ offset: true }),
25
+ errorMessage: zod_1.z.string(),
26
+ })
27
+ .partial()
28
+ .strict();
29
+ const Events = zod_1.z.union([
30
+ zod_1.z
31
+ .object({ type: zod_1.z.unknown(), trigger: zod_1.z.string(), prompt: zod_1.z.string() })
32
+ .strict(),
33
+ zod_1.z
34
+ .object({
35
+ type: zod_1.z.unknown(),
36
+ invocationId: zod_1.z.string(),
37
+ result: zod_1.z.string(),
38
+ toolsUsed: zod_1.z.array(zod_1.z.string()).optional(),
39
+ durationMs: zod_1.z.number().optional(),
40
+ })
41
+ .strict(),
42
+ zod_1.z
43
+ .object({
44
+ type: zod_1.z.unknown(),
45
+ timerId: zod_1.z.string(),
46
+ delayMs: zod_1.z.number(),
47
+ reason: zod_1.z.string(),
48
+ intervalMs: zod_1.z.number().optional(),
49
+ })
50
+ .strict(),
51
+ zod_1.z.object({ type: zod_1.z.unknown(), timerId: zod_1.z.string() }).strict(),
52
+ zod_1.z
53
+ .object({ type: zod_1.z.unknown(), timerId: zod_1.z.string(), reason: zod_1.z.string() })
54
+ .strict(),
55
+ zod_1.z
56
+ .object({
57
+ type: zod_1.z.unknown(),
58
+ subscriptionId: zod_1.z.string(),
59
+ componentId: zod_1.z.string(),
60
+ })
61
+ .strict(),
62
+ zod_1.z
63
+ .object({ type: zod_1.z.unknown(), subscriptionId: zod_1.z.string() })
64
+ .strict(),
65
+ zod_1.z.object({ type: zod_1.z.unknown(), error: zod_1.z.string() }).strict(),
66
+ ]);
67
+ const Commands = zod_1.z.union([
68
+ zod_1.z.object({ type: zod_1.z.unknown(), prompt: zod_1.z.string() }).strict(),
69
+ zod_1.z.object({ type: zod_1.z.unknown() }).strict(),
70
+ zod_1.z.object({ type: zod_1.z.unknown() }).strict(),
71
+ zod_1.z.object({ type: zod_1.z.unknown() }).strict(),
72
+ zod_1.z.object({ type: zod_1.z.unknown() }).strict(),
73
+ ]);
74
+ const AgentInvocation = zod_1.z
75
+ .object({
76
+ id: zod_1.z.string(),
77
+ timestamp: zod_1.z.string().datetime({ offset: true }),
78
+ trigger: zod_1.z
79
+ .object({
80
+ type: zod_1.z.enum(["user_command", "timer", "component_event"]),
81
+ source: zod_1.z.string().optional(),
82
+ details: zod_1.z.object({}).partial().strict().optional(),
83
+ })
84
+ .strict(),
85
+ prompt: zod_1.z.string(),
86
+ toolCalls: zod_1.z
87
+ .array(zod_1.z
88
+ .object({
89
+ toolName: zod_1.z.string(),
90
+ args: zod_1.z.object({}).partial().strict().optional(),
91
+ result: zod_1.z.string().optional(),
92
+ success: zod_1.z.boolean().optional(),
93
+ timestamp: zod_1.z.string().datetime({ offset: true }),
94
+ })
95
+ .strict())
96
+ .optional(),
97
+ result: zod_1.z.string().optional(),
98
+ durationMs: zod_1.z.number().optional(),
99
+ })
100
+ .strict();
101
+ const TriggerContext = zod_1.z
102
+ .object({
103
+ type: zod_1.z.enum(["user_command", "timer", "component_event"]),
104
+ source: zod_1.z.string().optional(),
105
+ details: zod_1.z.object({}).partial().strict().optional(),
106
+ })
107
+ .strict();
108
+ const ToolCall = zod_1.z
109
+ .object({
110
+ toolName: zod_1.z.string(),
111
+ args: zod_1.z.object({}).partial().strict().optional(),
112
+ result: zod_1.z.string().optional(),
113
+ success: zod_1.z.boolean().optional(),
114
+ timestamp: zod_1.z.string().datetime({ offset: true }),
115
+ })
116
+ .strict();
117
+ const ActiveTimer = zod_1.z
118
+ .object({
119
+ id: zod_1.z.string(),
120
+ reason: zod_1.z.string(),
121
+ firesAt: zod_1.z.string().datetime({ offset: true }),
122
+ remainingMs: zod_1.z.number().optional(),
123
+ intervalMs: zod_1.z.number().optional(),
124
+ })
125
+ .strict();
126
+ const ActiveSubscription = zod_1.z
127
+ .object({
128
+ id: zod_1.z.string(),
129
+ componentId: zod_1.z.string(),
130
+ subscribedAt: zod_1.z.string().datetime({ offset: true }),
131
+ eventTypes: zod_1.z.array(zod_1.z.string()).optional(),
132
+ })
133
+ .strict();
134
+ const SendPromptBody = zod_1.z.object({ prompt: zod_1.z.string() }).strict();
135
+ exports.schemas = {
136
+ ClaudeAgentConfig,
137
+ State,
138
+ Events,
139
+ Commands,
140
+ AgentInvocation,
141
+ TriggerContext,
142
+ ToolCall,
143
+ ActiveTimer,
144
+ ActiveSubscription,
145
+ SendPromptBody,
146
+ };
147
+ //# sourceMappingURL=zod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zod.js","sourceRoot":"","sources":["../../../../src/util.claudeAgent/_gen/zod.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,iBAAiB,GAAG,OAAC;KACxB,MAAM,CAAC;IACN,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,OAAO,EAAE,OAAC,CAAC,MAA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AAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;CACjD,CAAC;KACD,MAAM,EAAE,CACR;AACH,MAAM,WAAW,GAAG,OAAC;KAClB,MAAM,CAAC;IACN,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC9C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC;KACD,MAAM,EAAE,CACR;AACH,MAAM,kBAAkB,GAAG,OAAC;KACzB,MAAM,CAAC;IACN,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACnD,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC;KACD,MAAM,EAAE,CACR;AACH,MAAM,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAEpD,QAAA,OAAO,GAA8B;IAChD,iBAAiB;IACjB,KAAK;IACL,MAAM;IACN,QAAQ;IACR,eAAe;IACf,cAAc;IACd,QAAQ;IACR,WAAW;IACX,kBAAkB;IAClB,cAAc;CACf,CAAC"}
@@ -0,0 +1,63 @@
1
+ import type Registration from "@norskvideo/norsk-studio/lib/extension/registration";
2
+ export default function ({ defineComponent, validation: { Z }, }: Registration): import("@norskvideo/norsk-studio/lib/extension/client-types").NodeInfo<{
3
+ id: string;
4
+ displayName: string;
5
+ model?: string;
6
+ systemPrompt: string;
7
+ mission: string;
8
+ initialPrompt?: string;
9
+ maxStepsPerInvocation?: number;
10
+ notes?: string;
11
+ }, {
12
+ status?: "idle" | "thinking" | "error";
13
+ currentTask?: string;
14
+ activeTimerCount?: number;
15
+ activeSubscriptionCount?: number;
16
+ invocationCount?: number;
17
+ lastActivity?: string;
18
+ errorMessage?: string;
19
+ }, {
20
+ type: "send_prompt";
21
+ prompt: string;
22
+ } | {
23
+ type: "cancel_current";
24
+ } | {
25
+ type: "clear_memory";
26
+ } | {
27
+ type: "clear_timers";
28
+ } | {
29
+ type: "clear_subscriptions";
30
+ }, {
31
+ type: "agent_invoked";
32
+ trigger: string;
33
+ prompt: string;
34
+ } | {
35
+ type: "agent_completed";
36
+ invocationId: string;
37
+ result: string;
38
+ toolsUsed?: string[];
39
+ durationMs?: number;
40
+ } | {
41
+ type: "timer_set";
42
+ timerId: string;
43
+ delayMs: number;
44
+ reason: string;
45
+ intervalMs?: number;
46
+ } | {
47
+ type: "timer_cancelled";
48
+ timerId: string;
49
+ } | {
50
+ type: "timer_fired";
51
+ timerId: string;
52
+ reason: string;
53
+ } | {
54
+ type: "subscription_added";
55
+ subscriptionId: string;
56
+ componentId: string;
57
+ } | {
58
+ type: "subscription_removed";
59
+ subscriptionId: string;
60
+ } | {
61
+ type: "error_occurred";
62
+ error: string;
63
+ }>;