@sorbetai/runtime 0.1.0-alpha.20 → 0.1.0-alpha.21
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/{catalog-BBDqhGRV.d.ts → catalog-aN1mnMNT.d.ts} +603 -603
- package/dist/index.d.ts +50 -50
- package/dist/node.d.ts +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as RunExecutionObservation, $t as SessionJournalFactKind, A as CompactionModelObservation, At as JournalFactKind, B as JournalBatchObservation, Bt as ModelRequestBaseCommittedPayload, C as UnitSubscription, Ct as JOURNAL_FACT_SCHEMA_VERSION, D as MessageReceipt, Dt as JournalCursorGapError, E as MessageDeliveryResult, Et as JournalCursor, F as ContextAttributionSection, Ft as JournalStore, G as ModelDispatchObservation, Gt as RunJournalFact, H as JournalQueueObservation, Ht as NewJournalFact, I as ContextCapacityObservation, It as JournalStoreFaultError, J as ModelRetryWaitObservation, Jt as SendSessionInputVariants, K as ModelProviderObservation, Kt as RunJournalFactKind, L as ContextPreparationObservation, Lt as JournalSubscription, M as CompactionProviderObservation, Mt as JournalPage, N as CompactionSourceFallbackObservation, Nt as JournalPayloadMap, O as MessageRejection, Ot as JournalCursorSchema, P as ContextAttributionObservation, Pt as JournalReadOptions, Q as RunDrainObservation, Qt as SessionJournalFact, R as ContextSectionEstimate, Rt as JournalSubscriptionOptions, S as UnitStoreError, St as EffectUnknownPayload, Tt as JournalConflictError, U as JournalReopenObservation, Ut as RunFailureCode, V as JournalProjectionObservation, Vt as ModelRequestContextSnapshot, W as ModelAttemptObservation, Wt as RunFailureCodeSchema, X as ObservationTraceContext, Xt as SessionInputSource, Y as ModelUnknownObservation, Yt as SessionForkedPayload, Z as RunAdmittedObservation, Zt as SessionInputSourceSchema, _ as UnitReader, _t as CompactionStateBaselineEntry, a as OpenedUnitStore, an as ToolResultMessageCommittedPayload, at as ToolExecutionStartedObservation, bt as CompletedToolResultSchema, c as UnitEpoch, cn as JsonValueSchema, ct as ToolPermissionObservation, d as UnitHistoryError, dt as WaitStartedObservation, en as SubmissionControlInputSchema, et as RunResourceWaitObservation, f as UnitHistoryErrorCode, ft as JournalRecoveryFact, g as UnitReadOptions, gt as JournalWriterBusyError, h as UnitPage, ht as JournalReaderResetRequiredError, i as openUnitStorage, in as ToolOutputArchiveRecordSchema, it as ToolExecutionObservation, j as CompactionObservation, jt as JournalFactSchema, k as ApprovalReviewObservation, kt as JournalFact, l as UnitFact, lt as WaitIdentityObservation, m as UnitOpenOptions, mt as JournalReaderCapacityError, n as UnitStorage, nn as ToolHookEvidenceSchema, nt as RuntimeObservationPort, o as UnitCommitOutcome, on as UserPromptSchema, ot as ToolOutputMeasurement, p as UnitInspectionPage, pt as JournalCorruptionError, q as ModelRetryObservation, qt as SendSessionInputSchema, r as UnitStorageWrite, rn as ToolOutputArchiveRecord, rt as SessionRecoveryObservation, s as UnitEntry, sn as JsonValue, st as ToolOutputObservation, t as UnitSession, tn as SubmissionInputSchema, tt as RunSettledObservation, u as UnitFactSchema, ut as WaitSettledObservation, v as UnitRecord, vt as CompactionStateBaselineEntrySchema, w as UnitWrite, wt as JournalAppendOptions, x as UnitStore, xt as ContextForkSeedSchema, yt as CompleteModelInputSchema, z as EffectObservation, zt as JournalWrite } from "./catalog-
|
|
1
|
+
import { $ as RunExecutionObservation, $t as SessionJournalFactKind, A as CompactionModelObservation, At as JournalFactKind, B as JournalBatchObservation, Bt as ModelRequestBaseCommittedPayload, C as UnitSubscription, Ct as JOURNAL_FACT_SCHEMA_VERSION, D as MessageReceipt, Dt as JournalCursorGapError, E as MessageDeliveryResult, Et as JournalCursor, F as ContextAttributionSection, Ft as JournalStore, G as ModelDispatchObservation, Gt as RunJournalFact, H as JournalQueueObservation, Ht as NewJournalFact, I as ContextCapacityObservation, It as JournalStoreFaultError, J as ModelRetryWaitObservation, Jt as SendSessionInputVariants, K as ModelProviderObservation, Kt as RunJournalFactKind, L as ContextPreparationObservation, Lt as JournalSubscription, M as CompactionProviderObservation, Mt as JournalPage, N as CompactionSourceFallbackObservation, Nt as JournalPayloadMap, O as MessageRejection, Ot as JournalCursorSchema, P as ContextAttributionObservation, Pt as JournalReadOptions, Q as RunDrainObservation, Qt as SessionJournalFact, R as ContextSectionEstimate, Rt as JournalSubscriptionOptions, S as UnitStoreError, St as EffectUnknownPayload, Tt as JournalConflictError, U as JournalReopenObservation, Ut as RunFailureCode, V as JournalProjectionObservation, Vt as ModelRequestContextSnapshot, W as ModelAttemptObservation, Wt as RunFailureCodeSchema, X as ObservationTraceContext, Xt as SessionInputSource, Y as ModelUnknownObservation, Yt as SessionForkedPayload, Z as RunAdmittedObservation, Zt as SessionInputSourceSchema, _ as UnitReader, _t as CompactionStateBaselineEntry, a as OpenedUnitStore, an as ToolResultMessageCommittedPayload, at as ToolExecutionStartedObservation, bt as CompletedToolResultSchema, c as UnitEpoch, cn as JsonValueSchema, ct as ToolPermissionObservation, d as UnitHistoryError, dt as WaitStartedObservation, en as SubmissionControlInputSchema, et as RunResourceWaitObservation, f as UnitHistoryErrorCode, ft as JournalRecoveryFact, g as UnitReadOptions, gt as JournalWriterBusyError, h as UnitPage, ht as JournalReaderResetRequiredError, i as openUnitStorage, in as ToolOutputArchiveRecordSchema, it as ToolExecutionObservation, j as CompactionObservation, jt as JournalFactSchema, k as ApprovalReviewObservation, kt as JournalFact, l as UnitFact, lt as WaitIdentityObservation, m as UnitOpenOptions, mt as JournalReaderCapacityError, n as UnitStorage, nn as ToolHookEvidenceSchema, nt as RuntimeObservationPort, o as UnitCommitOutcome, on as UserPromptSchema, ot as ToolOutputMeasurement, p as UnitInspectionPage, pt as JournalCorruptionError, q as ModelRetryObservation, qt as SendSessionInputSchema, r as UnitStorageWrite, rn as ToolOutputArchiveRecord, rt as SessionRecoveryObservation, s as UnitEntry, sn as JsonValue, st as ToolOutputObservation, t as UnitSession, tn as SubmissionInputSchema, tt as RunSettledObservation, u as UnitFactSchema, ut as WaitSettledObservation, v as UnitRecord, vt as CompactionStateBaselineEntrySchema, w as UnitWrite, wt as JournalAppendOptions, x as UnitStore, xt as ContextForkSeedSchema, yt as CompleteModelInputSchema, z as EffectObservation, zt as JournalWrite } from "./catalog-aN1mnMNT.js";
|
|
2
2
|
import * as s from "@earendil-works/pi-schema";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _sorbetai_context43 from "@sorbetai/context";
|
|
4
4
|
import { AssistantMessage, ContextHistorySnapshot, ContextManager, ContextModelView, ContextProvenance, ContextSnapshot, ContextSource, ContextTransitionFrame, ImageContent, JsonValue as JsonValue$1, Message, ModelContext, NamedStateOwner, PrefixContextContributor, PrefixContextSource, ReadonlyJsonValue, RequestContextSource, TextContent, ToolCall, ToolDeclaration, ToolResultMessage, TurnContextSource, Usage, UserMessage } from "@sorbetai/context";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _sorbetai_schema30 from "@sorbetai/schema";
|
|
6
6
|
import { ModelToolLease, ModelToolSource, ModelView, ObjectCapabilityOptions, PluginToolResultSnapshot, SessionBehaviorCommand, SessionBehaviorView, UsageTotals } from "@sorbetai/plugins/model";
|
|
7
7
|
import { ArtifactRef, ArtifactStore } from "@sorbetai/artifacts";
|
|
8
8
|
import * as Context from "effect/Context";
|
|
@@ -25,7 +25,7 @@ declare const ApprovalRequestRecordSchema: s.Schema<{
|
|
|
25
25
|
toolCallId: string;
|
|
26
26
|
toolName: string;
|
|
27
27
|
reason: string;
|
|
28
|
-
parameters: string | number | boolean |
|
|
28
|
+
parameters: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
29
29
|
taskId?: string | undefined;
|
|
30
30
|
parentToolCallId?: string | undefined;
|
|
31
31
|
}>;
|
|
@@ -401,7 +401,7 @@ declare const PluginRecordOwnerSchema: s.Schema<{
|
|
|
401
401
|
declare const AppendPluginRecordSchema: s.Schema<{
|
|
402
402
|
recordType: string;
|
|
403
403
|
recordVersion: number;
|
|
404
|
-
data: string | number | boolean |
|
|
404
|
+
data: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
405
405
|
expectedRevision: number;
|
|
406
406
|
sourceSequence: number;
|
|
407
407
|
idempotencyKey?: string | undefined;
|
|
@@ -412,10 +412,10 @@ declare const PluginRecordPayloadSchema: s.Schema<{
|
|
|
412
412
|
activationId?: string | undefined;
|
|
413
413
|
};
|
|
414
414
|
revision: number;
|
|
415
|
-
data: string | number | boolean |
|
|
415
|
+
data: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
416
|
+
sourceSequence: number;
|
|
416
417
|
recordType: string;
|
|
417
418
|
recordVersion: number;
|
|
418
|
-
sourceSequence: number;
|
|
419
419
|
idempotencyKey?: string | undefined;
|
|
420
420
|
}>;
|
|
421
421
|
type PluginRecordOwner = s.Static<typeof PluginRecordOwnerSchema>;
|
|
@@ -571,7 +571,7 @@ declare const TaskWaitMemberSchema: s.Schema<{
|
|
|
571
571
|
declare const TaskJoinPolicySchema: s.Schema<"allSettled" | "firstSettled">;
|
|
572
572
|
declare const TaskOutcomeSchema: s.Schema<{
|
|
573
573
|
status: "completed";
|
|
574
|
-
result: string | number | boolean |
|
|
574
|
+
result: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
575
575
|
} | {
|
|
576
576
|
status: "failed";
|
|
577
577
|
error: {
|
|
@@ -608,7 +608,7 @@ declare const TaskFactSchema: s.Schema<{
|
|
|
608
608
|
};
|
|
609
609
|
background: boolean;
|
|
610
610
|
creationKey: string;
|
|
611
|
-
input: string | number | boolean |
|
|
611
|
+
input: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
612
612
|
checkpoint: Record<string, JsonValue> & {
|
|
613
613
|
phase: string;
|
|
614
614
|
};
|
|
@@ -623,12 +623,12 @@ declare const TaskFactSchema: s.Schema<{
|
|
|
623
623
|
owner: {
|
|
624
624
|
session: string;
|
|
625
625
|
};
|
|
626
|
-
result: string | number | boolean |
|
|
626
|
+
result: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
627
627
|
kind: string;
|
|
628
628
|
version: number;
|
|
629
629
|
background: boolean;
|
|
630
630
|
creationKey: string;
|
|
631
|
-
input: string | number | boolean |
|
|
631
|
+
input: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
632
632
|
checkpoint: Record<string, JsonValue> & {
|
|
633
633
|
phase: string;
|
|
634
634
|
};
|
|
@@ -747,7 +747,7 @@ declare const TaskFactSchema: s.Schema<{
|
|
|
747
747
|
invocationId: string;
|
|
748
748
|
outcome: {
|
|
749
749
|
status: "completed";
|
|
750
|
-
result: string | number | boolean |
|
|
750
|
+
result: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
751
751
|
} | {
|
|
752
752
|
status: "failed";
|
|
753
753
|
error: {
|
|
@@ -777,7 +777,7 @@ declare const TaskFactSchema: s.Schema<{
|
|
|
777
777
|
payload: {
|
|
778
778
|
outcome: {
|
|
779
779
|
status: "completed";
|
|
780
|
-
result: string | number | boolean |
|
|
780
|
+
result: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
781
781
|
} | {
|
|
782
782
|
status: "failed";
|
|
783
783
|
error: {
|
|
@@ -809,7 +809,7 @@ declare const TaskFactSchema: s.Schema<{
|
|
|
809
809
|
signalId: string;
|
|
810
810
|
creationKey: string;
|
|
811
811
|
type: "host-command" | "elicitation" | "message-reply";
|
|
812
|
-
payload: string | number | boolean |
|
|
812
|
+
payload: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
813
813
|
invocationId: string;
|
|
814
814
|
};
|
|
815
815
|
} | {
|
|
@@ -820,7 +820,7 @@ declare const TaskFactSchema: s.Schema<{
|
|
|
820
820
|
kind: "signal.resolved";
|
|
821
821
|
payload: {
|
|
822
822
|
signalId: string;
|
|
823
|
-
result: string | number | boolean |
|
|
823
|
+
result: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
824
824
|
commandId: string;
|
|
825
825
|
};
|
|
826
826
|
} | {
|
|
@@ -857,7 +857,7 @@ declare const UnitMessageSchema: s.Schema<{
|
|
|
857
857
|
})[];
|
|
858
858
|
source: {
|
|
859
859
|
kind: string;
|
|
860
|
-
data?: string | number | boolean |
|
|
860
|
+
data?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
861
861
|
};
|
|
862
862
|
} | {
|
|
863
863
|
kind: "context-event";
|
|
@@ -909,7 +909,7 @@ declare const UnitMessageSchema: s.Schema<{
|
|
|
909
909
|
kind: "container";
|
|
910
910
|
name: string;
|
|
911
911
|
attributes?: Record<string, string | number>;
|
|
912
|
-
children:
|
|
912
|
+
children: _sorbetai_context43.ContextXmlElement[];
|
|
913
913
|
};
|
|
914
914
|
sourceId: string;
|
|
915
915
|
provenance: {
|
|
@@ -917,11 +917,11 @@ declare const UnitMessageSchema: s.Schema<{
|
|
|
917
917
|
label: string;
|
|
918
918
|
location?: string | undefined;
|
|
919
919
|
};
|
|
920
|
-
metadata?: string | number | boolean |
|
|
920
|
+
metadata?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
921
921
|
})[];
|
|
922
922
|
source: {
|
|
923
923
|
kind: string;
|
|
924
|
-
data?: string | number | boolean |
|
|
924
|
+
data?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
925
925
|
};
|
|
926
926
|
};
|
|
927
927
|
whenBusy: "followUp" | "steer";
|
|
@@ -986,7 +986,7 @@ declare const MessageFactSchema: s.Schema<{
|
|
|
986
986
|
})[];
|
|
987
987
|
source: {
|
|
988
988
|
kind: string;
|
|
989
|
-
data?: string | number | boolean |
|
|
989
|
+
data?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
990
990
|
};
|
|
991
991
|
} | {
|
|
992
992
|
kind: "context-event";
|
|
@@ -1038,7 +1038,7 @@ declare const MessageFactSchema: s.Schema<{
|
|
|
1038
1038
|
kind: "container";
|
|
1039
1039
|
name: string;
|
|
1040
1040
|
attributes?: Record<string, string | number>;
|
|
1041
|
-
children:
|
|
1041
|
+
children: _sorbetai_context43.ContextXmlElement[];
|
|
1042
1042
|
};
|
|
1043
1043
|
sourceId: string;
|
|
1044
1044
|
provenance: {
|
|
@@ -1046,11 +1046,11 @@ declare const MessageFactSchema: s.Schema<{
|
|
|
1046
1046
|
label: string;
|
|
1047
1047
|
location?: string | undefined;
|
|
1048
1048
|
};
|
|
1049
|
-
metadata?: string | number | boolean |
|
|
1049
|
+
metadata?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
1050
1050
|
})[];
|
|
1051
1051
|
source: {
|
|
1052
1052
|
kind: string;
|
|
1053
|
-
data?: string | number | boolean |
|
|
1053
|
+
data?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
1054
1054
|
};
|
|
1055
1055
|
};
|
|
1056
1056
|
whenBusy: "followUp" | "steer";
|
|
@@ -1085,10 +1085,10 @@ declare const MessageFactSchema: s.Schema<{
|
|
|
1085
1085
|
payload: {
|
|
1086
1086
|
status: "accepted";
|
|
1087
1087
|
acceptanceId: string;
|
|
1088
|
-
messageId: string;
|
|
1089
|
-
sourceUnitId: string;
|
|
1090
1088
|
targetUnitId: string;
|
|
1091
1089
|
targetSessionId: string;
|
|
1090
|
+
messageId: string;
|
|
1091
|
+
sourceUnitId: string;
|
|
1092
1092
|
};
|
|
1093
1093
|
} | {
|
|
1094
1094
|
id: string;
|
|
@@ -1100,10 +1100,10 @@ declare const MessageFactSchema: s.Schema<{
|
|
|
1100
1100
|
status: "rejected";
|
|
1101
1101
|
code: string;
|
|
1102
1102
|
message: string;
|
|
1103
|
-
messageId: string;
|
|
1104
|
-
sourceUnitId: string;
|
|
1105
1103
|
targetUnitId: string;
|
|
1106
1104
|
targetSessionId: string;
|
|
1105
|
+
messageId: string;
|
|
1106
|
+
sourceUnitId: string;
|
|
1107
1107
|
};
|
|
1108
1108
|
}>;
|
|
1109
1109
|
type MessageFact = s.Static<typeof MessageFactSchema>;
|
|
@@ -1388,7 +1388,7 @@ declare function parseToolParameters<T extends s.JsonSchema>(toolName: string, s
|
|
|
1388
1388
|
declare const PermissionGrantSchema: s.Schema<{
|
|
1389
1389
|
grantId: string;
|
|
1390
1390
|
toolName: string;
|
|
1391
|
-
parameters: string | number | boolean |
|
|
1391
|
+
parameters: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
1392
1392
|
sourceToolCallId: string;
|
|
1393
1393
|
grantedAt: string;
|
|
1394
1394
|
sourceRunId?: string | undefined;
|
|
@@ -1408,9 +1408,9 @@ declare const SessionPermissionGrantSchema: s.Schema<{
|
|
|
1408
1408
|
}>;
|
|
1409
1409
|
type SessionPermissionGrant = Readonly<s.Static<typeof SessionPermissionGrantSchema>>;
|
|
1410
1410
|
/** The access decision that a Permission policy can make before execution. */
|
|
1411
|
-
declare const ToolPermissionAccessSchema: s.Schema<"
|
|
1411
|
+
declare const ToolPermissionAccessSchema: s.Schema<"allow" | "deny">;
|
|
1412
1412
|
/** Whether an otherwise allowed Tool call needs a Host Approval. */
|
|
1413
|
-
declare const ToolApprovalRequirementSchema: s.Schema<"
|
|
1413
|
+
declare const ToolApprovalRequirementSchema: s.Schema<"required" | "not-required">;
|
|
1414
1414
|
/** The non-terminal admission instruction produced by a Permission evaluator. */
|
|
1415
1415
|
declare const ToolPermissionDirectiveSchema: s.Schema<{
|
|
1416
1416
|
access: "deny";
|
|
@@ -2281,7 +2281,7 @@ declare const SessionForkSeedSchema: s.Schema<{
|
|
|
2281
2281
|
};
|
|
2282
2282
|
source: {
|
|
2283
2283
|
kind: string;
|
|
2284
|
-
data?: string | number | boolean |
|
|
2284
|
+
data?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
2285
2285
|
};
|
|
2286
2286
|
} | {
|
|
2287
2287
|
runId: string;
|
|
@@ -2302,7 +2302,7 @@ declare const SessionForkSeedSchema: s.Schema<{
|
|
|
2302
2302
|
type: "toolCall";
|
|
2303
2303
|
id: string;
|
|
2304
2304
|
name: string;
|
|
2305
|
-
arguments: Record<string,
|
|
2305
|
+
arguments: Record<string, _sorbetai_schema30.JsonValue>;
|
|
2306
2306
|
thoughtSignature?: string | undefined;
|
|
2307
2307
|
argumentsError?: string | undefined;
|
|
2308
2308
|
})[];
|
|
@@ -2339,7 +2339,7 @@ declare const SessionForkSeedSchema: s.Schema<{
|
|
|
2339
2339
|
stack?: string | undefined;
|
|
2340
2340
|
code?: string | number | undefined;
|
|
2341
2341
|
} | undefined;
|
|
2342
|
-
details?: Record<string,
|
|
2342
|
+
details?: Record<string, _sorbetai_schema30.JsonValue> | undefined;
|
|
2343
2343
|
}[] | undefined;
|
|
2344
2344
|
deferred?: {
|
|
2345
2345
|
provider: string;
|
|
@@ -2348,7 +2348,7 @@ declare const SessionForkSeedSchema: s.Schema<{
|
|
|
2348
2348
|
id: string;
|
|
2349
2349
|
expiresAt?: number | undefined;
|
|
2350
2350
|
pollAfterMs?: number | undefined;
|
|
2351
|
-
data?: string | number | boolean |
|
|
2351
|
+
data?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
2352
2352
|
} | undefined;
|
|
2353
2353
|
errorMessage?: string | undefined;
|
|
2354
2354
|
rawStopReason?: string | undefined;
|
|
@@ -2371,7 +2371,7 @@ declare const SessionForkSeedSchema: s.Schema<{
|
|
|
2371
2371
|
})[];
|
|
2372
2372
|
isError: boolean;
|
|
2373
2373
|
timestamp: number;
|
|
2374
|
-
details?: string | number | boolean |
|
|
2374
|
+
details?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
2375
2375
|
usage?: {
|
|
2376
2376
|
input: number;
|
|
2377
2377
|
output: number;
|
|
@@ -2531,7 +2531,7 @@ declare function projectedMessagesAfterCompaction(summary: string, retainedTail:
|
|
|
2531
2531
|
type: "toolCall";
|
|
2532
2532
|
id: string;
|
|
2533
2533
|
name: string;
|
|
2534
|
-
arguments: Record<string,
|
|
2534
|
+
arguments: Record<string, _sorbetai_schema30.JsonValue>;
|
|
2535
2535
|
thoughtSignature?: string | undefined;
|
|
2536
2536
|
argumentsError?: string | undefined;
|
|
2537
2537
|
})[];
|
|
@@ -2568,7 +2568,7 @@ declare function projectedMessagesAfterCompaction(summary: string, retainedTail:
|
|
|
2568
2568
|
stack?: string | undefined;
|
|
2569
2569
|
code?: string | number | undefined;
|
|
2570
2570
|
} | undefined;
|
|
2571
|
-
details?: Record<string,
|
|
2571
|
+
details?: Record<string, _sorbetai_schema30.JsonValue> | undefined;
|
|
2572
2572
|
}[] | undefined;
|
|
2573
2573
|
deferred?: {
|
|
2574
2574
|
provider: string;
|
|
@@ -2577,7 +2577,7 @@ declare function projectedMessagesAfterCompaction(summary: string, retainedTail:
|
|
|
2577
2577
|
id: string;
|
|
2578
2578
|
expiresAt?: number | undefined;
|
|
2579
2579
|
pollAfterMs?: number | undefined;
|
|
2580
|
-
data?: string | number | boolean |
|
|
2580
|
+
data?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
2581
2581
|
} | undefined;
|
|
2582
2582
|
errorMessage?: string | undefined;
|
|
2583
2583
|
rawStopReason?: string | undefined;
|
|
@@ -2600,7 +2600,7 @@ declare function projectedMessagesAfterCompaction(summary: string, retainedTail:
|
|
|
2600
2600
|
})[];
|
|
2601
2601
|
isError: boolean;
|
|
2602
2602
|
timestamp: number;
|
|
2603
|
-
details?: string | number | boolean |
|
|
2603
|
+
details?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
2604
2604
|
usage?: {
|
|
2605
2605
|
input: number;
|
|
2606
2606
|
output: number;
|
|
@@ -3037,13 +3037,13 @@ declare const ScheduleInputSchema: s.Schema<{
|
|
|
3037
3037
|
})[];
|
|
3038
3038
|
source: {
|
|
3039
3039
|
kind: string;
|
|
3040
|
-
data?: string | number | boolean |
|
|
3040
|
+
data?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
3041
3041
|
};
|
|
3042
3042
|
} | {
|
|
3043
3043
|
kind: "context-event";
|
|
3044
3044
|
source: {
|
|
3045
3045
|
kind: string;
|
|
3046
|
-
data?: string | number | boolean |
|
|
3046
|
+
data?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
3047
3047
|
};
|
|
3048
3048
|
contextSources: ({
|
|
3049
3049
|
lifecycle: "turn";
|
|
@@ -3092,7 +3092,7 @@ declare const ScheduleInputSchema: s.Schema<{
|
|
|
3092
3092
|
kind: "container";
|
|
3093
3093
|
name: string;
|
|
3094
3094
|
attributes?: Record<string, string | number>;
|
|
3095
|
-
children:
|
|
3095
|
+
children: _sorbetai_context43.ContextXmlElement[];
|
|
3096
3096
|
};
|
|
3097
3097
|
sourceId: string;
|
|
3098
3098
|
provenance: {
|
|
@@ -3100,7 +3100,7 @@ declare const ScheduleInputSchema: s.Schema<{
|
|
|
3100
3100
|
label: string;
|
|
3101
3101
|
location?: string | undefined;
|
|
3102
3102
|
};
|
|
3103
|
-
metadata?: string | number | boolean |
|
|
3103
|
+
metadata?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
3104
3104
|
})[];
|
|
3105
3105
|
};
|
|
3106
3106
|
whenBusy: "followUp" | "steer";
|
|
@@ -3121,13 +3121,13 @@ declare const ScheduleInputSchema: s.Schema<{
|
|
|
3121
3121
|
})[];
|
|
3122
3122
|
source: {
|
|
3123
3123
|
kind: string;
|
|
3124
|
-
data?: string | number | boolean |
|
|
3124
|
+
data?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
3125
3125
|
};
|
|
3126
3126
|
} | {
|
|
3127
3127
|
kind: "context-event";
|
|
3128
3128
|
source: {
|
|
3129
3129
|
kind: string;
|
|
3130
|
-
data?: string | number | boolean |
|
|
3130
|
+
data?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
3131
3131
|
};
|
|
3132
3132
|
contextSources: ({
|
|
3133
3133
|
lifecycle: "turn";
|
|
@@ -3176,7 +3176,7 @@ declare const ScheduleInputSchema: s.Schema<{
|
|
|
3176
3176
|
kind: "container";
|
|
3177
3177
|
name: string;
|
|
3178
3178
|
attributes?: Record<string, string | number>;
|
|
3179
|
-
children:
|
|
3179
|
+
children: _sorbetai_context43.ContextXmlElement[];
|
|
3180
3180
|
};
|
|
3181
3181
|
sourceId: string;
|
|
3182
3182
|
provenance: {
|
|
@@ -3184,15 +3184,15 @@ declare const ScheduleInputSchema: s.Schema<{
|
|
|
3184
3184
|
label: string;
|
|
3185
3185
|
location?: string | undefined;
|
|
3186
3186
|
};
|
|
3187
|
-
metadata?: string | number | boolean |
|
|
3187
|
+
metadata?: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null | undefined;
|
|
3188
3188
|
})[];
|
|
3189
3189
|
};
|
|
3190
3190
|
whenBusy: "followUp" | "steer";
|
|
3191
3191
|
} | {
|
|
3192
3192
|
kind: "task";
|
|
3193
|
-
|
|
3194
|
-
input: string | number | boolean | _sorbetai_schema23.JsonArray | _sorbetai_schema23.JsonObject | null;
|
|
3193
|
+
input: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
3195
3194
|
taskKind: string;
|
|
3195
|
+
version: number;
|
|
3196
3196
|
};
|
|
3197
3197
|
}>;
|
|
3198
3198
|
/**
|
|
@@ -3864,7 +3864,7 @@ declare function capturePluginRecordInput(owner: PluginRecordOwner, input: Appen
|
|
|
3864
3864
|
input: {
|
|
3865
3865
|
recordType: string;
|
|
3866
3866
|
recordVersion: number;
|
|
3867
|
-
data: string | number | boolean |
|
|
3867
|
+
data: string | number | boolean | _sorbetai_schema30.JsonArray | _sorbetai_schema30.JsonObject | null;
|
|
3868
3868
|
expectedRevision: number;
|
|
3869
3869
|
sourceSequence: number;
|
|
3870
3870
|
idempotencyKey?: string | undefined;
|
package/dist/node.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ft as JournalStore, Lt as JournalSubscription, Mt as JournalPage, Pt as JournalReadOptions, Rt as JournalSubscriptionOptions, T as UnitSnapshotFile, _ as UnitReader, a as OpenedUnitStore, b as UnitSnapshotWrite, ft as JournalRecoveryFact, kt as JournalFact, l as UnitFact, m as UnitOpenOptions, nt as RuntimeObservationPort, p as UnitInspectionPage, t as UnitSession, wt as JournalAppendOptions, x as UnitStore, y as UnitSnapshot, zt as JournalWrite } from "./catalog-
|
|
1
|
+
import { Ft as JournalStore, Lt as JournalSubscription, Mt as JournalPage, Pt as JournalReadOptions, Rt as JournalSubscriptionOptions, T as UnitSnapshotFile, _ as UnitReader, a as OpenedUnitStore, b as UnitSnapshotWrite, ft as JournalRecoveryFact, kt as JournalFact, l as UnitFact, m as UnitOpenOptions, nt as RuntimeObservationPort, p as UnitInspectionPage, t as UnitSession, wt as JournalAppendOptions, x as UnitStore, y as UnitSnapshot, zt as JournalWrite } from "./catalog-aN1mnMNT.js";
|
|
2
2
|
import * as s from "@earendil-works/pi-schema";
|
|
3
3
|
import "@sorbetai/context";
|
|
4
4
|
import "@sorbetai/schema";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sorbetai/runtime",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Core package for Sorbet",
|
|
6
6
|
"type": "module",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"minisearch": "7.2.0",
|
|
32
32
|
"race-signal": "2.0.2",
|
|
33
33
|
"@earendil-works/pi-schema": "1.6.0",
|
|
34
|
-
"@sorbetai/artifacts": "0.1.0-alpha.
|
|
35
|
-
"@sorbetai/plugins": "0.1.0-alpha.
|
|
36
|
-
"@sorbetai/
|
|
37
|
-
"@sorbetai/
|
|
34
|
+
"@sorbetai/artifacts": "0.1.0-alpha.21",
|
|
35
|
+
"@sorbetai/plugins": "0.1.0-alpha.21",
|
|
36
|
+
"@sorbetai/schema": "0.1.0-alpha.21",
|
|
37
|
+
"@sorbetai/context": "0.1.0-alpha.21"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|