🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ixo/oracles-events

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ixo/oracles-events - npm Package Compare versions

Comparing version
1.0.2
to
1.0.3
+9
dist/events/action-call/action-call.event.d.ts
import { BaseEvent, type WithRequiredEventProps } from '../base-event/base-event';
import { IActionCallEvent } from './types';
export declare class ActionCallEvent extends BaseEvent<IActionCallEvent> {
payload: WithRequiredEventProps<IActionCallEvent>;
constructor(payload: WithRequiredEventProps<IActionCallEvent>);
eventName: "action_call";
static eventName: "action_call";
}
//# sourceMappingURL=action-call.event.d.ts.map
{"version":3,"file":"action-call.event.d.ts","sourceRoot":"","sources":["../../../src/events/action-call/action-call.event.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,KAAK,sBAAsB,EAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAc,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEvD,qBAAa,eAAgB,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IAC3C,OAAO,EAAE,sBAAsB,CAAC,gBAAgB,CAAC;gBAAjD,OAAO,EAAE,sBAAsB,CAAC,gBAAgB,CAAC;IAK7D,SAAS,gBAAc;IAE9B,MAAM,CAAC,SAAS,gBAAc;CAC/B"}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActionCallEvent = void 0;
const base_event_1 = require("../base-event/base-event");
const types_1 = require("./types");
class ActionCallEvent extends base_event_1.BaseEvent {
payload;
constructor(payload) {
payload.status = payload.status ?? 'isRunning';
super();
this.payload = payload;
(0, base_event_1.shouldHaveSessionId)(payload);
}
eventName = types_1.EVENT_NAME;
static eventName = types_1.EVENT_NAME;
}
exports.ActionCallEvent = ActionCallEvent;
export { ActionCallEvent } from './action-call.event';
export type { IActionCallEvent } from './types';
export { EVENT_NAME as ACTION_CALL_EVENT_NAME } from './types';
//# sourceMappingURL=index.d.ts.map
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/events/action-call/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,UAAU,IAAI,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ACTION_CALL_EVENT_NAME = exports.ActionCallEvent = void 0;
var action_call_event_1 = require("./action-call.event");
Object.defineProperty(exports, "ActionCallEvent", { enumerable: true, get: function () { return action_call_event_1.ActionCallEvent; } });
var types_1 = require("./types");
Object.defineProperty(exports, "ACTION_CALL_EVENT_NAME", { enumerable: true, get: function () { return types_1.EVENT_NAME; } });
/**
* Action call event interface for AG-UI actions
*
* @remarks
* Args transmission strategy:
* - WebSocket events: Include full args (sent to frontend for handler execution and render)
* - SSE events: Exclude args (status-only updates for chat UI timeline)
*
* This design eliminates data duplication by sending args only once via WebSocket.
*/
export interface IActionCallEvent {
toolCallId: string;
toolName: string;
/** Args are sent via WebSocket only, not in SSE status updates */
args?: unknown;
status?: 'isRunning' | 'done' | 'error';
output?: string;
result?: unknown;
error?: string;
}
export declare const EVENT_NAME: "action_call";
//# sourceMappingURL=types.d.ts.map
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/events/action-call/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,UAAU,EAAG,aAAsB,CAAC"}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EVENT_NAME = void 0;
exports.EVENT_NAME = 'action_call';
+1
-0

@@ -9,2 +9,3 @@ export * from './base-event';

export * from './tool-call/tool-call.event';
export * from './action-call';
//# sourceMappingURL=index.d.ts.map
+1
-1

@@ -1,1 +0,1 @@

{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,+DAA+D,CAAC;AAC9E,cAAc,mBAAmB,CAAC;AAClC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,+DAA+D,CAAC;AAC9E,cAAc,mBAAmB,CAAC;AAClC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC"}

@@ -25,1 +25,2 @@ "use strict";

__exportStar(require("./tool-call/tool-call.event"), exports);
__exportStar(require("./action-call"), exports);

@@ -1,1 +0,1 @@

{"version":3,"file":"graph-event-emitter.d.ts","sourceRoot":"","sources":["../src/graph-event-emitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAW/D,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,qBAAqB,CAC1B,MAAM,EAAE,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,GACjD,IAAI;CAQR"}
{"version":3,"file":"graph-event-emitter.d.ts","sourceRoot":"","sources":["../src/graph-event-emitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAY/D,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,qBAAqB,CAC1B,MAAM,EAAE,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,GACjD,IAAI;CASR"}

@@ -16,2 +16,3 @@ "use strict";

events_1.BrowserToolCallEvent.registerEventHandlers(server);
events_1.ActionCallEvent.registerEventHandlers(server);
events_1.ReasoningEvent.registerEventHandlers(server);

@@ -18,0 +19,0 @@ }

import { type WithRequiredEventProps } from '../events/base-event/base-event';
import { ActionCallEvent } from '../events/action-call/action-call.event';
import { BrowserToolCallEvent } from '../events/browser-tool-call/browser-tool-call.event';

@@ -8,7 +9,8 @@ import { MessageCacheInvalidationEvent } from '../events/message-cache-invalidation';

import { ToolCallEvent } from '../events/tool-call/tool-call.event';
import { type IActionCallEvent } from '../events/action-call/types';
import { type IBrowserToolCallEvent } from '../events/browser-tool-call/types';
import { type IReasoningEvent } from '../events/reasoning-event/types';
import { type IToolCallEvent } from '../events/tool-call/types';
export type AllEvents = RouterEvent | ToolCallEvent | RenderComponentEvent | MessageCacheInvalidationEvent | BrowserToolCallEvent | ReasoningEvent;
export declare const AllEventsAsClass: (typeof BrowserToolCallEvent | typeof MessageCacheInvalidationEvent | typeof ReasoningEvent | typeof RenderComponentEvent | typeof RouterEvent | typeof ToolCallEvent)[];
export type AllEvents = RouterEvent | ToolCallEvent | RenderComponentEvent | MessageCacheInvalidationEvent | BrowserToolCallEvent | ReasoningEvent | ActionCallEvent;
export declare const AllEventsAsClass: (typeof BrowserToolCallEvent | typeof MessageCacheInvalidationEvent | typeof ReasoningEvent | typeof RenderComponentEvent | typeof RouterEvent | typeof ToolCallEvent | typeof ActionCallEvent)[];
export type ToolCallEventPayload = WithRequiredEventProps<IToolCallEvent>;

@@ -29,2 +31,3 @@ export type RouterEventPayload = WithRequiredEventProps<{

export type ReasoningEventPayload = WithRequiredEventProps<IReasoningEvent>;
export type ActionCallEventPayload = WithRequiredEventProps<IActionCallEvent>;
export type EventNames = {

@@ -37,4 +40,6 @@ ToolCall: ToolCallEvent['eventName'];

Reasoning: ReasoningEvent['eventName'];
ActionCall: ActionCallEvent['eventName'];
};
export type { WithRequiredEventProps } from '../events/base-event/base-event';
export type { IActionCallEvent } from '../events/action-call/types';
export type { IBrowserToolCallEvent } from '../events/browser-tool-call/types';

@@ -41,0 +46,0 @@ export type { IReasoningEvent } from '../events/reasoning-event/types';

@@ -1,1 +0,1 @@

{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAGpE,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,MAAM,SAAS,GACjB,WAAW,GACX,aAAa,GACb,oBAAoB,GACpB,6BAA6B,GAC7B,oBAAoB,GACpB,cAAc,CAAC;AACnB,eAAO,MAAM,gBAAgB,0KAO5B,CAAC;AAGF,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,CAAC,cAA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M,MAAM,oCAAoC,GAAG,sBAAsB,CAAC;IACxE,MAAM,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;CAC/B,CAAC,CAAC;AACH,MAAM,MAAM,2BAA2B,GACrC,sBAAsB,CAAC,qBAAqB,CAAC,CAAC;AAChD,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC,eAAe,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;AAE9E,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACrC,YAAY,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACvC,eAAe,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAAC;IACnD,wBAAwB,EAAE,6BAA6B,CAAC,WAAW,CAAC,CAAC;IACrE,eAAe,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAAC;IACnD,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;IACvC,UAAU,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;CAC1C,CAAC;AAEF,YAAY,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAG9E,YAAY,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,YAAY,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,YAAY,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC"}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AllEventsAsClass = void 0;
const action_call_event_1 = require("../events/action-call/action-call.event");
const browser_tool_call_event_1 = require("../events/browser-tool-call/browser-tool-call.event");

@@ -17,2 +18,3 @@ const message_cache_invalidation_1 = require("../events/message-cache-invalidation");

reasoning_event_1.ReasoningEvent,
action_call_event_1.ActionCallEvent,
];
{
"name": "@ixo/oracles-events",
"version": "1.0.2",
"version": "1.0.3",
"description": "Events for the IXO Oracles",

@@ -38,5 +38,5 @@ "private": false,

"typescript": "^5.3.3",
"@ixo/eslint-config": "0.0.0",
"@ixo/eslint-config": "1.0.0",
"@ixo/jest-config": "0.0.0",
"@ixo/typescript-config": "0.0.0"
"@ixo/typescript-config": "1.0.0"
},

@@ -43,0 +43,0 @@ "dependencies": {