@dxos/compute 0.16.0 → 0.17.0
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/lib/AiMetering.mjs +1 -0
- package/dist/lib/Hook.mjs +1 -0
- package/dist/lib/Operation.mjs +3 -3
- package/dist/lib/Process.mjs +2 -2
- package/dist/lib/Trace.mjs +1 -1
- package/dist/lib/chunk-AgentIdentity.mjs +1 -1
- package/dist/lib/chunk-AgentService.mjs.map +1 -1
- package/dist/lib/chunk-AiMetering.mjs +77 -0
- package/dist/lib/chunk-AiMetering.mjs.map +1 -0
- package/dist/lib/chunk-Cancellation.mjs +1 -1
- package/dist/lib/chunk-Hook.mjs +78 -0
- package/dist/lib/chunk-Hook.mjs.map +1 -0
- package/dist/lib/chunk-Instructions.mjs +1 -1
- package/dist/lib/chunk-Operation.mjs +169 -5
- package/dist/lib/chunk-Operation.mjs.map +1 -1
- package/dist/lib/chunk-OperationHandlerSet.mjs +1 -1
- package/dist/lib/chunk-OperationRegistry.mjs +1 -1
- package/dist/lib/chunk-OperationRegistry.mjs.map +1 -1
- package/dist/lib/chunk-Process.mjs +18 -10
- package/dist/lib/chunk-Process.mjs.map +1 -1
- package/dist/lib/chunk-Project.mjs +52 -24
- package/dist/lib/chunk-Project.mjs.map +1 -1
- package/dist/lib/chunk-Reducer.mjs +827 -0
- package/dist/lib/chunk-Reducer.mjs.map +1 -0
- package/dist/lib/chunk-Routine.mjs +1 -1
- package/dist/lib/chunk-Runnable.mjs +1 -1
- package/dist/lib/chunk-ServiceResolver.mjs +1 -1
- package/dist/lib/chunk-Skill.mjs +10 -47
- package/dist/lib/chunk-Skill.mjs.map +1 -1
- package/dist/lib/chunk-Spec.mjs +49 -0
- package/dist/lib/chunk-Spec.mjs.map +1 -0
- package/dist/lib/chunk-SpecReview.mjs +98 -0
- package/dist/lib/chunk-SpecReview.mjs.map +1 -0
- package/dist/lib/chunk-SqlService.mjs.map +1 -1
- package/dist/lib/chunk-StorageService.mjs +1 -1
- package/dist/lib/chunk-Template.mjs +2 -2
- package/dist/lib/chunk-Trace.mjs +97 -13
- package/dist/lib/chunk-Trace.mjs.map +1 -1
- package/dist/lib/chunk-Trajectory.mjs +326 -0
- package/dist/lib/chunk-Trajectory.mjs.map +1 -0
- package/dist/lib/chunk-Transcript.mjs +84 -0
- package/dist/lib/chunk-Transcript.mjs.map +1 -0
- package/dist/lib/chunk-definitions.mjs +1 -1
- package/dist/lib/errors.mjs +3 -1
- package/dist/lib/errors.mjs.map +1 -1
- package/dist/lib/index.mjs +14 -8
- package/dist/lib/testing.mjs +2 -2
- package/dist/lib/trajectory/Reducer.mjs +1 -0
- package/dist/lib/trajectory/Trajectory.mjs +1 -0
- package/dist/lib/trajectory/Transcript.mjs +1 -0
- package/dist/lib/types/Project.mjs +1 -1
- package/dist/lib/types/Skill.mjs +1 -1
- package/dist/lib/types/Spec.mjs +1 -0
- package/dist/lib/types/SpecReview.mjs +1 -0
- package/dist/types/src/AgentService.d.ts +9 -0
- package/dist/types/src/AgentService.d.ts.map +1 -1
- package/dist/types/src/AiMetering.d.ts +23 -0
- package/dist/types/src/AiMetering.d.ts.map +1 -0
- package/dist/types/src/AiMetering.test.d.ts +2 -0
- package/dist/types/src/AiMetering.test.d.ts.map +1 -0
- package/dist/types/src/Hook.d.ts +84 -0
- package/dist/types/src/Hook.d.ts.map +1 -0
- package/dist/types/src/Hook.test.d.ts +2 -0
- package/dist/types/src/Hook.test.d.ts.map +1 -0
- package/dist/types/src/Operation.d.ts +276 -2
- package/dist/types/src/Operation.d.ts.map +1 -1
- package/dist/types/src/Process.d.ts +26 -4
- package/dist/types/src/Process.d.ts.map +1 -1
- package/dist/types/src/Script.test.d.ts +2 -0
- package/dist/types/src/Script.test.d.ts.map +1 -0
- package/dist/types/src/Trace.d.ts +103 -1
- package/dist/types/src/Trace.d.ts.map +1 -1
- package/dist/types/src/errors.d.ts +30 -0
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/trajectory/Reducer.d.ts +191 -0
- package/dist/types/src/trajectory/Reducer.d.ts.map +1 -0
- package/dist/types/src/trajectory/Reducer.test.d.ts +2 -0
- package/dist/types/src/trajectory/Reducer.test.d.ts.map +1 -0
- package/dist/types/src/trajectory/Trajectory.d.ts +3211 -0
- package/dist/types/src/trajectory/Trajectory.d.ts.map +1 -0
- package/dist/types/src/trajectory/Trajectory.test.d.ts +2 -0
- package/dist/types/src/trajectory/Trajectory.test.d.ts.map +1 -0
- package/dist/types/src/trajectory/Transcript.d.ts +40 -0
- package/dist/types/src/trajectory/Transcript.d.ts.map +1 -0
- package/dist/types/src/trajectory/index.d.ts +4 -0
- package/dist/types/src/trajectory/index.d.ts.map +1 -0
- package/dist/types/src/trajectory/light-threads.test.d.ts +2 -0
- package/dist/types/src/trajectory/light-threads.test.d.ts.map +1 -0
- package/dist/types/src/trajectory/samples.test.d.ts +2 -0
- package/dist/types/src/trajectory/samples.test.d.ts.map +1 -0
- package/dist/types/src/types/Project.d.ts +11 -12
- package/dist/types/src/types/Project.d.ts.map +1 -1
- package/dist/types/src/types/Skill.d.ts +6 -51
- package/dist/types/src/types/Skill.d.ts.map +1 -1
- package/dist/types/src/types/Spec.d.ts +26 -0
- package/dist/types/src/types/Spec.d.ts.map +1 -0
- package/dist/types/src/types/SpecReview.d.ts +76 -0
- package/dist/types/src/types/SpecReview.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +59 -26
- package/src/AgentService.ts +9 -0
- package/src/AiMetering.test.ts +89 -0
- package/src/AiMetering.ts +93 -0
- package/src/Hook.test.ts +75 -0
- package/src/Hook.ts +154 -0
- package/src/Operation.test.ts +23 -0
- package/src/Operation.ts +334 -0
- package/src/Process.ts +33 -6
- package/src/Script.test.ts +74 -0
- package/src/Trace.ts +97 -4
- package/src/errors.ts +3 -0
- package/src/index.ts +3 -1
- package/src/trajectory/Reducer.test.ts +575 -0
- package/src/trajectory/Reducer.ts +1026 -0
- package/src/trajectory/Trajectory.test.ts +114 -0
- package/src/trajectory/Trajectory.ts +440 -0
- package/src/trajectory/Transcript.ts +113 -0
- package/src/trajectory/index.ts +7 -0
- package/src/trajectory/light-threads.test.ts +310 -0
- package/src/trajectory/samples.test.ts +285 -0
- package/src/types/Project.test.ts +2 -1
- package/src/types/Project.ts +43 -27
- package/src/types/Skill.ts +6 -61
- package/src/types/Spec.ts +68 -0
- package/src/types/SpecReview.ts +98 -0
- package/src/types/index.ts +2 -0
- package/dist/lib/McpServer.mjs +0 -1
- package/dist/lib/chunk-McpServer.mjs +0 -124
- package/dist/lib/chunk-McpServer.mjs.map +0 -1
- package/dist/types/src/McpServer.d.ts +0 -113
- package/dist/types/src/McpServer.d.ts.map +0 -1
- package/src/McpServer.ts +0 -142
|
@@ -9,8 +9,20 @@ import * as Trigger from './types/Trigger.ts';
|
|
|
9
9
|
* Exposed to processes and operations to record events to the trace.
|
|
10
10
|
*/
|
|
11
11
|
export interface Writer {
|
|
12
|
-
|
|
12
|
+
/** `meta` carries what only the writing fiber knows, such as its {@link CurrentThread}. */
|
|
13
|
+
write<T>(eventType: EventType<T>, payload: NoInfer<T>, meta?: FiberMeta): void;
|
|
13
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Meta a {@link Writer} cannot know from its process alone.
|
|
17
|
+
*/
|
|
18
|
+
export type FiberMeta = Pick<Meta, 'thread'>;
|
|
19
|
+
/**
|
|
20
|
+
* Lane of the agent turn the current fiber runs (its light thread, or the prompt a turn on main answers), stamped
|
|
21
|
+
* on its events as {@link Meta.thread}
|
|
22
|
+
* and on the processes it spawns as {@link Meta.parentThread}: one process runs several turns at once,
|
|
23
|
+
* and the pid alone cannot tell their events apart.
|
|
24
|
+
*/
|
|
25
|
+
export declare const CurrentThread: Context.Reference<string | undefined>;
|
|
14
26
|
declare const TraceService_base: Context.ServiceClass<TraceService, "@dxos/functions/TraceService", Writer>;
|
|
15
27
|
/**
|
|
16
28
|
* Service that writes events to the trace.
|
|
@@ -73,6 +85,13 @@ export declare const CommonRuntimeName: {
|
|
|
73
85
|
export declare const Meta: Schema.Struct<{
|
|
74
86
|
readonly pid: Schema.optional<Schema.String>;
|
|
75
87
|
readonly parentPid: Schema.optional<Schema.String>;
|
|
88
|
+
/**
|
|
89
|
+
* Pid of the first invocation of the run this message belongs to.
|
|
90
|
+
* A run that calls `Operation.runAgain()` continues in a new invocation with its own `pid`; each
|
|
91
|
+
* continuation carries the first invocation's `pid` here so consumers can show the run as one unit.
|
|
92
|
+
* Absent on the first invocation, whose own `pid` is the run's id.
|
|
93
|
+
*/
|
|
94
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
76
95
|
readonly processName: Schema.optional<Schema.String>;
|
|
77
96
|
/**
|
|
78
97
|
* Space the message was produced in.
|
|
@@ -95,6 +114,14 @@ export declare const Meta: Schema.Struct<{
|
|
|
95
114
|
* Extensible name informing which runtime executed the code that produced the event.
|
|
96
115
|
*/
|
|
97
116
|
readonly runtimeName: Schema.optional<Schema.brand<Schema.String, "@dxos/compute/Trace/RuntimeName">>;
|
|
117
|
+
/**
|
|
118
|
+
* Lane of the process's turn that produced the event (see {@link CurrentThread}).
|
|
119
|
+
*/
|
|
120
|
+
readonly thread: Schema.optional<Schema.String>;
|
|
121
|
+
/**
|
|
122
|
+
* Light thread of the parent process's turn that spawned this process.
|
|
123
|
+
*/
|
|
124
|
+
readonly parentThread: Schema.optional<Schema.String>;
|
|
98
125
|
}>;
|
|
99
126
|
export type Meta = Schema.Schema.Type<typeof Meta>;
|
|
100
127
|
/**
|
|
@@ -108,6 +135,13 @@ export declare const MessageData: Schema.Struct<{
|
|
|
108
135
|
readonly meta: Schema.Struct<{
|
|
109
136
|
readonly pid: Schema.optional<Schema.String>;
|
|
110
137
|
readonly parentPid: Schema.optional<Schema.String>;
|
|
138
|
+
/**
|
|
139
|
+
* Pid of the first invocation of the run this message belongs to.
|
|
140
|
+
* A run that calls `Operation.runAgain()` continues in a new invocation with its own `pid`; each
|
|
141
|
+
* continuation carries the first invocation's `pid` here so consumers can show the run as one unit.
|
|
142
|
+
* Absent on the first invocation, whose own `pid` is the run's id.
|
|
143
|
+
*/
|
|
144
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
111
145
|
readonly processName: Schema.optional<Schema.String>;
|
|
112
146
|
/**
|
|
113
147
|
* Space the message was produced in.
|
|
@@ -130,6 +164,14 @@ export declare const MessageData: Schema.Struct<{
|
|
|
130
164
|
* Extensible name informing which runtime executed the code that produced the event.
|
|
131
165
|
*/
|
|
132
166
|
readonly runtimeName: Schema.optional<Schema.brand<Schema.String, "@dxos/compute/Trace/RuntimeName">>;
|
|
167
|
+
/**
|
|
168
|
+
* Lane of the process's turn that produced the event (see {@link CurrentThread}).
|
|
169
|
+
*/
|
|
170
|
+
readonly thread: Schema.optional<Schema.String>;
|
|
171
|
+
/**
|
|
172
|
+
* Light thread of the parent process's turn that spawned this process.
|
|
173
|
+
*/
|
|
174
|
+
readonly parentThread: Schema.optional<Schema.String>;
|
|
133
175
|
}>;
|
|
134
176
|
readonly isEphemeral: Schema.Boolean;
|
|
135
177
|
readonly events: Schema.$Array<Schema.Struct<{
|
|
@@ -143,12 +185,15 @@ declare const Message_base: Type.ObjClass<Message, {
|
|
|
143
185
|
readonly meta: {
|
|
144
186
|
readonly pid?: string | undefined;
|
|
145
187
|
readonly parentPid?: string | undefined;
|
|
188
|
+
readonly runId?: string | undefined;
|
|
146
189
|
readonly processName?: string | undefined;
|
|
147
190
|
readonly space?: string | undefined;
|
|
148
191
|
readonly conversation?: import("@dxos/echo/internal").Ref<Obj.Unknown> | undefined;
|
|
149
192
|
readonly trigger?: import("@dxos/echo/internal").Ref<Trigger.Trigger & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
|
|
150
193
|
readonly toolCallId?: string | undefined;
|
|
151
194
|
readonly runtimeName?: (string & import("effect/Brand").Brand<"@dxos/compute/Trace/RuntimeName">) | undefined;
|
|
195
|
+
readonly thread?: string | undefined;
|
|
196
|
+
readonly parentThread?: string | undefined;
|
|
152
197
|
};
|
|
153
198
|
readonly isEphemeral: boolean;
|
|
154
199
|
readonly events: readonly {
|
|
@@ -345,6 +390,14 @@ export declare const StatusUpdate: EventType<{
|
|
|
345
390
|
readonly phase?: number | undefined;
|
|
346
391
|
} | undefined;
|
|
347
392
|
}>;
|
|
393
|
+
/** {@link StatusUpdate} message that ends a run's progress: the meter completes and is removed. */
|
|
394
|
+
export declare const StatusComplete = "progress.complete";
|
|
395
|
+
/** {@link StatusUpdate} message that ends a sync's progress as failed; the meter stays visible. */
|
|
396
|
+
export declare const StatusFailed = "Sync failed";
|
|
397
|
+
/** {@link StatusUpdate} message that ends any other run's progress as failed; the meter stays visible. */
|
|
398
|
+
export declare const StatusError = "Failed";
|
|
399
|
+
/** {@link StatusUpdate} message that ends a run's progress as cancelled: the meter is removed. */
|
|
400
|
+
export declare const StatusCancelled = "Cancelled";
|
|
348
401
|
/**
|
|
349
402
|
* Emit the current human-readable execution status to the trace.
|
|
350
403
|
*/
|
|
@@ -413,6 +466,10 @@ export declare const PartialBlock: EventType<{
|
|
|
413
466
|
readonly label: string;
|
|
414
467
|
readonly kind: "allow_always" | "allow_once" | "reject_always" | "reject_once";
|
|
415
468
|
}[];
|
|
469
|
+
readonly preview?: {
|
|
470
|
+
readonly label: string;
|
|
471
|
+
readonly text: string;
|
|
472
|
+
} | undefined;
|
|
416
473
|
readonly resolution?: {
|
|
417
474
|
readonly outcome: "cancelled" | "selected";
|
|
418
475
|
readonly optionId?: string | undefined;
|
|
@@ -439,6 +496,8 @@ export declare const PartialBlock: EventType<{
|
|
|
439
496
|
readonly inputTokens?: number | undefined;
|
|
440
497
|
readonly outputTokens?: number | undefined;
|
|
441
498
|
readonly totalTokens?: number | undefined;
|
|
499
|
+
readonly cacheReadTokens?: number | undefined;
|
|
500
|
+
readonly cacheWriteTokens?: number | undefined;
|
|
442
501
|
} | undefined;
|
|
443
502
|
readonly toolCalls?: number | undefined;
|
|
444
503
|
readonly errors?: number | undefined;
|
|
@@ -511,6 +570,10 @@ export declare const PartialBlock: EventType<{
|
|
|
511
570
|
} | undefined;
|
|
512
571
|
readonly error?: string | undefined;
|
|
513
572
|
readonly providerExecuted: boolean;
|
|
573
|
+
readonly invocations?: {
|
|
574
|
+
readonly operationKey: string;
|
|
575
|
+
readonly error?: string | undefined;
|
|
576
|
+
}[] | undefined;
|
|
514
577
|
} | {
|
|
515
578
|
readonly _tag: "transcript";
|
|
516
579
|
readonly pending?: boolean | undefined;
|
|
@@ -594,6 +657,10 @@ export declare const CompleteBlock: EventType<{
|
|
|
594
657
|
readonly label: string;
|
|
595
658
|
readonly kind: "allow_always" | "allow_once" | "reject_always" | "reject_once";
|
|
596
659
|
}[];
|
|
660
|
+
readonly preview?: {
|
|
661
|
+
readonly label: string;
|
|
662
|
+
readonly text: string;
|
|
663
|
+
} | undefined;
|
|
597
664
|
readonly resolution?: {
|
|
598
665
|
readonly outcome: "cancelled" | "selected";
|
|
599
666
|
readonly optionId?: string | undefined;
|
|
@@ -620,6 +687,8 @@ export declare const CompleteBlock: EventType<{
|
|
|
620
687
|
readonly inputTokens?: number | undefined;
|
|
621
688
|
readonly outputTokens?: number | undefined;
|
|
622
689
|
readonly totalTokens?: number | undefined;
|
|
690
|
+
readonly cacheReadTokens?: number | undefined;
|
|
691
|
+
readonly cacheWriteTokens?: number | undefined;
|
|
623
692
|
} | undefined;
|
|
624
693
|
readonly toolCalls?: number | undefined;
|
|
625
694
|
readonly errors?: number | undefined;
|
|
@@ -692,6 +761,10 @@ export declare const CompleteBlock: EventType<{
|
|
|
692
761
|
} | undefined;
|
|
693
762
|
readonly error?: string | undefined;
|
|
694
763
|
readonly providerExecuted: boolean;
|
|
764
|
+
readonly invocations?: {
|
|
765
|
+
readonly operationKey: string;
|
|
766
|
+
readonly error?: string | undefined;
|
|
767
|
+
}[] | undefined;
|
|
695
768
|
} | {
|
|
696
769
|
readonly _tag: "transcript";
|
|
697
770
|
readonly pending?: boolean | undefined;
|
|
@@ -716,6 +789,17 @@ export declare const AgentRequestEnd: EventType<{
|
|
|
716
789
|
readonly status: "error" | "interrupted" | "success";
|
|
717
790
|
readonly error?: string | undefined;
|
|
718
791
|
}>;
|
|
792
|
+
/**
|
|
793
|
+
* The end-request hooks a request runs, resolved when it begins (see `Hook.resolve`): which ran by their plugin's
|
|
794
|
+
* default, which a setting turned on but whose skill is unbound, and which plugins a setting turned on that this
|
|
795
|
+
* host lacks. Written only when one of those is non-empty.
|
|
796
|
+
*/
|
|
797
|
+
export declare const AgentHooksResolved: EventType<{
|
|
798
|
+
readonly run: readonly string[];
|
|
799
|
+
readonly byDefault: readonly string[];
|
|
800
|
+
readonly inactive: readonly string[];
|
|
801
|
+
readonly missing: readonly string[];
|
|
802
|
+
}>;
|
|
719
803
|
/**
|
|
720
804
|
* Emitted by the supervisor when a delegated task is handed to a sub-agent process; the only durable
|
|
721
805
|
* record of the task ↔ pid pairing, since nothing is stamped on the task itself.
|
|
@@ -737,6 +821,24 @@ export declare const DelegationCompleted: EventType<{
|
|
|
737
821
|
readonly status: "failure" | "success";
|
|
738
822
|
readonly result?: string | undefined;
|
|
739
823
|
}>;
|
|
824
|
+
/**
|
|
825
|
+
* One language-model call's token usage, written by the metered `AiService` (see `AiMetering`).
|
|
826
|
+
* Durable so a run's cost can be read back from its trace; dollars are applied at read time from the
|
|
827
|
+
* model catalog's prices, which change.
|
|
828
|
+
*/
|
|
829
|
+
export declare const ModelCall: EventType<{
|
|
830
|
+
readonly modelId?: string | undefined;
|
|
831
|
+
readonly model: string;
|
|
832
|
+
readonly provider?: string | undefined;
|
|
833
|
+
readonly stage?: string | undefined;
|
|
834
|
+
readonly spanName?: string | undefined;
|
|
835
|
+
readonly inputTokens: number;
|
|
836
|
+
readonly outputTokens: number;
|
|
837
|
+
readonly cacheReadTokens: number;
|
|
838
|
+
readonly cacheWriteTokens: number;
|
|
839
|
+
readonly start: number;
|
|
840
|
+
readonly end: number;
|
|
841
|
+
}>;
|
|
740
842
|
/**
|
|
741
843
|
* Emitted when an MCP server connection fails for a request turn.
|
|
742
844
|
* Ephemeral so that misconfigured/unreachable servers don't pollute the durable feed,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Trace.d.ts","sourceRoot":"","sources":["../../../src/Trace.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAmB,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAK7D,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Trace.d.ts","sourceRoot":"","sources":["../../../src/Trace.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAmB,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAK7D,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB,2FAA2F;IAC3F,KAAK,C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AS9B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;EAmBpB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;EASzB,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,iNAwB3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3E;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;EAevB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,UACpB,gBAAgB,SACjB;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAC1C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAA4C,CAAC"}
|
|
@@ -223,6 +223,36 @@ declare const InvalidOperationInputError_base: {
|
|
|
223
223
|
};
|
|
224
224
|
export declare class InvalidOperationInputError extends InvalidOperationInputError_base {
|
|
225
225
|
}
|
|
226
|
+
declare const OperationDeniedError_base: {
|
|
227
|
+
new (options?: BaseErrorOptions): {
|
|
228
|
+
cause?: unknown;
|
|
229
|
+
stack?: string;
|
|
230
|
+
name: "OperationDeniedError";
|
|
231
|
+
context: Record<string, unknown>;
|
|
232
|
+
readonly message: string;
|
|
233
|
+
readonly _tag: "OperationDeniedError";
|
|
234
|
+
};
|
|
235
|
+
isError(error: unknown): error is Error;
|
|
236
|
+
name: "OperationDeniedError";
|
|
237
|
+
is(error: unknown): error is BaseError;
|
|
238
|
+
wrap(options?: Omit<BaseErrorOptions, 'cause'> & {
|
|
239
|
+
ifTypeDiffers?: boolean;
|
|
240
|
+
}): (error: unknown) => {
|
|
241
|
+
cause?: unknown;
|
|
242
|
+
stack?: string;
|
|
243
|
+
name: "OperationDeniedError";
|
|
244
|
+
context: Record<string, unknown>;
|
|
245
|
+
readonly message: string;
|
|
246
|
+
readonly _tag: "OperationDeniedError";
|
|
247
|
+
};
|
|
248
|
+
extend<Name extends string = string>(name: Name, message?: string): any;
|
|
249
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
250
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
251
|
+
stackTraceLimit: number;
|
|
252
|
+
};
|
|
253
|
+
/** An operation declared requirements that the invoking process's guard did not admit, or the process holds no guard. */
|
|
254
|
+
export declare class OperationDeniedError extends OperationDeniedError_base {
|
|
255
|
+
}
|
|
226
256
|
declare const InvalidOperationOutputError_base: {
|
|
227
257
|
new (options?: BaseErrorOptions): {
|
|
228
258
|
cause?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE7C;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,kBAAyD;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAI/F,qBAAa,0BAA2B,SAAQ,+BAG/C;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEJ,qBAAa,cAAe,SAAQ,mBAAsE;IACxG,YAAY,YAAY,EAAE,MAAM,EAE/B;CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAID,qBAAa,wBAAyB,SAAQ,6BAAgE;IAC5G,YAAY,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,EAEvE;CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,qBAAa,qBAAsB,SA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C;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEJ;;;;GAIG;AACH,qBAAa,+BAAgC,SAAQ,oCAGpD;CAAG"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
export * from './trajectory/index.ts';
|
|
1
2
|
export * from './types/index.ts';
|
|
2
3
|
export * as AgentIdentity from './AgentIdentity.ts';
|
|
4
|
+
export * as AiMetering from './AiMetering.ts';
|
|
3
5
|
export * as AgentService from './AgentService.ts';
|
|
4
6
|
export * as Cancellation from './Cancellation.ts';
|
|
5
7
|
export * as Credential from './Credential.ts';
|
|
6
8
|
export * as FunctionsAiError from './FunctionsAiError.ts';
|
|
7
9
|
export * as Header from './Header.ts';
|
|
10
|
+
export * as Hook from './Hook.ts';
|
|
8
11
|
export * as LayerSpec from './LayerSpec.ts';
|
|
9
|
-
export * as McpServer from './McpServer.ts';
|
|
10
12
|
export * as Operation from './Operation.ts';
|
|
11
13
|
export * as OperationHandlerSet from './OperationHandlerSet.ts';
|
|
12
14
|
export * as OperationRegistry from './OperationRegistry.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AAEjC,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AAEjC,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,mBAAmB,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import * as HashMap from 'effect/HashMap';
|
|
2
|
+
import * as Schema from 'effect/Schema';
|
|
3
|
+
import { type Obj, type Ref } from '@dxos/echo';
|
|
4
|
+
import { ContentBlock } from '@dxos/types';
|
|
5
|
+
import * as Trajectory from './Trajectory.ts';
|
|
6
|
+
/**
|
|
7
|
+
* A left fold over events in feed order; every view of a trajectory is one of these, so state after `n + k` events
|
|
8
|
+
* is `step` applied `k` times to the state after `n`, and a reader never has to start from the first event.
|
|
9
|
+
*/
|
|
10
|
+
export interface Reducer<S> {
|
|
11
|
+
readonly initial: S;
|
|
12
|
+
readonly step: (state: S, event: Trajectory.Event) => S;
|
|
13
|
+
/**
|
|
14
|
+
* Folds a batch at once, equal to stepping each event; lets a reducer copy its state once per batch rather than once
|
|
15
|
+
* per event, which keeps a long fold linear. The state passed in is never modified.
|
|
16
|
+
*/
|
|
17
|
+
readonly fold?: (state: S, events: readonly Trajectory.Event[]) => S;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Reducer state after the event `head`; a cache that is always safe to drop, since replaying from the start
|
|
21
|
+
* rebuilds it exactly.
|
|
22
|
+
*/
|
|
23
|
+
export type Checkpoint<S> = {
|
|
24
|
+
readonly state: S;
|
|
25
|
+
readonly head?: Trajectory.EventId;
|
|
26
|
+
/** Events folded so far. */
|
|
27
|
+
readonly count: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Folds `events` (the tail after `from.head`) onto a checkpoint, or onto the initial state.
|
|
31
|
+
* Fold in local order (`Feed.getLocalCursor`): it never changes under a reader, so a checkpoint stays valid as sync
|
|
32
|
+
* repositions the feed.
|
|
33
|
+
*/
|
|
34
|
+
export declare const run: <S>(reducer: Reducer<S>, events: Iterable<Trajectory.Event>, from?: Checkpoint<S>) => Checkpoint<S>;
|
|
35
|
+
export type Alarm = {
|
|
36
|
+
readonly id: Trajectory.EventId;
|
|
37
|
+
readonly wakeAt: number;
|
|
38
|
+
readonly message?: string;
|
|
39
|
+
};
|
|
40
|
+
export type BackgroundTool = {
|
|
41
|
+
readonly toolCallId: string;
|
|
42
|
+
readonly pid?: string;
|
|
43
|
+
};
|
|
44
|
+
export type ThreadStatus = 'open' | 'merged' | Trajectory.ThreadStatus;
|
|
45
|
+
export type ThreadInfo = {
|
|
46
|
+
readonly id: Trajectory.ThreadId;
|
|
47
|
+
readonly mode: Trajectory.ThreadMode;
|
|
48
|
+
readonly status: ThreadStatus;
|
|
49
|
+
};
|
|
50
|
+
type SkillRef = Trajectory.ContextBind['skills'][number];
|
|
51
|
+
type ObjectRef = Trajectory.ContextBind['objects'][number];
|
|
52
|
+
export type SessionState = {
|
|
53
|
+
/** User messages no `promptConsume` or `promptCancel` has named yet, oldest first. */
|
|
54
|
+
readonly queue: readonly Trajectory.EventId[];
|
|
55
|
+
readonly alarms: readonly Alarm[];
|
|
56
|
+
readonly skills: readonly SkillRef[];
|
|
57
|
+
readonly objects: readonly ObjectRef[];
|
|
58
|
+
readonly background: readonly BackgroundTool[];
|
|
59
|
+
readonly threads: readonly ThreadInfo[];
|
|
60
|
+
readonly model?: Trajectory.ModelChange['model'];
|
|
61
|
+
/** `turnBegin`s of turns that have not ended; more than one when several writers run turns at once. */
|
|
62
|
+
readonly turns: readonly Trajectory.ThreadId[];
|
|
63
|
+
/**
|
|
64
|
+
* `promptConsume`s and `promptCancel`s whose message was no longer queued, because another writer consumed or
|
|
65
|
+
* cancelled it first; a harness claims a message by writing its consume and runs only if that consume is not listed
|
|
66
|
+
* here.
|
|
67
|
+
*/
|
|
68
|
+
readonly rejected: readonly Trajectory.EventId[];
|
|
69
|
+
/** Alarms fired since the last prompt a person typed: the count a harness caps self-wakes at. */
|
|
70
|
+
readonly selfWakes: number;
|
|
71
|
+
};
|
|
72
|
+
/** `rewound`: discarded by a rewind; kept so a reader can tell a message it already showed from a new one. */
|
|
73
|
+
export type ItemStatus = 'queued' | 'consumed' | 'cancelled' | 'sent' | 'rewound';
|
|
74
|
+
export type ThreadItem = {
|
|
75
|
+
readonly id: Trajectory.EventId;
|
|
76
|
+
readonly sender: Trajectory.Sender;
|
|
77
|
+
readonly blocks: readonly ContentBlock.Any[];
|
|
78
|
+
readonly created: string;
|
|
79
|
+
/** Thread the message was written in; absent for the main thread. */
|
|
80
|
+
readonly thread?: Trajectory.ThreadId;
|
|
81
|
+
/** The lane the message belongs to: the top-level thread or turn its thread nests in; absent outside any. */
|
|
82
|
+
readonly lane?: Trajectory.ThreadId;
|
|
83
|
+
readonly status: ItemStatus;
|
|
84
|
+
};
|
|
85
|
+
export type LaneStatus = 'running' | 'waiting' | 'done' | 'failed';
|
|
86
|
+
/**
|
|
87
|
+
* One top-level unit of work: a light (or other) thread opened on main, or a turn that runs on main. Several lanes
|
|
88
|
+
* running at once are what the chat shows side by side.
|
|
89
|
+
*/
|
|
90
|
+
export type Lane = {
|
|
91
|
+
readonly id: Trajectory.ThreadId;
|
|
92
|
+
readonly kind: 'turn' | Trajectory.ThreadMode;
|
|
93
|
+
readonly status: LaneStatus;
|
|
94
|
+
readonly owner: Trajectory.Sender;
|
|
95
|
+
readonly created: string;
|
|
96
|
+
readonly purpose?: string;
|
|
97
|
+
/** The lane this one is waiting for (`threadWait`). */
|
|
98
|
+
readonly waitingOn?: Trajectory.ThreadId;
|
|
99
|
+
/** Whether another lane was running at some point while this one was. */
|
|
100
|
+
readonly overlapped?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Whether a newer lane of the same owner opened while this one ran: the reader moved on to the newer request, so
|
|
103
|
+
* this one works in the background from then on. Another owner's lane does not background it; agents talking to the
|
|
104
|
+
* reader at once stay side by side. A delegated subagent (a `fresh` thread on main) is in the background from the
|
|
105
|
+
* start.
|
|
106
|
+
*/
|
|
107
|
+
readonly backgrounded?: boolean;
|
|
108
|
+
/** A fork's fork point: the message of main it forks at. */
|
|
109
|
+
readonly from?: Trajectory.EventId;
|
|
110
|
+
/** How a person merged a fork into main: its whole work (`raw`), or its conclusion (`summary`). */
|
|
111
|
+
readonly merged?: Trajectory.MergeMode;
|
|
112
|
+
};
|
|
113
|
+
export type ThreadView = {
|
|
114
|
+
readonly items: readonly ThreadItem[];
|
|
115
|
+
/** In the order they opened. */
|
|
116
|
+
readonly lanes: readonly Lane[];
|
|
117
|
+
/** The lane of every thread and turn opened so far. */
|
|
118
|
+
readonly laneOf: Readonly<Record<Trajectory.ThreadId, Trajectory.ThreadId>>;
|
|
119
|
+
};
|
|
120
|
+
export type PromptEntry = {
|
|
121
|
+
readonly role: Trajectory.Role;
|
|
122
|
+
/** The sender's name, which lets the model tell several people (or sources) apart. */
|
|
123
|
+
readonly name?: string;
|
|
124
|
+
readonly blocks: readonly ContentBlock.Any[];
|
|
125
|
+
/** Events this entry was built from, so a later `compact` can find its range. */
|
|
126
|
+
readonly source: readonly Trajectory.EventId[];
|
|
127
|
+
/** Feed position of the event that placed the entry in its current buffer. */
|
|
128
|
+
readonly at: number;
|
|
129
|
+
/** A light thread's snapshot of the threads running beside it; dropped when the thread merges. */
|
|
130
|
+
readonly ephemeral?: boolean;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Entries written in an open thread or turn, merged into `parent` (absent: main) when it ends.
|
|
134
|
+
*/
|
|
135
|
+
export type ThreadBuffer = {
|
|
136
|
+
readonly parent?: Trajectory.ThreadId;
|
|
137
|
+
/** How the thread opened; absent for a turn. The session engine's merge policy is per mode. */
|
|
138
|
+
readonly mode?: Trajectory.ThreadMode;
|
|
139
|
+
/** A fresh thread's prompt is its own entries only; a fork's starts with its parent's. */
|
|
140
|
+
readonly fresh: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Feed position of the last event the thread saw when it opened (its `from.event`); parent entries placed later
|
|
143
|
+
* were written concurrently and are not in its prompt.
|
|
144
|
+
*/
|
|
145
|
+
readonly seen: number;
|
|
146
|
+
/** Merged or closed while a child was still open; kept, frozen, so the child's prompt does not change under it. */
|
|
147
|
+
readonly closed?: boolean;
|
|
148
|
+
/** Title and owner a light thread's siblings see it by. */
|
|
149
|
+
readonly purpose?: string;
|
|
150
|
+
readonly owner?: string;
|
|
151
|
+
readonly entries: readonly PromptEntry[];
|
|
152
|
+
};
|
|
153
|
+
export type PromptState = {
|
|
154
|
+
/** The main thread's prompt; only appended to, except by `compact`. */
|
|
155
|
+
readonly entries: readonly PromptEntry[];
|
|
156
|
+
/** User messages waiting for a `promptConsume`. */
|
|
157
|
+
readonly held: Readonly<Record<Trajectory.EventId, PromptEntry>>;
|
|
158
|
+
readonly threads: Readonly<Record<Trajectory.ThreadId, ThreadBuffer>>;
|
|
159
|
+
/** Events folded so far, which is the feed position of the next one. */
|
|
160
|
+
readonly position: number;
|
|
161
|
+
/** Feed position of every folded event, to resolve a `from.event`; persistent, since a copy per event is quadratic. */
|
|
162
|
+
readonly positions: HashMap.HashMap<Trajectory.EventId, number>;
|
|
163
|
+
/**
|
|
164
|
+
* Threads and turns that merged into a parent holding entries they never saw, with those entries' source events.
|
|
165
|
+
* The merge still happens; whether to accept, re-run or correct is the harness's call.
|
|
166
|
+
*/
|
|
167
|
+
readonly stale: Readonly<Record<Trajectory.ThreadId, readonly Trajectory.EventId[]>>;
|
|
168
|
+
/** Conversation this feed continues (`fork`); its prompt up to `origin.event` precedes `entries`. */
|
|
169
|
+
readonly origin?: Trajectory.ThreadOrigin;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* The prompt a turn in `thread` sends: its own entries after its parents', back to main, unless a fresh thread
|
|
173
|
+
* cuts the chain.
|
|
174
|
+
*/
|
|
175
|
+
export declare const promptFor: (state: PromptState, thread?: Trajectory.ThreadId) => readonly PromptEntry[];
|
|
176
|
+
/**
|
|
177
|
+
* A reducer whose state can be stored, so a reader resumes from a saved checkpoint instead of refolding the feed.
|
|
178
|
+
*/
|
|
179
|
+
export interface Durable<S> extends Reducer<S> {
|
|
180
|
+
/** Names the reducer and its state shape; a stored checkpoint under a different id is never read back. */
|
|
181
|
+
readonly id: string;
|
|
182
|
+
readonly schema: Schema.Codec<S, unknown>;
|
|
183
|
+
/** Points decoded refs at a database, since a stored ref keeps its URI but not what resolves it. */
|
|
184
|
+
readonly rebind?: (state: S, makeRef: MakeRef) => S;
|
|
185
|
+
}
|
|
186
|
+
export type MakeRef = <T extends Obj.Unknown>(ref: Ref.Ref<T>) => Ref.Ref<T>;
|
|
187
|
+
export declare const session: Durable<SessionState>;
|
|
188
|
+
export declare const thread: Durable<ThreadView>;
|
|
189
|
+
export declare const prompt: Durable<PromptState>;
|
|
190
|
+
export {};
|
|
191
|
+
//# sourceMappingURL=Reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{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