Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 496b6d7

Browse files
committed
chore: make default runner name 'default' (#1369)
1 parent a531feb commit 496b6d7

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

packages/cloudflare-workers/tests/driver-tests.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ runDriverTests({
9898
return {
9999
endpoint: `http://localhost:${port}/rivet`,
100100
namespace: "default",
101-
runnerName: "rivetkit",
101+
runnerName: "default",
102102
async cleanup() {
103103
// Shut down wrangler process
104104
wranglerProcess.kill();

packages/rivetkit/src/client/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const ClientConfigSchema = z.object({
2929
/** Name of the runner. This is used to group together runners in to different pools. */
3030
runnerName: z
3131
.string()
32-
.default(() => getEnvUniversal("RIVET_RUNNER") ?? "rivetkit"),
32+
.default(() => getEnvUniversal("RIVET_RUNNER") ?? "default"),
3333

3434
encoding: EncodingSchema.default("bare"),
3535

packages/rivetkit/src/driver-test-suite/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export async function createTestRuntime(
272272
return {
273273
endpoint: serverEndpoint,
274274
namespace: "default",
275-
runnerName: "rivetkit",
275+
runnerName: "default",
276276
cleanup,
277277
};
278278
}

packages/rivetkit/src/manager/router.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function addServerlessRoutes(
168168
if (!parseResult.success) {
169169
throw new InvalidRequest(
170170
parseResult.error.issues[0]?.message ??
171-
"invalid serverless start headers",
171+
"invalid serverless start headers",
172172
);
173173
}
174174
const { endpoint, token, totalSlots, runnerName, namespace } =
@@ -274,9 +274,9 @@ function addManagerRoutes(
274274

275275
const actorIdsParsed = actor_ids
276276
? actor_ids
277-
.split(",")
278-
.map((id) => id.trim())
279-
.filter((id) => id.length > 0)
277+
.split(",")
278+
.map((id) => id.trim())
279+
.filter((id) => id.length > 0)
280280
: undefined;
281281

282282
const actors: ActorOutput[] = [];
@@ -321,7 +321,7 @@ function addManagerRoutes(
321321
}
322322

323323
return c.json<ActorsListResponse>({
324-
actors: actors.map(createApiActor),
324+
actors: actors.map(actor => createApiActor(actor, runConfig.runnerName)),
325325
});
326326
});
327327
}
@@ -355,7 +355,7 @@ function addManagerRoutes(
355355

356356
if (existingActor) {
357357
return c.json<ActorsGetOrCreateResponse>({
358-
actor: createApiActor(existingActor),
358+
actor: createApiActor(existingActor, runConfig.runnerName),
359359
created: false,
360360
});
361361
}
@@ -372,7 +372,7 @@ function addManagerRoutes(
372372
});
373373

374374
return c.json<ActorsGetOrCreateResponse>({
375-
actor: createApiActor(newActor),
375+
actor: createApiActor(newActor, runConfig.runnerName),
376376
created: true,
377377
});
378378
});
@@ -410,7 +410,7 @@ function addManagerRoutes(
410410
});
411411

412412
// Transform ActorOutput to match ActorSchema
413-
const actor = createApiActor(actorOutput);
413+
const actor = createApiActor(actorOutput, runConfig.runnerName);
414414

415415
return c.json<ActorsCreateResponse>({ actor });
416416
});
@@ -655,13 +655,13 @@ function addManagerRoutes(
655655
);
656656
}
657657

658-
function createApiActor(actor: ActorOutput): ApiActor {
658+
function createApiActor(actor: ActorOutput, runnerName: string = "default"): ApiActor {
659659
return {
660660
actor_id: actor.actorId,
661661
name: actor.name,
662662
key: serializeActorKey(actor.key),
663663
namespace_id: "default", // Assert default namespace
664-
runner_name_selector: "rivetkit", // Assert rivetkit runner
664+
runner_name_selector: runnerName,
665665
create_ts: Date.now(),
666666
connectable_ts: null,
667667
destroy_ts: null,

0 commit comments

Comments
 (0)