@linnlabs/linnkit 0.37.2 → 0.37.3
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/CHANGELOG.md +13 -0
- package/dist/cli.cjs +236 -232
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +236 -232
- package/dist/cli.js.map +1 -1
- package/dist/context-manager.cjs +197 -197
- package/dist/context-manager.cjs.map +1 -1
- package/dist/context-manager.js +197 -197
- package/dist/context-manager.js.map +1 -1
- package/dist/index.cjs +236 -232
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +236 -232
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +236 -232
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +236 -232
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel.cjs +236 -232
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.js +236 -232
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +236 -232
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +236 -232
- package/dist/testkit.js.map +1 -1
- package/docs/integration/persistence.md +10 -0
- package/package.json +2 -2
package/dist/context-manager.cjs
CHANGED
|
@@ -6681,6 +6681,199 @@ function createDefaultSystemReminderRegistry() {
|
|
|
6681
6681
|
});
|
|
6682
6682
|
}
|
|
6683
6683
|
createDefaultSystemReminderRegistry();
|
|
6684
|
+
|
|
6685
|
+
// src/runtime-kernel/events/eventGovernance.ts
|
|
6686
|
+
var RUNTIME_EVENT_TYPES_NEVER_REPLAYED_TO_UI = [
|
|
6687
|
+
"audit_envelope",
|
|
6688
|
+
"final_answer_chunk",
|
|
6689
|
+
"final_answer_reset",
|
|
6690
|
+
"subrun_trace",
|
|
6691
|
+
"context_usage_snapshot"
|
|
6692
|
+
];
|
|
6693
|
+
function isRecord2(value) {
|
|
6694
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
6695
|
+
}
|
|
6696
|
+
function isToolCallDecisionEvent(event) {
|
|
6697
|
+
return event.type === "tool_call_decision";
|
|
6698
|
+
}
|
|
6699
|
+
function isToolProcessEvent(event) {
|
|
6700
|
+
return event.type === "tool_process";
|
|
6701
|
+
}
|
|
6702
|
+
function isSubRunTraceRuntimeEvent(event) {
|
|
6703
|
+
return event.type === "subrun_trace";
|
|
6704
|
+
}
|
|
6705
|
+
function isRunExecutionMetricsRuntimeEvent(event) {
|
|
6706
|
+
return event.type === "run_execution_metrics";
|
|
6707
|
+
}
|
|
6708
|
+
function isContextUsageSnapshotRuntimeEvent(event) {
|
|
6709
|
+
return event.type === "context_usage_snapshot";
|
|
6710
|
+
}
|
|
6711
|
+
function isRequiresUserInteractionRuntimeEvent(event) {
|
|
6712
|
+
return event.type === "requires_user_interaction";
|
|
6713
|
+
}
|
|
6714
|
+
function isAuditEnvelopeRuntimeEvent(event) {
|
|
6715
|
+
return event.type === "audit_envelope";
|
|
6716
|
+
}
|
|
6717
|
+
function isControlRuntimeEvent(event) {
|
|
6718
|
+
return event.type === "control";
|
|
6719
|
+
}
|
|
6720
|
+
function isHiddenUserInputEvent(event) {
|
|
6721
|
+
if (event.type !== "user_input") {
|
|
6722
|
+
return false;
|
|
6723
|
+
}
|
|
6724
|
+
const metadata = isRecord2(event.metadata) ? event.metadata : void 0;
|
|
6725
|
+
const ui = metadata && isRecord2(metadata.ui) ? metadata.ui : void 0;
|
|
6726
|
+
return ui?.presentation === "hidden";
|
|
6727
|
+
}
|
|
6728
|
+
function isEmptyTerminalAssistantRuntimeEvent(event) {
|
|
6729
|
+
if (event.type !== "thought" && event.type !== "final_answer") {
|
|
6730
|
+
return false;
|
|
6731
|
+
}
|
|
6732
|
+
return event.content.trim().length === 0;
|
|
6733
|
+
}
|
|
6734
|
+
function isConversationUiRuntimeEvent(event) {
|
|
6735
|
+
return event.lane === "foreground" && event.visibility === "conversation";
|
|
6736
|
+
}
|
|
6737
|
+
function shouldPersistRuntimeEvent(event) {
|
|
6738
|
+
return describeRuntimeEventLifecycle(event).persist;
|
|
6739
|
+
}
|
|
6740
|
+
function requirePersistableRuntimeEvent(event) {
|
|
6741
|
+
if (!shouldPersistRuntimeEvent(event)) {
|
|
6742
|
+
throw new Error(`RuntimeEvent ${event.id} (${event.type}) is not eligible for persistence.`);
|
|
6743
|
+
}
|
|
6744
|
+
return event;
|
|
6745
|
+
}
|
|
6746
|
+
function requirePersistableRoutedRuntimeEvent(event) {
|
|
6747
|
+
requirePersistableRuntimeEvent(event);
|
|
6748
|
+
return parseRoutedRuntimeEvent(event);
|
|
6749
|
+
}
|
|
6750
|
+
function shouldReplayRuntimeEventToUi(event) {
|
|
6751
|
+
return describeRuntimeEventLifecycle(event).replayToUi;
|
|
6752
|
+
}
|
|
6753
|
+
function shouldEnterAgentContext(event) {
|
|
6754
|
+
return describeRuntimeEventLifecycle(event).enterAgentContext;
|
|
6755
|
+
}
|
|
6756
|
+
function getRuntimeEventUiProjectionKind(event) {
|
|
6757
|
+
if (isHiddenUserInputEvent(event)) {
|
|
6758
|
+
return "hidden";
|
|
6759
|
+
}
|
|
6760
|
+
switch (event.type) {
|
|
6761
|
+
case "user_input":
|
|
6762
|
+
return "user_input";
|
|
6763
|
+
case "thought":
|
|
6764
|
+
return "thought";
|
|
6765
|
+
case "final_answer":
|
|
6766
|
+
return "final_answer";
|
|
6767
|
+
case "final_answer_chunk":
|
|
6768
|
+
return "final_answer_chunk";
|
|
6769
|
+
case "final_answer_reset":
|
|
6770
|
+
return "final_answer_reset";
|
|
6771
|
+
case "tool_call_decision":
|
|
6772
|
+
return "tool_call_decision";
|
|
6773
|
+
case "tool_process":
|
|
6774
|
+
return "tool_process";
|
|
6775
|
+
case "tool_output":
|
|
6776
|
+
return "tool_output";
|
|
6777
|
+
case "requires_user_interaction":
|
|
6778
|
+
return "requires_user_interaction";
|
|
6779
|
+
case "audit_envelope":
|
|
6780
|
+
return "audit_envelope";
|
|
6781
|
+
case "subrun_trace":
|
|
6782
|
+
return "subrun_trace";
|
|
6783
|
+
case "error":
|
|
6784
|
+
return "error";
|
|
6785
|
+
case "context_usage_snapshot":
|
|
6786
|
+
return "context_usage_snapshot";
|
|
6787
|
+
case "run_execution_metrics":
|
|
6788
|
+
return "run_execution_metrics";
|
|
6789
|
+
case "history_summary":
|
|
6790
|
+
return "history_summary";
|
|
6791
|
+
default:
|
|
6792
|
+
return "unsupported";
|
|
6793
|
+
}
|
|
6794
|
+
}
|
|
6795
|
+
function describeRuntimeEventLifecycle(event) {
|
|
6796
|
+
const uiProjectionKind = getRuntimeEventUiProjectionKind(event);
|
|
6797
|
+
const persist = event.ephemeral !== true && !isToolProcessEvent(event) && !isSubRunTraceRuntimeEvent(event);
|
|
6798
|
+
const replayToUi = persist && isConversationUiRuntimeEvent(event) && uiProjectionKind !== "hidden" && uiProjectionKind !== "audit_envelope" && uiProjectionKind !== "final_answer_chunk" && uiProjectionKind !== "final_answer_reset" && uiProjectionKind !== "unsupported";
|
|
6799
|
+
const enterAgentContext = (() => {
|
|
6800
|
+
if (uiProjectionKind === "unsupported") {
|
|
6801
|
+
return false;
|
|
6802
|
+
}
|
|
6803
|
+
if (isSubRunTraceRuntimeEvent(event)) {
|
|
6804
|
+
return false;
|
|
6805
|
+
}
|
|
6806
|
+
if (isRunExecutionMetricsRuntimeEvent(event)) {
|
|
6807
|
+
return false;
|
|
6808
|
+
}
|
|
6809
|
+
if (isContextUsageSnapshotRuntimeEvent(event)) {
|
|
6810
|
+
return false;
|
|
6811
|
+
}
|
|
6812
|
+
if (event.type === "error") {
|
|
6813
|
+
return false;
|
|
6814
|
+
}
|
|
6815
|
+
if (isRequiresUserInteractionRuntimeEvent(event)) {
|
|
6816
|
+
return false;
|
|
6817
|
+
}
|
|
6818
|
+
if (isAuditEnvelopeRuntimeEvent(event)) {
|
|
6819
|
+
return false;
|
|
6820
|
+
}
|
|
6821
|
+
if (isControlRuntimeEvent(event)) {
|
|
6822
|
+
return false;
|
|
6823
|
+
}
|
|
6824
|
+
if (isHiddenUserInputEvent(event)) {
|
|
6825
|
+
return false;
|
|
6826
|
+
}
|
|
6827
|
+
if (isToolProcessEvent(event)) {
|
|
6828
|
+
return false;
|
|
6829
|
+
}
|
|
6830
|
+
if (event.type === "thought") {
|
|
6831
|
+
return false;
|
|
6832
|
+
}
|
|
6833
|
+
if (event.type === "final_answer_chunk") {
|
|
6834
|
+
return false;
|
|
6835
|
+
}
|
|
6836
|
+
if (event.type === "final_answer_reset") {
|
|
6837
|
+
return false;
|
|
6838
|
+
}
|
|
6839
|
+
if (isEmptyTerminalAssistantRuntimeEvent(event)) {
|
|
6840
|
+
return false;
|
|
6841
|
+
}
|
|
6842
|
+
return true;
|
|
6843
|
+
})();
|
|
6844
|
+
const realtimeChannel = (() => {
|
|
6845
|
+
switch (uiProjectionKind) {
|
|
6846
|
+
case "thought":
|
|
6847
|
+
case "final_answer":
|
|
6848
|
+
case "final_answer_chunk":
|
|
6849
|
+
case "final_answer_reset":
|
|
6850
|
+
case "tool_call_decision":
|
|
6851
|
+
case "tool_process":
|
|
6852
|
+
case "tool_output":
|
|
6853
|
+
case "requires_user_interaction":
|
|
6854
|
+
case "subrun_trace":
|
|
6855
|
+
case "error":
|
|
6856
|
+
case "context_usage_snapshot":
|
|
6857
|
+
case "run_execution_metrics":
|
|
6858
|
+
case "history_summary":
|
|
6859
|
+
return "event_bus_sse";
|
|
6860
|
+
case "audit_envelope":
|
|
6861
|
+
return "none";
|
|
6862
|
+
default:
|
|
6863
|
+
return "none";
|
|
6864
|
+
}
|
|
6865
|
+
})();
|
|
6866
|
+
return {
|
|
6867
|
+
uiProjectionKind,
|
|
6868
|
+
persist,
|
|
6869
|
+
replayToUi,
|
|
6870
|
+
enterAgentContext,
|
|
6871
|
+
realtimeChannel
|
|
6872
|
+
};
|
|
6873
|
+
}
|
|
6874
|
+
function shouldEmitRuntimeEventToSse(event) {
|
|
6875
|
+
return describeRuntimeEventLifecycle(event).realtimeChannel === "event_bus_sse";
|
|
6876
|
+
}
|
|
6684
6877
|
var UnknownRecord = zod.z.record(zod.z.string(), zod.z.unknown());
|
|
6685
6878
|
var NonBlankIdentifier = zod.z.string().min(1).refine(
|
|
6686
6879
|
(value) => value === value.trim(),
|
|
@@ -6800,11 +6993,11 @@ var AgentEventSchema = zod.z.discriminatedUnion("type", [
|
|
|
6800
6993
|
});
|
|
6801
6994
|
|
|
6802
6995
|
// src/runtime-kernel/events/provider-sidecar.ts
|
|
6803
|
-
var
|
|
6996
|
+
var isRecord3 = (value) => !!value && typeof value === "object" && !Array.isArray(value);
|
|
6804
6997
|
function readMetaFromEvent(event) {
|
|
6805
|
-
if (!
|
|
6998
|
+
if (!isRecord3(event)) return void 0;
|
|
6806
6999
|
const value = event["meta"];
|
|
6807
|
-
return
|
|
7000
|
+
return isRecord3(value) ? value : void 0;
|
|
6808
7001
|
}
|
|
6809
7002
|
|
|
6810
7003
|
// src/runtime-kernel/events/agent-to-runtime.ts
|
|
@@ -6812,7 +7005,7 @@ function agentEventToRuntime(agentEvent, context, options = {}) {
|
|
|
6812
7005
|
return mapAgentEventToRuntime(agentEvent, context, options);
|
|
6813
7006
|
}
|
|
6814
7007
|
function mapAgentEventToRuntime(agentEvent, context, options) {
|
|
6815
|
-
if (
|
|
7008
|
+
if (isRecord3(agentEvent) && agentEvent["type"] === "history_summary") {
|
|
6816
7009
|
const event = RuntimeEvent.parse(agentEvent);
|
|
6817
7010
|
return context.metadata ? {
|
|
6818
7011
|
...event,
|
|
@@ -7271,199 +7464,6 @@ __export(events_exports, {
|
|
|
7271
7464
|
shouldReplayRuntimeEventToUi: () => shouldReplayRuntimeEventToUi
|
|
7272
7465
|
});
|
|
7273
7466
|
|
|
7274
|
-
// src/runtime-kernel/events/eventGovernance.ts
|
|
7275
|
-
var RUNTIME_EVENT_TYPES_NEVER_REPLAYED_TO_UI = [
|
|
7276
|
-
"audit_envelope",
|
|
7277
|
-
"final_answer_chunk",
|
|
7278
|
-
"final_answer_reset",
|
|
7279
|
-
"subrun_trace",
|
|
7280
|
-
"context_usage_snapshot"
|
|
7281
|
-
];
|
|
7282
|
-
function isRecord4(value) {
|
|
7283
|
-
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
7284
|
-
}
|
|
7285
|
-
function isToolCallDecisionEvent(event) {
|
|
7286
|
-
return event.type === "tool_call_decision";
|
|
7287
|
-
}
|
|
7288
|
-
function isToolProcessEvent(event) {
|
|
7289
|
-
return event.type === "tool_process";
|
|
7290
|
-
}
|
|
7291
|
-
function isSubRunTraceRuntimeEvent(event) {
|
|
7292
|
-
return event.type === "subrun_trace";
|
|
7293
|
-
}
|
|
7294
|
-
function isRunExecutionMetricsRuntimeEvent(event) {
|
|
7295
|
-
return event.type === "run_execution_metrics";
|
|
7296
|
-
}
|
|
7297
|
-
function isContextUsageSnapshotRuntimeEvent(event) {
|
|
7298
|
-
return event.type === "context_usage_snapshot";
|
|
7299
|
-
}
|
|
7300
|
-
function isRequiresUserInteractionRuntimeEvent(event) {
|
|
7301
|
-
return event.type === "requires_user_interaction";
|
|
7302
|
-
}
|
|
7303
|
-
function isAuditEnvelopeRuntimeEvent(event) {
|
|
7304
|
-
return event.type === "audit_envelope";
|
|
7305
|
-
}
|
|
7306
|
-
function isControlRuntimeEvent(event) {
|
|
7307
|
-
return event.type === "control";
|
|
7308
|
-
}
|
|
7309
|
-
function isHiddenUserInputEvent(event) {
|
|
7310
|
-
if (event.type !== "user_input") {
|
|
7311
|
-
return false;
|
|
7312
|
-
}
|
|
7313
|
-
const metadata = isRecord4(event.metadata) ? event.metadata : void 0;
|
|
7314
|
-
const ui = metadata && isRecord4(metadata.ui) ? metadata.ui : void 0;
|
|
7315
|
-
return ui?.presentation === "hidden";
|
|
7316
|
-
}
|
|
7317
|
-
function isEmptyTerminalAssistantRuntimeEvent(event) {
|
|
7318
|
-
if (event.type !== "thought" && event.type !== "final_answer") {
|
|
7319
|
-
return false;
|
|
7320
|
-
}
|
|
7321
|
-
return event.content.trim().length === 0;
|
|
7322
|
-
}
|
|
7323
|
-
function isConversationUiRuntimeEvent(event) {
|
|
7324
|
-
return event.lane === "foreground" && event.visibility === "conversation";
|
|
7325
|
-
}
|
|
7326
|
-
function shouldPersistRuntimeEvent(event) {
|
|
7327
|
-
return describeRuntimeEventLifecycle(event).persist;
|
|
7328
|
-
}
|
|
7329
|
-
function requirePersistableRuntimeEvent(event) {
|
|
7330
|
-
if (!shouldPersistRuntimeEvent(event)) {
|
|
7331
|
-
throw new Error(`RuntimeEvent ${event.id} (${event.type}) is not eligible for persistence.`);
|
|
7332
|
-
}
|
|
7333
|
-
return event;
|
|
7334
|
-
}
|
|
7335
|
-
function requirePersistableRoutedRuntimeEvent(event) {
|
|
7336
|
-
requirePersistableRuntimeEvent(event);
|
|
7337
|
-
return parseRoutedRuntimeEvent(event);
|
|
7338
|
-
}
|
|
7339
|
-
function shouldReplayRuntimeEventToUi(event) {
|
|
7340
|
-
return describeRuntimeEventLifecycle(event).replayToUi;
|
|
7341
|
-
}
|
|
7342
|
-
function shouldEnterAgentContext(event) {
|
|
7343
|
-
return describeRuntimeEventLifecycle(event).enterAgentContext;
|
|
7344
|
-
}
|
|
7345
|
-
function getRuntimeEventUiProjectionKind(event) {
|
|
7346
|
-
if (isHiddenUserInputEvent(event)) {
|
|
7347
|
-
return "hidden";
|
|
7348
|
-
}
|
|
7349
|
-
switch (event.type) {
|
|
7350
|
-
case "user_input":
|
|
7351
|
-
return "user_input";
|
|
7352
|
-
case "thought":
|
|
7353
|
-
return "thought";
|
|
7354
|
-
case "final_answer":
|
|
7355
|
-
return "final_answer";
|
|
7356
|
-
case "final_answer_chunk":
|
|
7357
|
-
return "final_answer_chunk";
|
|
7358
|
-
case "final_answer_reset":
|
|
7359
|
-
return "final_answer_reset";
|
|
7360
|
-
case "tool_call_decision":
|
|
7361
|
-
return "tool_call_decision";
|
|
7362
|
-
case "tool_process":
|
|
7363
|
-
return "tool_process";
|
|
7364
|
-
case "tool_output":
|
|
7365
|
-
return "tool_output";
|
|
7366
|
-
case "requires_user_interaction":
|
|
7367
|
-
return "requires_user_interaction";
|
|
7368
|
-
case "audit_envelope":
|
|
7369
|
-
return "audit_envelope";
|
|
7370
|
-
case "subrun_trace":
|
|
7371
|
-
return "subrun_trace";
|
|
7372
|
-
case "error":
|
|
7373
|
-
return "error";
|
|
7374
|
-
case "context_usage_snapshot":
|
|
7375
|
-
return "context_usage_snapshot";
|
|
7376
|
-
case "run_execution_metrics":
|
|
7377
|
-
return "run_execution_metrics";
|
|
7378
|
-
case "history_summary":
|
|
7379
|
-
return "history_summary";
|
|
7380
|
-
default:
|
|
7381
|
-
return "unsupported";
|
|
7382
|
-
}
|
|
7383
|
-
}
|
|
7384
|
-
function describeRuntimeEventLifecycle(event) {
|
|
7385
|
-
const uiProjectionKind = getRuntimeEventUiProjectionKind(event);
|
|
7386
|
-
const persist = event.ephemeral !== true && !isToolProcessEvent(event) && !isSubRunTraceRuntimeEvent(event);
|
|
7387
|
-
const replayToUi = persist && isConversationUiRuntimeEvent(event) && uiProjectionKind !== "hidden" && uiProjectionKind !== "audit_envelope" && uiProjectionKind !== "final_answer_chunk" && uiProjectionKind !== "final_answer_reset" && uiProjectionKind !== "unsupported";
|
|
7388
|
-
const enterAgentContext = (() => {
|
|
7389
|
-
if (uiProjectionKind === "unsupported") {
|
|
7390
|
-
return false;
|
|
7391
|
-
}
|
|
7392
|
-
if (isSubRunTraceRuntimeEvent(event)) {
|
|
7393
|
-
return false;
|
|
7394
|
-
}
|
|
7395
|
-
if (isRunExecutionMetricsRuntimeEvent(event)) {
|
|
7396
|
-
return false;
|
|
7397
|
-
}
|
|
7398
|
-
if (isContextUsageSnapshotRuntimeEvent(event)) {
|
|
7399
|
-
return false;
|
|
7400
|
-
}
|
|
7401
|
-
if (event.type === "error") {
|
|
7402
|
-
return false;
|
|
7403
|
-
}
|
|
7404
|
-
if (isRequiresUserInteractionRuntimeEvent(event)) {
|
|
7405
|
-
return false;
|
|
7406
|
-
}
|
|
7407
|
-
if (isAuditEnvelopeRuntimeEvent(event)) {
|
|
7408
|
-
return false;
|
|
7409
|
-
}
|
|
7410
|
-
if (isControlRuntimeEvent(event)) {
|
|
7411
|
-
return false;
|
|
7412
|
-
}
|
|
7413
|
-
if (isHiddenUserInputEvent(event)) {
|
|
7414
|
-
return false;
|
|
7415
|
-
}
|
|
7416
|
-
if (isToolProcessEvent(event)) {
|
|
7417
|
-
return false;
|
|
7418
|
-
}
|
|
7419
|
-
if (event.type === "thought") {
|
|
7420
|
-
return false;
|
|
7421
|
-
}
|
|
7422
|
-
if (event.type === "final_answer_chunk") {
|
|
7423
|
-
return false;
|
|
7424
|
-
}
|
|
7425
|
-
if (event.type === "final_answer_reset") {
|
|
7426
|
-
return false;
|
|
7427
|
-
}
|
|
7428
|
-
if (isEmptyTerminalAssistantRuntimeEvent(event)) {
|
|
7429
|
-
return false;
|
|
7430
|
-
}
|
|
7431
|
-
return true;
|
|
7432
|
-
})();
|
|
7433
|
-
const realtimeChannel = (() => {
|
|
7434
|
-
switch (uiProjectionKind) {
|
|
7435
|
-
case "thought":
|
|
7436
|
-
case "final_answer":
|
|
7437
|
-
case "final_answer_chunk":
|
|
7438
|
-
case "final_answer_reset":
|
|
7439
|
-
case "tool_call_decision":
|
|
7440
|
-
case "tool_process":
|
|
7441
|
-
case "tool_output":
|
|
7442
|
-
case "requires_user_interaction":
|
|
7443
|
-
case "subrun_trace":
|
|
7444
|
-
case "error":
|
|
7445
|
-
case "context_usage_snapshot":
|
|
7446
|
-
case "run_execution_metrics":
|
|
7447
|
-
case "history_summary":
|
|
7448
|
-
return "event_bus_sse";
|
|
7449
|
-
case "audit_envelope":
|
|
7450
|
-
return "none";
|
|
7451
|
-
default:
|
|
7452
|
-
return "none";
|
|
7453
|
-
}
|
|
7454
|
-
})();
|
|
7455
|
-
return {
|
|
7456
|
-
uiProjectionKind,
|
|
7457
|
-
persist,
|
|
7458
|
-
replayToUi,
|
|
7459
|
-
enterAgentContext,
|
|
7460
|
-
realtimeChannel
|
|
7461
|
-
};
|
|
7462
|
-
}
|
|
7463
|
-
function shouldEmitRuntimeEventToSse(event) {
|
|
7464
|
-
return describeRuntimeEventLifecycle(event).realtimeChannel === "event_bus_sse";
|
|
7465
|
-
}
|
|
7466
|
-
|
|
7467
7467
|
// src/runtime-kernel/events/finalAnswerCompletion.ts
|
|
7468
7468
|
function findTerminalFinalAnswer(events) {
|
|
7469
7469
|
for (let index = events.length - 1; index >= 0; index -= 1) {
|