@agentfield/sdk 0.1.109-rc.2 → 0.1.109-rc.4
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/dist/index.d.ts +182 -2
- package/dist/index.js +82 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -194,7 +194,7 @@ declare class MemoryClientBase {
|
|
|
194
194
|
[x: string]: string;
|
|
195
195
|
};
|
|
196
196
|
private scopeToHeader;
|
|
197
|
-
|
|
197
|
+
protected resolveScopeId(scope?: MemoryScope, scopeId?: string, metadata?: MemoryRequestMetadata): string | undefined;
|
|
198
198
|
private sanitizeHeaders;
|
|
199
199
|
}
|
|
200
200
|
declare class MemoryClient extends MemoryClientBase {
|
|
@@ -935,6 +935,110 @@ declare class ReasonerContext<TInput = any> {
|
|
|
935
935
|
}
|
|
936
936
|
declare function getCurrentContext<TInput = any>(): ReasonerContext<TInput> | undefined;
|
|
937
937
|
|
|
938
|
+
/**
|
|
939
|
+
* Trigger binding types for AgentField TypeScript SDK.
|
|
940
|
+
*
|
|
941
|
+
* A reasoner declares external event sources via the `triggers` option on
|
|
942
|
+
* `app.reasoner(...)`. The canonical form passes typed `TriggerBinding` instances
|
|
943
|
+
* created by `eventTrigger()` / `scheduleTrigger()` factories.
|
|
944
|
+
*
|
|
945
|
+
* The control plane registers a code-managed Trigger row per binding when the
|
|
946
|
+
* agent registers, so the agent never has to provision webhooks itself.
|
|
947
|
+
*
|
|
948
|
+
* Field-for-field equivalent of `sdk/python/agentfield/triggers.py`.
|
|
949
|
+
*/
|
|
950
|
+
/**
|
|
951
|
+
* Webhook-trigger metadata exposed to reasoners at runtime.
|
|
952
|
+
*
|
|
953
|
+
* Available as `ctx.trigger` (undefined when the reasoner was invoked directly
|
|
954
|
+
* via app.call(...) instead of by an inbound event).
|
|
955
|
+
*
|
|
956
|
+
* @experimental This type is exported for forward compatibility. Runtime
|
|
957
|
+
* construction and injection into handler context is planned for #510
|
|
958
|
+
* (dispatch envelope unwrap + TriggerContext injection). Do not depend on
|
|
959
|
+
* this being populated until that issue ships.
|
|
960
|
+
*/
|
|
961
|
+
interface TriggerContext {
|
|
962
|
+
/** AgentField trigger row ID; stable, equals the public URL slug. */
|
|
963
|
+
triggerId: string;
|
|
964
|
+
/** Provider source ("stripe", "github", "slack", "cron", "generic_hmac", "generic_bearer"). */
|
|
965
|
+
source: string;
|
|
966
|
+
/** Provider's event type (or "" for cron tick). */
|
|
967
|
+
eventType: string;
|
|
968
|
+
/** AgentField inbound_event ID (replay key). */
|
|
969
|
+
eventId: string;
|
|
970
|
+
/** Provider's idempotency key (e.g. evt_xxx). */
|
|
971
|
+
idempotencyKey: string;
|
|
972
|
+
/** When control plane received the inbound event. */
|
|
973
|
+
receivedAt: Date;
|
|
974
|
+
/** Trigger event VC ID, if DID enabled. */
|
|
975
|
+
vcId?: string;
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
* Specification for binding a reasoner to events from an HTTP-driven Source.
|
|
979
|
+
*/
|
|
980
|
+
interface EventTriggerSpec {
|
|
981
|
+
/**
|
|
982
|
+
* Registered Source name (e.g. "stripe", "github", "slack",
|
|
983
|
+
* "generic_hmac", "generic_bearer").
|
|
984
|
+
*/
|
|
985
|
+
source: string;
|
|
986
|
+
/**
|
|
987
|
+
* Event types the reasoner cares about. Empty array means "all".
|
|
988
|
+
* Supports prefix-match: "pull_request" matches "pull_request.opened" etc.
|
|
989
|
+
*/
|
|
990
|
+
types?: string[];
|
|
991
|
+
/**
|
|
992
|
+
* Name of the env var on the **control plane** that holds
|
|
993
|
+
* the provider's webhook secret. Required for Sources whose
|
|
994
|
+
* `secret_required` is true.
|
|
995
|
+
*/
|
|
996
|
+
secretEnv?: string;
|
|
997
|
+
/**
|
|
998
|
+
* Source-specific JSON config (timestamp tolerance, custom header names, etc).
|
|
999
|
+
* The Source's `Validate` runs server-side.
|
|
1000
|
+
*/
|
|
1001
|
+
config?: Record<string, unknown>;
|
|
1002
|
+
/**
|
|
1003
|
+
* Optional sync transform to convert raw provider event to reasoner input.
|
|
1004
|
+
* When set, SDK runs transform(event) before invoking the reasoner.
|
|
1005
|
+
* Must be synchronous (no Promises).
|
|
1006
|
+
*/
|
|
1007
|
+
transform?: (event: Record<string, unknown>) => unknown;
|
|
1008
|
+
/**
|
|
1009
|
+
* Optional source code location (e.g. "path/to/file.ts:42") where this
|
|
1010
|
+
* trigger is declared. Used for observability and drift detection.
|
|
1011
|
+
*/
|
|
1012
|
+
codeOrigin?: string;
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* Specification for binding a reasoner to a cron schedule.
|
|
1016
|
+
*/
|
|
1017
|
+
interface ScheduleTriggerSpec {
|
|
1018
|
+
/** 5-field cron expression (minute hour dom month dow). */
|
|
1019
|
+
cron: string;
|
|
1020
|
+
/** IANA timezone name. Defaults to "UTC". */
|
|
1021
|
+
timezone?: string;
|
|
1022
|
+
/**
|
|
1023
|
+
* Optional source code location (e.g. "path/to/file.ts:42") where this
|
|
1024
|
+
* trigger is declared. Used for observability and drift detection.
|
|
1025
|
+
*/
|
|
1026
|
+
codeOrigin?: string;
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* A typed trigger binding — either an event trigger or a schedule trigger.
|
|
1030
|
+
* Created via `eventTrigger()` or `scheduleTrigger()` factory functions.
|
|
1031
|
+
*/
|
|
1032
|
+
type TriggerBinding = EventTriggerBinding | ScheduleTriggerBinding;
|
|
1033
|
+
interface EventTriggerBinding {
|
|
1034
|
+
kind: 'event';
|
|
1035
|
+
spec: EventTriggerSpec;
|
|
1036
|
+
}
|
|
1037
|
+
interface ScheduleTriggerBinding {
|
|
1038
|
+
kind: 'schedule';
|
|
1039
|
+
spec: ScheduleTriggerSpec;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
938
1042
|
interface ReasonerDefinition<TInput = any, TOutput = any> {
|
|
939
1043
|
name: string;
|
|
940
1044
|
handler: ReasonerHandler<TInput, TOutput>;
|
|
@@ -950,6 +1054,28 @@ interface ReasonerOptions {
|
|
|
950
1054
|
memoryConfig?: any;
|
|
951
1055
|
/** Force control-plane verification instead of local verification for this reasoner. */
|
|
952
1056
|
requireRealtimeValidation?: boolean;
|
|
1057
|
+
/**
|
|
1058
|
+
* Trigger bindings for this reasoner. When present, the control plane
|
|
1059
|
+
* registers inbound webhook / cron triggers so events are routed to
|
|
1060
|
+
* this reasoner automatically.
|
|
1061
|
+
*
|
|
1062
|
+
* Use `eventTrigger()` or `scheduleTrigger()` factories to create bindings.
|
|
1063
|
+
*/
|
|
1064
|
+
triggers?: TriggerBinding[];
|
|
1065
|
+
/**
|
|
1066
|
+
* 3-state webhook opt-in flag, mirroring the Python SDK's
|
|
1067
|
+
* `accepts_webhook: Union[bool, str] = "warn"`:
|
|
1068
|
+
*
|
|
1069
|
+
* - `true` — reasoner explicitly accepts webhook invocation
|
|
1070
|
+
* - `false` — reasoner explicitly opts OUT, even when it declares triggers
|
|
1071
|
+
* - `'warn'` — default: the control plane surfaces a UI warning before
|
|
1072
|
+
* webhook invocation
|
|
1073
|
+
*
|
|
1074
|
+
* When omitted, resolves to `true` if `triggers` are declared (auto opt-in),
|
|
1075
|
+
* otherwise `'warn'`. An explicit value always wins over the trigger
|
|
1076
|
+
* auto-set.
|
|
1077
|
+
*/
|
|
1078
|
+
acceptsWebhook?: boolean | 'warn';
|
|
953
1079
|
}
|
|
954
1080
|
|
|
955
1081
|
declare class SkillContext<TInput = any> {
|
|
@@ -2394,4 +2520,58 @@ declare class SessionTransportError extends Error {
|
|
|
2394
2520
|
declare function normalizeSessionTransportValue(value: string): string;
|
|
2395
2521
|
declare function validateSessionTransport(provider: string, transport: string): SessionTransportCapability;
|
|
2396
2522
|
|
|
2397
|
-
|
|
2523
|
+
/**
|
|
2524
|
+
* Factory functions for creating trigger bindings.
|
|
2525
|
+
*
|
|
2526
|
+
* Usage:
|
|
2527
|
+
* ```ts
|
|
2528
|
+
* import { eventTrigger, scheduleTrigger } from "@agentfield/sdk";
|
|
2529
|
+
*
|
|
2530
|
+
* app.reasoner("handle_payment", handler, {
|
|
2531
|
+
* triggers: [
|
|
2532
|
+
* eventTrigger({
|
|
2533
|
+
* source: "stripe",
|
|
2534
|
+
* types: ["payment_intent.succeeded"],
|
|
2535
|
+
* secretEnv: "STRIPE_WEBHOOK_SECRET",
|
|
2536
|
+
* }),
|
|
2537
|
+
* scheduleTrigger({ cron: "0 * * * *" }),
|
|
2538
|
+
* ],
|
|
2539
|
+
* });
|
|
2540
|
+
* ```
|
|
2541
|
+
*/
|
|
2542
|
+
|
|
2543
|
+
/**
|
|
2544
|
+
* Create an event trigger binding.
|
|
2545
|
+
*
|
|
2546
|
+
* Binds a reasoner to events emitted by an HTTP-driven Source plugin
|
|
2547
|
+
* (Stripe, GitHub, Slack, generic_hmac, generic_bearer, etc.).
|
|
2548
|
+
*
|
|
2549
|
+
* @param spec - Event trigger specification
|
|
2550
|
+
* @returns A typed TriggerBinding for use in `ReasonerOptions.triggers`
|
|
2551
|
+
*
|
|
2552
|
+
* @throws TypeError if `transform` is provided but is an async function
|
|
2553
|
+
*/
|
|
2554
|
+
declare function eventTrigger(spec: EventTriggerSpec): EventTriggerBinding;
|
|
2555
|
+
/**
|
|
2556
|
+
* Create a schedule trigger binding.
|
|
2557
|
+
*
|
|
2558
|
+
* Binds a reasoner to a cron schedule. The control plane fires the reasoner
|
|
2559
|
+
* at the specified cadence; no external webhook needed.
|
|
2560
|
+
*
|
|
2561
|
+
* @param spec - Schedule trigger specification
|
|
2562
|
+
* @returns A typed TriggerBinding for use in `ReasonerOptions.triggers`
|
|
2563
|
+
*/
|
|
2564
|
+
declare function scheduleTrigger(spec: ScheduleTriggerSpec): ScheduleTriggerBinding;
|
|
2565
|
+
/**
|
|
2566
|
+
* Convert a typed TriggerBinding into the wire payload sent to the control
|
|
2567
|
+
* plane at registration time.
|
|
2568
|
+
*
|
|
2569
|
+
* The control plane expects `{source, event_types, config, secret_env_var}`;
|
|
2570
|
+
* schedule triggers normalize to the "cron" source with their expression
|
|
2571
|
+
* embedded in `config`.
|
|
2572
|
+
*
|
|
2573
|
+
* Note: `transform` is not serialized (it's a runtime JS callable).
|
|
2574
|
+
*/
|
|
2575
|
+
declare function triggerToPayload(trigger: TriggerBinding): Record<string, unknown>;
|
|
2576
|
+
|
|
2577
|
+
export { ACTIVE_STATUSES, AIClient, type AIConfig, type AIEmbeddingOptions, type AIRequestOptions, type AIStream, type AIToolRequestOptions, Agent, type AgentCapability, type AgentConfig, type AgentHandler, AgentRouter, type AgentRouterOptions, type AgentState, ApprovalClient, type ApprovalDecision, type ApprovalRequestResponse, ApprovalResult, type ApprovalStatusResponse, Audio, type AudioOutput, type AudioRequest, type AuditTrailExport, type AuditTrailFilters, type Awaitable, CANONICAL_STATUSES, type CompactCapability, type CompactDiscoveryResponse, DIDAuthenticator, type DIDIdentity, type DIDIdentityPackage, type DIDRegistrationRequest, type DIDRegistrationResponse, type DeploymentType, DidClient, DidInterface, DidManager, type DidResolver, type DiscoveryFormat, type DiscoveryOptions, type DiscoveryPagination, type DiscoveryResponse, type DiscoveryResult, type EventTriggerBinding, type EventTriggerSpec, ExecutionContext, type ExecutionCredential, type ExecutionLogAttributes, type ExecutionLogBatchPayload, type ExecutionLogContext, type ExecutionLogEmitOptions, type ExecutionLogEntry, type ExecutionLogLevel, type ExecutionLogTransport, type ExecutionLogTransportPayload, type ExecutionLogWireEntry, ExecutionLogger, type ExecutionLoggerOptions, type ExecutionMetadata, ExecutionStatus, type ExecutionStatusValue, File, type FileOutput, type GenerateCredentialOptions, type GenerateCredentialParams, HEADER_CALLER_DID, HEADER_DID_NONCE, HEADER_DID_SIGNATURE, HEADER_DID_TIMESTAMP, type HarnessConfig, type HarnessOptions, type HarnessProvider, type HarnessResult, HarnessRunner, type HealthStatus, Image, type ImageOutput, type ImageRequest, JWE_ALG, JWE_ENC, KEY_AGREEMENT_TYPE, type MediaProvider, MediaProviderError, type MediaResponse, MediaRouter, type MemoryChangeEvent, MemoryClient, MemoryClientBase, type MemoryConfig, MemoryEventClient, type MemoryEventHandler, type MemoryEventHistoryOptions, MemoryInterface, type MemoryRequestMetadata, type MemoryRequestOptions, type MemoryScope, type MemoryWatchHandler, type Metrics, type MultimodalContent, MultimodalResponse, OpenRouterMediaProvider, type OpenRouterMediaProviderOptions, PauseClock, PauseManager, type Payload, PayloadEncryptionError, RateLimitError, type RateLimiterOptions, type RawExecutionContext, type RawResult, RealtimeSession, type ReasonerCapability, ReasonerContext, type ReasonerDefinition, type ReasonerHandler, type ReasonerOptions, type RequestApprovalPayload, SUPPORTED_PROVIDERS, SUPPORTED_SESSION_TRANSPORTS, type ScheduleTriggerBinding, type ScheduleTriggerSpec, type ServerlessAdapter, type ServerlessEvent, type ServerlessResponse, type SessionDefinition, type SessionOptions, type SessionProvider, type SessionTransport, type SessionTransportCapability, SessionTransportError, type SessionTurn, type SkillCapability, SkillContext, type SkillDefinition, type SkillHandler, type SkillOptions, StatelessRateLimiter, TERMINAL_STATUSES, Text, type ToolCallConfig, type ToolCallRecord, type ToolCallTrace, type ToolsOption, type TriggerBinding, type TriggerContext, type VectorSearchOptions, type VectorSearchResult, Video, type VideoFrameImage, type VideoInputReference, type VideoRequest, type WaitForApprovalOptions, type WorkflowCredential, type WorkflowMetadata, type WorkflowProgressOptions, WorkflowReporter, type ZodSchema, audioFromBase64, audioFromBuffer, audioFromFile, audioFromUrl, buildProvider, buildSessionDefinition, buildToolConfig, capabilitiesToTools, capabilityToMetadataTool, capabilityToTool, createExecutionLogger, createHarnessResult, createMetrics, createMultimodalResponse, createRawResult, decrypt, decryptToString, encryptForDid, encryptToJwk, eventTrigger, executeToolCallLoop, extractKeyAgreementJwk, fileFromBase64, fileFromBuffer, fileFromPath, fileFromUrl, generateX25519KeyPair, getCurrentContext, getCurrentSkillContext, imageFromBase64, imageFromBuffer, imageFromFile, imageFromUrl, installApprovalWebhookRoute, isActive, isExecutionLogBatchPayload, isTerminal, normalizeExecutionLogEntry, normalizeSessionTransportValue, normalizeStatus, scheduleTrigger, serializeExecutionLogEntry, text, triggerToPayload, validateSessionTransport, videoFromBase64, videoFromBuffer, videoFromFile, videoFromUrl };
|
package/dist/index.js
CHANGED
|
@@ -1425,6 +1425,62 @@ var ApprovalClient = class {
|
|
|
1425
1425
|
function sleep(ms) {
|
|
1426
1426
|
return new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
1427
1427
|
}
|
|
1428
|
+
|
|
1429
|
+
// src/triggers/factories.ts
|
|
1430
|
+
function eventTrigger(spec) {
|
|
1431
|
+
if (spec.transform) {
|
|
1432
|
+
const fnStr = spec.transform.toString();
|
|
1433
|
+
if (spec.transform.constructor.name === "AsyncFunction" || fnStr.startsWith("async ")) {
|
|
1434
|
+
throw new TypeError(
|
|
1435
|
+
`EventTrigger transform must be synchronous, not async. Got: ${spec.transform.name || "(anonymous)"}`
|
|
1436
|
+
);
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
return {
|
|
1440
|
+
kind: "event",
|
|
1441
|
+
spec
|
|
1442
|
+
};
|
|
1443
|
+
}
|
|
1444
|
+
function scheduleTrigger(spec) {
|
|
1445
|
+
return {
|
|
1446
|
+
kind: "schedule",
|
|
1447
|
+
spec
|
|
1448
|
+
};
|
|
1449
|
+
}
|
|
1450
|
+
function triggerToPayload(trigger) {
|
|
1451
|
+
if (trigger.kind === "event") {
|
|
1452
|
+
const payload = {
|
|
1453
|
+
source: trigger.spec.source,
|
|
1454
|
+
event_types: trigger.spec.types ?? []
|
|
1455
|
+
};
|
|
1456
|
+
if (trigger.spec.config) {
|
|
1457
|
+
payload.config = { ...trigger.spec.config };
|
|
1458
|
+
}
|
|
1459
|
+
if (trigger.spec.secretEnv) {
|
|
1460
|
+
payload.secret_env_var = trigger.spec.secretEnv;
|
|
1461
|
+
}
|
|
1462
|
+
if (trigger.spec.codeOrigin) {
|
|
1463
|
+
payload.code_origin = trigger.spec.codeOrigin;
|
|
1464
|
+
}
|
|
1465
|
+
return payload;
|
|
1466
|
+
}
|
|
1467
|
+
if (trigger.kind === "schedule") {
|
|
1468
|
+
const payload = {
|
|
1469
|
+
source: "cron",
|
|
1470
|
+
event_types: [],
|
|
1471
|
+
config: {
|
|
1472
|
+
expression: trigger.spec.cron,
|
|
1473
|
+
timezone: trigger.spec.timezone ?? "UTC"
|
|
1474
|
+
}
|
|
1475
|
+
};
|
|
1476
|
+
if (trigger.spec.codeOrigin) {
|
|
1477
|
+
payload.code_origin = trigger.spec.codeOrigin;
|
|
1478
|
+
}
|
|
1479
|
+
return payload;
|
|
1480
|
+
}
|
|
1481
|
+
const _exhaustive = trigger;
|
|
1482
|
+
throw new TypeError(`Unknown trigger kind: ${_exhaustive}`);
|
|
1483
|
+
}
|
|
1428
1484
|
var store = new AsyncLocalStorage();
|
|
1429
1485
|
var ExecutionContext = class {
|
|
1430
1486
|
input;
|
|
@@ -3482,7 +3538,8 @@ var MemoryEventClient = class extends MemoryClientBase {
|
|
|
3482
3538
|
since,
|
|
3483
3539
|
limit = 100,
|
|
3484
3540
|
scope,
|
|
3485
|
-
scopeId
|
|
3541
|
+
scopeId,
|
|
3542
|
+
metadata
|
|
3486
3543
|
} = options;
|
|
3487
3544
|
try {
|
|
3488
3545
|
const headers = this.buildHeaders(options);
|
|
@@ -3501,8 +3558,9 @@ var MemoryEventClient = class extends MemoryClientBase {
|
|
|
3501
3558
|
if (scope) {
|
|
3502
3559
|
params.scope = scope;
|
|
3503
3560
|
}
|
|
3504
|
-
|
|
3505
|
-
|
|
3561
|
+
const resolvedScopeId = this.resolveScopeId(scope, scopeId, metadata);
|
|
3562
|
+
if (resolvedScopeId) {
|
|
3563
|
+
params.scope_id = resolvedScopeId;
|
|
3506
3564
|
}
|
|
3507
3565
|
const res = await this.http.get("/api/v1/memory/events/history", {
|
|
3508
3566
|
params,
|
|
@@ -4558,6 +4616,12 @@ var TargetNotFoundError = class extends Error {
|
|
|
4558
4616
|
};
|
|
4559
4617
|
var AGENTFIELD_TS_SDK_VERSION = "0.1.82";
|
|
4560
4618
|
var harnessRunners = /* @__PURE__ */ new WeakMap();
|
|
4619
|
+
function normalizeAcceptsWebhook(value) {
|
|
4620
|
+
if (value === true) return "true";
|
|
4621
|
+
if (value === false) return "false";
|
|
4622
|
+
if (value === "true" || value === "false" || value === "warn") return value;
|
|
4623
|
+
return "warn";
|
|
4624
|
+
}
|
|
4561
4625
|
function normalizeExecutionContext(ctx) {
|
|
4562
4626
|
return {
|
|
4563
4627
|
executionId: ctx.executionId ?? ctx.execution_id,
|
|
@@ -5598,7 +5662,11 @@ var Agent = class {
|
|
|
5598
5662
|
reasonerDefinitions() {
|
|
5599
5663
|
return this.reasoners.all().map((r) => {
|
|
5600
5664
|
const tags = r.options?.tags ?? [];
|
|
5601
|
-
|
|
5665
|
+
const triggers = r.options?.triggers ?? [];
|
|
5666
|
+
const triggerPayloads = triggers.map(triggerToPayload);
|
|
5667
|
+
const explicitAcceptsWebhook = r.options?.acceptsWebhook;
|
|
5668
|
+
const resolvedAcceptsWebhook = explicitAcceptsWebhook !== void 0 ? explicitAcceptsWebhook : triggers.length > 0 ? true : "warn";
|
|
5669
|
+
const def = {
|
|
5602
5670
|
id: r.name,
|
|
5603
5671
|
input_schema: toJsonSchema(r.options?.inputSchema),
|
|
5604
5672
|
output_schema: toJsonSchema(r.options?.outputSchema),
|
|
@@ -5608,8 +5676,16 @@ var Agent = class {
|
|
|
5608
5676
|
cache_results: false
|
|
5609
5677
|
},
|
|
5610
5678
|
tags,
|
|
5611
|
-
proposed_tags: tags
|
|
5679
|
+
proposed_tags: tags,
|
|
5680
|
+
// Always present, normalized to "true" / "false" / "warn" — the
|
|
5681
|
+
// control plane's ReasonerDefinition types AcceptsWebhook as *string
|
|
5682
|
+
// and rejects bool literals (mirrors Python's _entry_to_metadata).
|
|
5683
|
+
accepts_webhook: normalizeAcceptsWebhook(resolvedAcceptsWebhook)
|
|
5612
5684
|
};
|
|
5685
|
+
if (triggerPayloads.length > 0) {
|
|
5686
|
+
def.triggers = triggerPayloads;
|
|
5687
|
+
}
|
|
5688
|
+
return def;
|
|
5613
5689
|
});
|
|
5614
5690
|
}
|
|
5615
5691
|
skillDefinitions() {
|
|
@@ -7507,6 +7583,6 @@ init_types();
|
|
|
7507
7583
|
init_factory();
|
|
7508
7584
|
init_runner();
|
|
7509
7585
|
|
|
7510
|
-
export { ACTIVE_STATUSES, AIClient, Agent, AgentRouter, ApprovalClient, ApprovalResult, Audio, CANONICAL_STATUSES, DIDAuthenticator, DidClient, DidInterface, DidManager, ExecutionContext, ExecutionLogger, ExecutionStatus, File, HEADER_CALLER_DID, HEADER_DID_NONCE, HEADER_DID_SIGNATURE, HEADER_DID_TIMESTAMP, HarnessRunner, Image, JWE_ALG, JWE_ENC, KEY_AGREEMENT_TYPE, MediaProviderError, MediaRouter, MemoryClient, MemoryClientBase, MemoryEventClient, MemoryInterface, MultimodalResponse, OpenRouterMediaProvider, PauseClock, PauseManager, PayloadEncryptionError, RateLimitError, RealtimeSession, ReasonerContext, SUPPORTED_PROVIDERS, SUPPORTED_SESSION_TRANSPORTS, SessionTransportError, SkillContext, StatelessRateLimiter, TERMINAL_STATUSES, Text, Video, WorkflowReporter, audioFromBase64, audioFromBuffer, audioFromFile, audioFromUrl, buildProvider, buildSessionDefinition, buildToolConfig, capabilitiesToTools, capabilityToMetadataTool, capabilityToTool, createExecutionLogger, createHarnessResult, createMetrics, createMultimodalResponse, createRawResult, decrypt, decryptToString, encryptForDid, encryptToJwk, executeToolCallLoop, extractKeyAgreementJwk, fileFromBase64, fileFromBuffer, fileFromPath, fileFromUrl, generateX25519KeyPair, getCurrentContext, getCurrentSkillContext, imageFromBase64, imageFromBuffer, imageFromFile, imageFromUrl, installApprovalWebhookRoute, isActive, isExecutionLogBatchPayload, isTerminal, normalizeExecutionLogEntry, normalizeSessionTransportValue, normalizeStatus, serializeExecutionLogEntry, text, validateSessionTransport, videoFromBase64, videoFromBuffer, videoFromFile, videoFromUrl };
|
|
7586
|
+
export { ACTIVE_STATUSES, AIClient, Agent, AgentRouter, ApprovalClient, ApprovalResult, Audio, CANONICAL_STATUSES, DIDAuthenticator, DidClient, DidInterface, DidManager, ExecutionContext, ExecutionLogger, ExecutionStatus, File, HEADER_CALLER_DID, HEADER_DID_NONCE, HEADER_DID_SIGNATURE, HEADER_DID_TIMESTAMP, HarnessRunner, Image, JWE_ALG, JWE_ENC, KEY_AGREEMENT_TYPE, MediaProviderError, MediaRouter, MemoryClient, MemoryClientBase, MemoryEventClient, MemoryInterface, MultimodalResponse, OpenRouterMediaProvider, PauseClock, PauseManager, PayloadEncryptionError, RateLimitError, RealtimeSession, ReasonerContext, SUPPORTED_PROVIDERS, SUPPORTED_SESSION_TRANSPORTS, SessionTransportError, SkillContext, StatelessRateLimiter, TERMINAL_STATUSES, Text, Video, WorkflowReporter, audioFromBase64, audioFromBuffer, audioFromFile, audioFromUrl, buildProvider, buildSessionDefinition, buildToolConfig, capabilitiesToTools, capabilityToMetadataTool, capabilityToTool, createExecutionLogger, createHarnessResult, createMetrics, createMultimodalResponse, createRawResult, decrypt, decryptToString, encryptForDid, encryptToJwk, eventTrigger, executeToolCallLoop, extractKeyAgreementJwk, fileFromBase64, fileFromBuffer, fileFromPath, fileFromUrl, generateX25519KeyPair, getCurrentContext, getCurrentSkillContext, imageFromBase64, imageFromBuffer, imageFromFile, imageFromUrl, installApprovalWebhookRoute, isActive, isExecutionLogBatchPayload, isTerminal, normalizeExecutionLogEntry, normalizeSessionTransportValue, normalizeStatus, scheduleTrigger, serializeExecutionLogEntry, text, triggerToPayload, validateSessionTransport, videoFromBase64, videoFromBuffer, videoFromFile, videoFromUrl };
|
|
7511
7587
|
//# sourceMappingURL=index.js.map
|
|
7512
7588
|
//# sourceMappingURL=index.js.map
|