Skip to content

Commit 0a16e1e

Browse files
committed
refactor(effect): scope contract keys under @rivetkit/effect
1 parent 0aa12f3 commit 0a16e1e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

rivetkit-typescript/packages/effect/src/Action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const makeProto = <
166166
function Action() {}
167167
Object.setPrototypeOf(Action, Proto);
168168
Object.assign(Action, options);
169-
Action.key = `rivetkit/effect/Action/${options._tag}`;
169+
Action.key = `@rivetkit/effect/Action/${options._tag}`;
170170
return Action as any;
171171
};
172172

rivetkit-typescript/packages/effect/src/Actor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ const makeProto = <
513513
readonly options: Options;
514514
readonly annotations: Context.Context<never>;
515515
}): Actor<Name, State, Actions, Messages, Events> => {
516-
const key = `rivetkit/effect/Actor/${options._tag}`;
516+
const key = `@rivetkit/effect/Actor/${options._tag}`;
517517
const StateTag = Context.Service<StateService<Name>, StateRef<State["Type"]>>(
518518
`${key}/State`,
519519
);

rivetkit-typescript/packages/effect/src/Message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ const makeProto = <
255255
}
256256
Object.setPrototypeOf(Message, Proto);
257257
Object.assign(Message, options);
258-
(Message as any).key = `rivetkit/effect/Message/${options._tag}`;
258+
(Message as any).key = `@rivetkit/effect/Message/${options._tag}`;
259259
return Message as any;
260260
};
261261

0 commit comments

Comments
 (0)