refactor: firstCommand

This commit is contained in:
d-kimsuon
2025-10-18 03:39:12 +09:00
parent e45a841656
commit 45ebfad36a
20 changed files with 190 additions and 187 deletions

View File

@@ -38,7 +38,7 @@ describe("InitializeService", () => {
lastModifiedAt: Date;
meta: {
messageCount: number;
firstCommand: {
firstUserMessage: {
kind: "command";
commandName: string;
commandArgs?: string;
@@ -72,7 +72,7 @@ describe("InitializeService", () => {
getSessionMeta: () =>
Effect.succeed({
messageCount: 0,
firstCommand: null,
firstUserMessage: null,
}),
invalidateSession: () => Effect.void,
});
@@ -134,7 +134,7 @@ describe("InitializeService", () => {
lastModifiedAt: new Date(),
meta: {
messageCount: 5,
firstCommand: {
firstUserMessage: {
kind: "command",
commandName: "test",
},
@@ -146,7 +146,7 @@ describe("InitializeService", () => {
lastModifiedAt: new Date(),
meta: {
messageCount: 3,
firstCommand: null,
firstUserMessage: null,
},
},
]);
@@ -318,7 +318,7 @@ describe("InitializeService", () => {
lastModifiedAt: new Date(),
meta: {
messageCount: 5,
firstCommand: {
firstUserMessage: {
kind: "command",
commandName: "test",
},