@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,180 +0,0 @@
|
|
|
1
|
-
import { Norsk } from '@norskvideo/norsk-sdk';
|
|
2
|
-
import { OnCreated, ServerComponentDefinition, ServerComponentSchemas, StudioRuntime, InstanceRouteArgs } from '@norskvideo/norsk-studio/lib/extension/runtime-types';
|
|
3
|
-
import { CustomAutoDuplexNode } from '@norskvideo/norsk-studio/lib/extension/base-nodes';
|
|
4
|
-
import { ToolProvider, LLMTool } from '@norskvideo/norsk-studio/lib/server/llm-service-v2';
|
|
5
|
-
import { components } from './_gen/types';
|
|
6
|
-
export type AgentSettings = components['schemas']['AgentSettings'];
|
|
7
|
-
export type AgentTask = components['schemas']['AgentTask'];
|
|
8
|
-
export type AgentAction = components['schemas']['AgentAction'];
|
|
9
|
-
export type AgentState = components['schemas']['AgentState'];
|
|
10
|
-
export type AgentEvent = components['schemas']['AgentEvent'];
|
|
11
|
-
export type AgentCommand = components['schemas']['AgentCommand'];
|
|
12
|
-
export default class AgentDefinition implements ServerComponentDefinition<AgentSettings, Agent, AgentState, AgentCommand, AgentEvent> {
|
|
13
|
-
schemas(): Promise<ServerComponentSchemas>;
|
|
14
|
-
instanceRoutes(): Promise<import("@norskvideo/norsk-studio/lib/extension/runtime-types").RouteInfo<InstanceRouteArgs<{
|
|
15
|
-
id: string;
|
|
16
|
-
displayName: string;
|
|
17
|
-
systemPrompt: string;
|
|
18
|
-
goal: string;
|
|
19
|
-
maxCyclesPerMinute?: number;
|
|
20
|
-
notes?: string;
|
|
21
|
-
}, Agent, {
|
|
22
|
-
status: "idle" | "analyzing" | "planning" | "executing" | "paused" | "error";
|
|
23
|
-
isRunning: boolean;
|
|
24
|
-
currentTask?: {
|
|
25
|
-
id: string;
|
|
26
|
-
description: string;
|
|
27
|
-
status: "pending" | "in_progress" | "completed" | "failed";
|
|
28
|
-
createdAt: string;
|
|
29
|
-
completedAt?: string;
|
|
30
|
-
result?: string;
|
|
31
|
-
error?: string;
|
|
32
|
-
};
|
|
33
|
-
completedTasks: {
|
|
34
|
-
id: string;
|
|
35
|
-
description: string;
|
|
36
|
-
status: "pending" | "in_progress" | "completed" | "failed";
|
|
37
|
-
createdAt: string;
|
|
38
|
-
completedAt?: string;
|
|
39
|
-
result?: string;
|
|
40
|
-
error?: string;
|
|
41
|
-
}[];
|
|
42
|
-
recentActions: {
|
|
43
|
-
id: string;
|
|
44
|
-
type: "tool_call" | "component_command" | "event_subscribe" | "analysis";
|
|
45
|
-
timestamp: string;
|
|
46
|
-
description: string;
|
|
47
|
-
parameters?: {
|
|
48
|
-
[key: string]: unknown;
|
|
49
|
-
};
|
|
50
|
-
result?: {
|
|
51
|
-
[key: string]: unknown;
|
|
52
|
-
};
|
|
53
|
-
success: boolean;
|
|
54
|
-
error?: string;
|
|
55
|
-
}[];
|
|
56
|
-
lastError?: string;
|
|
57
|
-
cyclesThisMinute: number;
|
|
58
|
-
totalCycles: number;
|
|
59
|
-
startedAt?: string;
|
|
60
|
-
lastCycleAt?: string;
|
|
61
|
-
discoveredComponents: {
|
|
62
|
-
id: string;
|
|
63
|
-
type: string;
|
|
64
|
-
capabilities: string[];
|
|
65
|
-
}[];
|
|
66
|
-
subscribedEvents: {
|
|
67
|
-
componentId: string;
|
|
68
|
-
eventType: string;
|
|
69
|
-
}[];
|
|
70
|
-
}, {
|
|
71
|
-
type: "start_agent";
|
|
72
|
-
} | {
|
|
73
|
-
type: "stop_agent";
|
|
74
|
-
} | {
|
|
75
|
-
type: "pause_agent";
|
|
76
|
-
} | {
|
|
77
|
-
type: "resume_agent";
|
|
78
|
-
} | {
|
|
79
|
-
type: "assign_task";
|
|
80
|
-
description: string;
|
|
81
|
-
} | {
|
|
82
|
-
type: "cancel_task";
|
|
83
|
-
taskId: string;
|
|
84
|
-
} | {
|
|
85
|
-
type: "update_goal";
|
|
86
|
-
goal: string;
|
|
87
|
-
}, {
|
|
88
|
-
type: "agent_started";
|
|
89
|
-
timestamp: string;
|
|
90
|
-
} | {
|
|
91
|
-
type: "agent_stopped";
|
|
92
|
-
timestamp: string;
|
|
93
|
-
} | {
|
|
94
|
-
type: "task_created";
|
|
95
|
-
task: {
|
|
96
|
-
id: string;
|
|
97
|
-
description: string;
|
|
98
|
-
status: "pending" | "in_progress" | "completed" | "failed";
|
|
99
|
-
createdAt: string;
|
|
100
|
-
completedAt?: string;
|
|
101
|
-
result?: string;
|
|
102
|
-
error?: string;
|
|
103
|
-
};
|
|
104
|
-
} | {
|
|
105
|
-
type: "task_completed";
|
|
106
|
-
task: {
|
|
107
|
-
id: string;
|
|
108
|
-
description: string;
|
|
109
|
-
status: "pending" | "in_progress" | "completed" | "failed";
|
|
110
|
-
createdAt: string;
|
|
111
|
-
completedAt?: string;
|
|
112
|
-
result?: string;
|
|
113
|
-
error?: string;
|
|
114
|
-
};
|
|
115
|
-
} | {
|
|
116
|
-
type: "action_taken";
|
|
117
|
-
action: {
|
|
118
|
-
id: string;
|
|
119
|
-
type: "tool_call" | "component_command" | "event_subscribe" | "analysis";
|
|
120
|
-
timestamp: string;
|
|
121
|
-
description: string;
|
|
122
|
-
parameters?: {
|
|
123
|
-
[key: string]: unknown;
|
|
124
|
-
};
|
|
125
|
-
result?: {
|
|
126
|
-
[key: string]: unknown;
|
|
127
|
-
};
|
|
128
|
-
success: boolean;
|
|
129
|
-
error?: string;
|
|
130
|
-
};
|
|
131
|
-
} | {
|
|
132
|
-
type: "error_occurred";
|
|
133
|
-
error: string;
|
|
134
|
-
} | {
|
|
135
|
-
type: "component_discovered";
|
|
136
|
-
componentId: string;
|
|
137
|
-
capabilities: string[];
|
|
138
|
-
}>>[]>;
|
|
139
|
-
create(_norsk: Norsk, cfg: AgentSettings, cb: OnCreated<Agent>, runtime: StudioRuntime<AgentState, AgentCommand, AgentEvent>): Promise<void>;
|
|
140
|
-
handleCommand(node: Agent, command: AgentCommand): void;
|
|
141
|
-
}
|
|
142
|
-
declare class Agent extends CustomAutoDuplexNode implements ToolProvider {
|
|
143
|
-
private config;
|
|
144
|
-
private runtime;
|
|
145
|
-
private isRunning;
|
|
146
|
-
private isPaused;
|
|
147
|
-
private cycleResetTimer?;
|
|
148
|
-
private cyclesThisMinute;
|
|
149
|
-
private totalCycles;
|
|
150
|
-
private memory?;
|
|
151
|
-
private initialized;
|
|
152
|
-
private timerQueue;
|
|
153
|
-
private initializationHistory;
|
|
154
|
-
private isExecutingCycle;
|
|
155
|
-
private activeTimers;
|
|
156
|
-
private immediateSubscriptions;
|
|
157
|
-
private aggregatedSubscriptions;
|
|
158
|
-
getAvailableTools(): LLMTool[];
|
|
159
|
-
constructor(config: AgentSettings, runtime: StudioRuntime<AgentState, AgentCommand, AgentEvent>);
|
|
160
|
-
start(): Promise<void>;
|
|
161
|
-
private initialize;
|
|
162
|
-
stop(): void;
|
|
163
|
-
pause(): void;
|
|
164
|
-
resume(): void;
|
|
165
|
-
handleHttpRequest(url: string, method: string): Promise<unknown>;
|
|
166
|
-
private makeDecision;
|
|
167
|
-
private parseStructuredResponse;
|
|
168
|
-
private setTimer;
|
|
169
|
-
private cancelTimer;
|
|
170
|
-
private subscribeImmediate;
|
|
171
|
-
private processImmediateEvent;
|
|
172
|
-
private extractFieldFromPayload;
|
|
173
|
-
private subscribeAggregated;
|
|
174
|
-
private unsubscribeEvent;
|
|
175
|
-
private processTimerQueue;
|
|
176
|
-
executeTool(name: string, args: Record<string, unknown>): Promise<unknown>;
|
|
177
|
-
private handleAgentTool;
|
|
178
|
-
private executeWithToolLooping;
|
|
179
|
-
}
|
|
180
|
-
export {};
|