@norskvideo/norsk-studio-alpha 1.27.0-2026-01-31-e37a5429 → 1.27.0-2026-02-02-24ae15e8

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 CHANGED
@@ -330,7 +330,7 @@ var require_util = __commonJS({
330
330
  exports.getObjectByType = getObjectByType;
331
331
  exports.getObjectByPath = getObjectByPath;
332
332
  exports.displayNodeId = displayNodeId;
333
- exports.assertUnreachable = assertUnreachable8;
333
+ exports.assertUnreachable = assertUnreachable9;
334
334
  exports.waitForCondition = waitForCondition;
335
335
  exports.waitForEvent = waitForEvent;
336
336
  exports.streamMatchesExpected = streamMatchesExpected;
@@ -405,7 +405,7 @@ var require_util = __commonJS({
405
405
  }
406
406
  return document2.components[id3]?.config?.displayName ?? id3;
407
407
  }
408
- function assertUnreachable8(_) {
408
+ function assertUnreachable9(_) {
409
409
  throw new Error("Didn't expect to get here");
410
410
  }
411
411
  async function waitForCondition(condition, timeout, interval, name) {
@@ -61933,7 +61933,7 @@ var require_summary_view = __commonJS({
61933
61933
  Object.defineProperty(exports, "__esModule", { value: true });
61934
61934
  var jsx_runtime_1 = require_jsx_runtime();
61935
61935
  var react_1 = require_react();
61936
- function AgentSummaryView3({ state, config, sendCommand, urls }) {
61936
+ function AgentSummaryView4({ state, config, sendCommand, urls }) {
61937
61937
  const [promptInput, setPromptInput] = (0, react_1.useState)("");
61938
61938
  const [timers, setTimers] = (0, react_1.useState)([]);
61939
61939
  const [subscriptions, setSubscriptions] = (0, react_1.useState)([]);
@@ -61994,7 +61994,7 @@ var require_summary_view = __commonJS({
61994
61994
  };
61995
61995
  return (0, jsx_runtime_1.jsxs)("div", { className: "dark:text-white text-black w-72 p-2", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between mb-3", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: `text-lg ${getStatusColor()}`, children: getStatusIcon() }), (0, jsx_runtime_1.jsx)("span", { className: `font-medium capitalize ${getStatusColor()}`, children: state.status || "idle" })] }), (0, jsx_runtime_1.jsxs)("span", { className: "text-xs text-gray-500", children: [state.invocationCount || 0, " invocations"] })] }), state.currentTask && (0, jsx_runtime_1.jsxs)("div", { className: "mb-3 p-2 bg-yellow-500/10 border border-yellow-500/20 rounded text-xs", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-yellow-400 font-medium", children: "Working on:" }), (0, jsx_runtime_1.jsx)("p", { className: "text-gray-300 mt-1 truncate", children: state.currentTask })] }), state.errorMessage && (0, jsx_runtime_1.jsxs)("div", { className: "mb-3 p-2 bg-red-500/10 border border-red-500/20 rounded text-xs", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-red-400 font-medium", children: "Error:" }), (0, jsx_runtime_1.jsx)("p", { className: "text-gray-300 mt-1", children: state.errorMessage })] }), (0, jsx_runtime_1.jsxs)("div", { className: "mb-3", children: [(0, jsx_runtime_1.jsx)("h4", { className: "text-xs font-semibold text-gray-400 mb-1", children: "Mission" }), (0, jsx_runtime_1.jsx)("p", { className: "text-xs text-gray-300 line-clamp-2", children: config.mission })] }), (0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-2 gap-2 mb-3 text-xs", children: [(0, jsx_runtime_1.jsxs)("div", { className: "p-2 bg-gray-700/30 rounded", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-gray-400", children: "Timers" }), (0, jsx_runtime_1.jsx)("span", { className: "float-right font-medium text-amber-400", children: timers.length })] }), (0, jsx_runtime_1.jsxs)("div", { className: "p-2 bg-gray-700/30 rounded", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-gray-400", children: "Subscriptions" }), (0, jsx_runtime_1.jsx)("span", { className: "float-right font-medium text-cyan-400", children: subscriptions.length })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "mb-3", children: [(0, jsx_runtime_1.jsx)("textarea", { value: promptInput, onChange: (e) => setPromptInput(e.target.value), onKeyDown: handleKeyDown, placeholder: "Send a message to the agent...", className: "w-full p-2 text-xs bg-gray-700/50 border border-gray-600 rounded resize-none focus:outline-none focus:border-blue-500", rows: 2, disabled: state.status === "thinking" }), (0, jsx_runtime_1.jsx)("button", { onClick: handleSendPrompt, disabled: !promptInput.trim() || state.status === "thinking", className: "mt-1 w-full px-3 py-1.5 text-xs bg-blue-600 hover:bg-blue-700 disabled:bg-gray-600 disabled:cursor-not-allowed text-white rounded transition-colors", children: state.status === "thinking" ? "Thinking..." : "Send" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-1 text-xs", children: [(0, jsx_runtime_1.jsx)("button", { onClick: () => sendCommand({ type: "clear_timers" }), disabled: timers.length === 0, className: "flex-1 px-2 py-1 bg-gray-600 hover:bg-gray-500 disabled:bg-gray-700 disabled:text-gray-500 text-white rounded transition-colors", children: "Clear Timers" }), (0, jsx_runtime_1.jsx)("button", { onClick: () => sendCommand({ type: "clear_subscriptions" }), disabled: subscriptions.length === 0, className: "flex-1 px-2 py-1 bg-gray-600 hover:bg-gray-500 disabled:bg-gray-700 disabled:text-gray-500 text-white rounded transition-colors", children: "Clear Subs" }), (0, jsx_runtime_1.jsx)("button", { onClick: () => sendCommand({ type: "clear_memory" }), className: "flex-1 px-2 py-1 bg-gray-600 hover:bg-gray-500 text-white rounded transition-colors", children: "Clear Mem" })] }), state.lastActivity && (0, jsx_runtime_1.jsxs)("div", { className: "mt-2 text-xs text-gray-500 text-center", children: ["Last active: ", new Date(state.lastActivity).toLocaleTimeString()] })] });
61996
61996
  }
61997
- exports.default = AgentSummaryView3;
61997
+ exports.default = AgentSummaryView4;
61998
61998
  }
61999
61999
  });
62000
62000
 
@@ -62079,7 +62079,7 @@ var require_fullscreen_view = __commonJS({
62079
62079
  const styles = getTriggerStyles();
62080
62080
  return (0, jsx_runtime_1.jsxs)("div", { className: "space-y-3 mb-6", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex justify-start", children: (0, jsx_runtime_1.jsxs)("div", { className: "max-w-[80%]", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2 mb-1", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-lg", children: getTriggerIcon() }), (0, jsx_runtime_1.jsx)("span", { className: `text-xs font-medium ${styles.label}`, children: getTriggerLabel() }), (0, jsx_runtime_1.jsx)("span", { className: "text-xs text-gray-500", children: formatTimestamp(invocation.timestamp) })] }), (0, jsx_runtime_1.jsx)("div", { className: `${styles.bg} border ${styles.border} rounded-lg p-3 text-gray-200`, children: invocation.prompt })] }) }), hasToolCalls && (0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsxs)("div", { className: "max-w-[90%]", children: [(0, jsx_runtime_1.jsxs)("button", { onClick: () => setShowTools(!showTools), className: "text-xs text-purple-400 hover:text-purple-300 flex items-center gap-1", children: [(0, jsx_runtime_1.jsx)("span", { children: showTools ? "\u25BC" : "\u25B6" }), (0, jsx_runtime_1.jsxs)("span", { children: [invocation.toolCalls?.length, " tool call", (invocation.toolCalls?.length || 0) > 1 ? "s" : ""] })] }), showTools && invocation.toolCalls?.map((tc, i) => (0, jsx_runtime_1.jsx)(ToolCallEntry, { toolCall: tc }, i))] }) }), invocation.result && (0, jsx_runtime_1.jsx)("div", { className: "flex justify-end", children: (0, jsx_runtime_1.jsxs)("div", { className: "max-w-[80%]", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2 mb-1 justify-end", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-xs font-medium text-green-400", children: "Agent" }), invocation.durationMs && (0, jsx_runtime_1.jsxs)("span", { className: "text-xs text-gray-500", children: [invocation.durationMs, "ms"] }), (0, jsx_runtime_1.jsx)("span", { className: "text-lg", children: "\u{1F916}" })] }), (0, jsx_runtime_1.jsx)("div", { className: "bg-green-900/20 border border-green-500/30 rounded-lg p-3 text-gray-200 whitespace-pre-wrap", children: invocation.result })] }) })] });
62081
62081
  }
62082
- function AgentFullscreenView3({ state, config, sendCommand, urls, agentName = "Agent" }) {
62082
+ function AgentFullscreenView4({ state, config, sendCommand, urls, agentName = "Agent" }) {
62083
62083
  const [invocations, setInvocations] = (0, react_1.useState)([]);
62084
62084
  const [timers, setTimers] = (0, react_1.useState)([]);
62085
62085
  const [subscriptions, setSubscriptions] = (0, react_1.useState)([]);
@@ -62169,7 +62169,7 @@ var require_fullscreen_view = __commonJS({
62169
62169
  scrollRef.current?.scrollTo({ top: scrollRef.current.scrollHeight, behavior: "smooth" });
62170
62170
  }, className: "fixed bottom-24 right-80 px-3 py-2 bg-blue-600 hover:bg-blue-500 text-white rounded-full shadow-lg text-sm", children: "\u2193 Scroll to bottom" })] }), (0, jsx_runtime_1.jsx)("div", { className: "p-4 border-t border-gray-700 bg-gray-800", children: (0, jsx_runtime_1.jsxs)("div", { className: "max-w-3xl mx-auto", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex gap-3", children: [(0, jsx_runtime_1.jsx)("textarea", { value: promptInput, onChange: (e) => setPromptInput(e.target.value), onKeyDown: handleKeyDown, placeholder: "Send a message to the agent...", className: "flex-1 p-3 bg-gray-700 border border-gray-600 rounded-lg resize-none focus:outline-none focus:border-blue-500 text-white placeholder-gray-400", rows: 2, disabled: state.status === "thinking" }), (0, jsx_runtime_1.jsx)("button", { onClick: handleSendPrompt, disabled: !promptInput.trim() || state.status === "thinking", className: "px-6 py-2 bg-blue-600 hover:bg-blue-500 disabled:bg-gray-600 disabled:cursor-not-allowed text-white font-medium rounded-lg transition-colors self-end", children: state.status === "thinking" ? "Thinking..." : "Send" })] }), (0, jsx_runtime_1.jsx)("p", { className: "text-xs text-gray-500 mt-2", children: "Press Enter to send, Shift+Enter for new line" })] }) })] }), (0, jsx_runtime_1.jsxs)("div", { className: "w-72 border-l border-gray-700 bg-gray-800/50 flex flex-col overflow-hidden", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex-1 overflow-y-auto p-4 space-y-4", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between mb-2", children: [(0, jsx_runtime_1.jsxs)("h3", { className: "text-sm font-semibold text-gray-300 flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-cyan-400", children: "\u{1F4E1}" }), " Subscriptions"] }), (0, jsx_runtime_1.jsx)("span", { className: "text-xs text-gray-500", children: subscriptions.length })] }), subscriptions.length === 0 ? (0, jsx_runtime_1.jsx)("p", { className: "text-xs text-gray-500 italic", children: "No active subscriptions" }) : (0, jsx_runtime_1.jsx)("div", { className: "space-y-1", children: subscriptions.map((sub) => (0, jsx_runtime_1.jsxs)("div", { className: "text-xs p-2 bg-cyan-900/20 border border-cyan-500/20 rounded", children: [(0, jsx_runtime_1.jsx)("div", { className: "font-medium text-cyan-300", children: sub.componentId }), sub.eventTypes && sub.eventTypes.length > 0 && (0, jsx_runtime_1.jsxs)("div", { className: "text-gray-400 mt-1", children: ["Events: ", sub.eventTypes.join(", ")] })] }, sub.id)) })] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between mb-2", children: [(0, jsx_runtime_1.jsxs)("h3", { className: "text-sm font-semibold text-gray-300 flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-amber-400", children: "\u23F0" }), " Timers"] }), (0, jsx_runtime_1.jsx)("span", { className: "text-xs text-gray-500", children: timers.length })] }), timers.length === 0 ? (0, jsx_runtime_1.jsx)("p", { className: "text-xs text-gray-500 italic", children: "No active timers" }) : (0, jsx_runtime_1.jsx)("div", { className: "space-y-1", children: timers.map((timer) => (0, jsx_runtime_1.jsxs)("div", { className: "text-xs p-2 bg-amber-900/20 border border-amber-500/20 rounded", children: [(0, jsx_runtime_1.jsx)("div", { className: "font-medium text-amber-300", children: timer.reason }), (0, jsx_runtime_1.jsxs)("div", { className: "text-gray-400 mt-1", children: ["Fires: ", new Date(timer.firesAt).toLocaleTimeString()] })] }, timer.id)) })] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between mb-2", children: [(0, jsx_runtime_1.jsxs)("h3", { className: "text-sm font-semibold text-gray-300 flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-purple-400", children: "\u{1F9E0}" }), " Memory"] }), (0, jsx_runtime_1.jsxs)("span", { className: "text-xs text-gray-500", children: [memoryKeys.length, " items"] })] }), memoryKeys.length === 0 ? (0, jsx_runtime_1.jsx)("p", { className: "text-xs text-gray-500 italic", children: "No stored memory" }) : (0, jsx_runtime_1.jsx)("div", { className: "space-y-1", children: memoryKeys.map((key) => (0, jsx_runtime_1.jsx)(MemoryItem, { memoryKey: key, value: memory[key] }, key)) })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "p-4 border-t border-gray-700 space-y-2", children: [(0, jsx_runtime_1.jsx)("button", { onClick: () => sendCommand({ type: "clear_timers" }), disabled: timers.length === 0, className: "w-full px-3 py-1.5 text-xs bg-gray-600 hover:bg-gray-500 disabled:bg-gray-700 disabled:text-gray-500 text-white rounded transition-colors", children: "Clear Timers" }), (0, jsx_runtime_1.jsx)("button", { onClick: () => sendCommand({ type: "clear_subscriptions" }), disabled: subscriptions.length === 0, className: "w-full px-3 py-1.5 text-xs bg-gray-600 hover:bg-gray-500 disabled:bg-gray-700 disabled:text-gray-500 text-white rounded transition-colors", children: "Clear Subscriptions" }), (0, jsx_runtime_1.jsx)("button", { onClick: () => sendCommand({ type: "clear_memory" }), disabled: memoryKeys.length === 0, className: "w-full px-3 py-1.5 text-xs bg-gray-600 hover:bg-gray-500 disabled:bg-gray-700 disabled:text-gray-500 text-white rounded transition-colors", children: "Clear Memory" })] })] })] });
62171
62171
  }
62172
- exports.default = AgentFullscreenView3;
62172
+ exports.default = AgentFullscreenView4;
62173
62173
  }
62174
62174
  });
62175
62175
 
@@ -70424,7 +70424,7 @@ function SummaryView2({ state, config, sendCommand }) {
70424
70424
  var summary_default = SummaryView2;
70425
70425
 
70426
70426
  // build/client/processor.actionReplay/info.js
70427
- function info_default3({ defineComponent, assertUnreachable: assertUnreachable8 }) {
70427
+ function info_default3({ defineComponent, assertUnreachable: assertUnreachable9 }) {
70428
70428
  return defineComponent({
70429
70429
  identifier: "processor.actionReplay",
70430
70430
  category: "processor",
@@ -70469,7 +70469,7 @@ function info_default3({ defineComponent, assertUnreachable: assertUnreachable8
70469
70469
  case "replay-finished":
70470
70470
  return { ...state, replaying: false };
70471
70471
  default:
70472
- return assertUnreachable8(evType);
70472
+ return assertUnreachable9(evType);
70473
70473
  }
70474
70474
  }
70475
70475
  },
@@ -71429,6 +71429,139 @@ function assertUnreachable6(_) {
71429
71429
  throw new Error("Didn't expect to get here");
71430
71430
  }
71431
71431
 
71432
+ // build/client/util.openaiAgent/info.js
71433
+ var import_agent3 = __toESM(require_agent());
71434
+ function info_default12({ defineComponent, validation: { Z: Z3 } }) {
71435
+ return defineComponent({
71436
+ identifier: "util.openaiAgent",
71437
+ category: "processor",
71438
+ name: "OpenAI Agent",
71439
+ description: "An autonomous agent powered by OpenAI that can react to events from other components, execute commands, set timers, and maintain working memory. Uses the OpenAI Agents SDK with built-in agentic loop.",
71440
+ subscription: {},
71441
+ display: (_desc) => {
71442
+ return {};
71443
+ },
71444
+ runtime: {
71445
+ initialState: () => ({
71446
+ status: "idle",
71447
+ currentTask: void 0,
71448
+ activeTimerCount: 0,
71449
+ activeSubscriptionCount: 0,
71450
+ invocationCount: 0,
71451
+ lastActivity: void 0,
71452
+ errorMessage: void 0
71453
+ }),
71454
+ handleEvent(ev2, state) {
71455
+ const evType = ev2.type;
71456
+ switch (evType) {
71457
+ case "agent_invoked":
71458
+ state.status = "thinking";
71459
+ state.currentTask = ev2.prompt;
71460
+ break;
71461
+ case "agent_completed":
71462
+ state.status = "idle";
71463
+ state.currentTask = void 0;
71464
+ state.invocationCount = (state.invocationCount || 0) + 1;
71465
+ state.lastActivity = (/* @__PURE__ */ new Date()).toISOString();
71466
+ break;
71467
+ case "timer_set":
71468
+ state.activeTimerCount = (state.activeTimerCount || 0) + 1;
71469
+ break;
71470
+ case "timer_cancelled":
71471
+ case "timer_fired":
71472
+ state.activeTimerCount = Math.max(0, (state.activeTimerCount || 0) - 1);
71473
+ break;
71474
+ case "subscription_added":
71475
+ state.activeSubscriptionCount = (state.activeSubscriptionCount || 0) + 1;
71476
+ break;
71477
+ case "subscription_removed":
71478
+ state.activeSubscriptionCount = Math.max(0, (state.activeSubscriptionCount || 0) - 1);
71479
+ break;
71480
+ case "error_occurred":
71481
+ state.status = "error";
71482
+ state.errorMessage = ev2.error;
71483
+ break;
71484
+ default:
71485
+ assertUnreachable7(evType);
71486
+ }
71487
+ return { ...state };
71488
+ },
71489
+ summary: import_agent3.AgentSummaryView,
71490
+ fullscreen: (props) => (0, import_agent3.AgentFullscreenView)({ ...props, agentName: "OpenAI Agent" })
71491
+ },
71492
+ configForm: {
71493
+ form: {
71494
+ mission: {
71495
+ help: "The agent's ongoing task/goal for this workflow - what should it accomplish?",
71496
+ hint: {
71497
+ type: "text",
71498
+ validation: Z3.string().min(10).max(2e3)
71499
+ }
71500
+ },
71501
+ systemPrompt: {
71502
+ help: "Base instruction defining the agent's capabilities and how it should behave",
71503
+ hint: {
71504
+ type: "text",
71505
+ validation: Z3.string().min(10).max(4e3),
71506
+ defaultValue: `You are an autonomous agent monitoring a video processing workflow.
71507
+
71508
+ You have tools to:
71509
+ - Inspect the current workflow and discover component ids/purpose
71510
+ - Set timers for periodic checks or delayed actions
71511
+ - Subscribe to events from other components
71512
+ - Execute commands on components
71513
+ - Store information in working memory
71514
+
71515
+ When you receive events or timer notifications, evaluate them against your mission and take appropriate action.`
71516
+ }
71517
+ },
71518
+ model: {
71519
+ help: "OpenAI model to use",
71520
+ hint: {
71521
+ type: "select",
71522
+ options: [
71523
+ { value: "gpt-4o", display: "GPT-4o (recommended)" },
71524
+ { value: "gpt-4o-mini", display: "GPT-4o Mini (fast)" },
71525
+ { value: "gpt-4-turbo", display: "GPT-4 Turbo" },
71526
+ { value: "o1", display: "o1 (reasoning)" },
71527
+ { value: "o3-mini", display: "o3-mini (reasoning, fast)" }
71528
+ ],
71529
+ defaultValue: "gpt-4o"
71530
+ }
71531
+ },
71532
+ initialPrompt: {
71533
+ help: "Optional message to send when the agent starts (after mission is set)",
71534
+ hint: {
71535
+ type: "text",
71536
+ optional: true,
71537
+ validation: Z3.string().max(2e3),
71538
+ defaultValue: "Use the tools provided to discover component ids, and set up events and timers as necessary to complete the user mission"
71539
+ }
71540
+ },
71541
+ maxStepsPerInvocation: {
71542
+ help: "Maximum tool calls per agent invocation (default: 20)",
71543
+ advanced: true,
71544
+ hint: {
71545
+ type: "numeric",
71546
+ validation: Z3.number().min(1).max(100),
71547
+ defaultValue: 20
71548
+ }
71549
+ },
71550
+ notes: {
71551
+ help: "Notes about this agent",
71552
+ hint: {
71553
+ type: "text",
71554
+ optional: true
71555
+ }
71556
+ }
71557
+ }
71558
+ }
71559
+ });
71560
+ }
71561
+ function assertUnreachable7(_) {
71562
+ throw new Error("Didn't expect to get here");
71563
+ }
71564
+
71432
71565
  // build/client/util.timestamps/inline-view.js
71433
71566
  var import_jsx_runtime10 = __toESM(require_jsx_runtime());
71434
71567
  var import_react9 = __toESM(require_react());
@@ -85999,7 +86132,7 @@ function InlineView5({ state, config: _2 }) {
85999
86132
  var inline_view_default4 = InlineView5;
86000
86133
 
86001
86134
  // build/client/util.timestamps/info.js
86002
- function info_default12(R) {
86135
+ function info_default13(R) {
86003
86136
  const { defineComponent, All } = R;
86004
86137
  return defineComponent({
86005
86138
  identifier: "util.timestamps",
@@ -86037,7 +86170,7 @@ function info_default12(R) {
86037
86170
  break;
86038
86171
  }
86039
86172
  default:
86040
- assertUnreachable7(evType);
86173
+ assertUnreachable8(evType);
86041
86174
  }
86042
86175
  return { ...state };
86043
86176
  },
@@ -86048,7 +86181,7 @@ function info_default12(R) {
86048
86181
  }
86049
86182
  });
86050
86183
  }
86051
- function assertUnreachable7(_) {
86184
+ function assertUnreachable8(_) {
86052
86185
  throw new Error("Didn't expect to get here");
86053
86186
  }
86054
86187
 
@@ -86078,6 +86211,7 @@ AllComponents.push((r) => info_default9(r));
86078
86211
  AllComponents.push((r) => info_default10(r));
86079
86212
  AllComponents.push((r) => info_default11(r));
86080
86213
  AllComponents.push((r) => info_default12(r));
86214
+ AllComponents.push((r) => info_default13(r));
86081
86215
  export {
86082
86216
  getNodeInfo as default
86083
86217
  };
package/lib/info.js CHANGED
@@ -39,6 +39,8 @@ const info_10 = __importDefault(require("./util.claudeAgent/info"));
39
39
  AllComponents.push((r) => (0, info_10.default)(r));
40
40
  const info_11 = __importDefault(require("./util.geminiAgent/info"));
41
41
  AllComponents.push((r) => (0, info_11.default)(r));
42
- const info_12 = __importDefault(require("./util.timestamps/info"));
42
+ const info_12 = __importDefault(require("./util.openaiAgent/info"));
43
43
  AllComponents.push((r) => (0, info_12.default)(r));
44
+ const info_13 = __importDefault(require("./util.timestamps/info"));
45
+ AllComponents.push((r) => (0, info_13.default)(r));
44
46
  //# sourceMappingURL=info.js.map
package/lib/info.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/info.ts"],"names":[],"mappings":";;;;;AAYA,8BASC;AAdD,MAAM,qBAAqB,GAA4C,EAAE,CAAC;AAC1E,IAAI,WAAW,GAAG,KAAK,CAAC;AAExB,MAAM,aAAa,GAAkD,EAAE,CAAC;AAExE,SAAwB,WAAW,CAAC,CAAe,EAAE,IAAY;IAC/D,IAAG,CAAC,WAAW,EAAE,CAAC;QAChB,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC1B,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACf,qBAAqB,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAA;QACF,WAAW,GAAG,IAAI,CAAC;IACrB,CAAC;IACD,OAAO,qBAAqB,CA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emas)[T];
5
+ type: T extends keyof components["schemas"] ? components["schemas"][T] : unknown;
6
+ };
7
+ export declare const OpenAIAgentConfig: Schema<"OpenAIAgentConfig">;
8
+ export declare const State: Schema<"State">;
9
+ export declare const Events: Schema<"Events">;
10
+ export declare const Commands: Schema<"Commands">;
11
+ export declare const AgentInvocation: Schema<"AgentInvocation">;
12
+ export declare const TriggerContext: Schema<"TriggerContext">;
13
+ export declare const ToolCall: Schema<"ToolCall">;
14
+ export declare const ActiveTimer: Schema<"ActiveTimer">;
15
+ export declare const ActiveSubscription: Schema<"ActiveSubscription">;
16
+ export declare const SendPromptBody: Schema<"SendPromptBody">;
17
+ export {};
@@ -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.OpenAIAgentConfig = 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.OpenAIAgentConfig = createSchema("OpenAIAgentConfig");
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.openaiAgent/_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"}