@overdeck/contracts 0.44.0 → 0.45.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/index.cjs +25 -3
- package/dist/index.d.ts +189 -104
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +25 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -45,7 +45,8 @@ const Role = effect.Schema.Literals([
|
|
|
45
45
|
"ship",
|
|
46
46
|
"flywheel",
|
|
47
47
|
"strike",
|
|
48
|
-
"sequencer"
|
|
48
|
+
"sequencer",
|
|
49
|
+
"knowledge"
|
|
49
50
|
]);
|
|
50
51
|
const AgentResolution = effect.Schema.Literals([
|
|
51
52
|
"working",
|
|
@@ -434,6 +435,7 @@ const SessionNodePresence = effect.Schema.Literals([
|
|
|
434
435
|
const SessionNodeType = effect.Schema.Literals([
|
|
435
436
|
"planning",
|
|
436
437
|
"work",
|
|
438
|
+
"knowledge",
|
|
437
439
|
"strike",
|
|
438
440
|
"review",
|
|
439
441
|
"reviewer",
|
|
@@ -767,7 +769,8 @@ const RagDecisionSource = effect.Schema.Struct({
|
|
|
767
769
|
"observation",
|
|
768
770
|
"summary",
|
|
769
771
|
"status",
|
|
770
|
-
"sibling"
|
|
772
|
+
"sibling",
|
|
773
|
+
"knowledge"
|
|
771
774
|
]),
|
|
772
775
|
scope: effect.Schema.String,
|
|
773
776
|
score: effect.Schema.Number,
|
|
@@ -792,7 +795,8 @@ const RagDecision = effect.Schema.Struct({
|
|
|
792
795
|
status: effect.Schema.Number,
|
|
793
796
|
observations: effect.Schema.Number,
|
|
794
797
|
summaries: effect.Schema.Number,
|
|
795
|
-
sibling: effect.Schema.Number
|
|
798
|
+
sibling: effect.Schema.Number,
|
|
799
|
+
knowledgeIndex: effect.Schema.Number
|
|
796
800
|
}),
|
|
797
801
|
sources: effect.Schema.Array(RagDecisionSource),
|
|
798
802
|
reason: effect.Schema.NullOr(effect.Schema.String)
|
|
@@ -1727,6 +1731,18 @@ const ConversationCreatedEvent = effect.Schema.Struct({
|
|
|
1727
1731
|
timestamp: effect.Schema.String,
|
|
1728
1732
|
payload: effect.Schema.Struct({ conversationName: effect.Schema.String })
|
|
1729
1733
|
});
|
|
1734
|
+
/** Emitted (in-memory only) when a conversation title changes, so the sidebar
|
|
1735
|
+
* list can refresh immediately instead of waiting for its poll tick. */
|
|
1736
|
+
const ConversationTitleChangedEvent = effect.Schema.Struct({
|
|
1737
|
+
type: effect.Schema.Literal("conversation.title_changed"),
|
|
1738
|
+
sequence: SequenceNumber,
|
|
1739
|
+
timestamp: effect.Schema.String,
|
|
1740
|
+
payload: effect.Schema.Struct({
|
|
1741
|
+
conversationName: effect.Schema.String,
|
|
1742
|
+
title: effect.Schema.String,
|
|
1743
|
+
titleSource: effect.Schema.String
|
|
1744
|
+
})
|
|
1745
|
+
});
|
|
1730
1746
|
/** Emitted (in-memory only) when a PermissionRequest hook fires or resolves for a conversation. */
|
|
1731
1747
|
const ConversationPermissionChangedEvent = effect.Schema.Struct({
|
|
1732
1748
|
type: effect.Schema.Literal("conversation.permission_changed"),
|
|
@@ -1896,6 +1912,7 @@ const DomainEvent = effect.Schema.Union([
|
|
|
1896
1912
|
DashboardLifecycleFailedEvent,
|
|
1897
1913
|
ConversationCompactingChangedEvent,
|
|
1898
1914
|
ConversationCreatedEvent,
|
|
1915
|
+
ConversationTitleChangedEvent,
|
|
1899
1916
|
ConversationPermissionChangedEvent,
|
|
1900
1917
|
ScanStartedEvent,
|
|
1901
1918
|
ScanProgressEvent,
|
|
@@ -3928,6 +3945,10 @@ function applyEvent(state, event) {
|
|
|
3928
3945
|
...state,
|
|
3929
3946
|
conversationsListRevision: state.conversationsListRevision + 1
|
|
3930
3947
|
};
|
|
3948
|
+
case "conversation.title_changed": return {
|
|
3949
|
+
...state,
|
|
3950
|
+
conversationsListRevision: state.conversationsListRevision + 1
|
|
3951
|
+
};
|
|
3931
3952
|
case "conversation.permission_changed": {
|
|
3932
3953
|
const { conversationName, waiting } = event.payload;
|
|
3933
3954
|
if (!waiting) {
|
|
@@ -4568,6 +4589,7 @@ exports.ConversationCreatedEvent = ConversationCreatedEvent;
|
|
|
4568
4589
|
exports.ConversationEvent = ConversationEvent;
|
|
4569
4590
|
exports.ConversationFilter = ConversationFilter;
|
|
4570
4591
|
exports.ConversationPermissionChangedEvent = ConversationPermissionChangedEvent;
|
|
4592
|
+
exports.ConversationTitleChangedEvent = ConversationTitleChangedEvent;
|
|
4571
4593
|
exports.CostEventRecordedEvent = CostEventRecordedEvent;
|
|
4572
4594
|
exports.DEFAULT_MAX_MEMORY_OBSERVATIONS_PER_ISSUE = DEFAULT_MAX_MEMORY_OBSERVATIONS_PER_ISSUE;
|
|
4573
4595
|
exports.DEFAULT_MAX_TURN_DIFF_SUMMARIES_PER_AGENT = DEFAULT_MAX_TURN_DIFF_SUMMARIES_PER_AGENT;
|