Skip to content

Commit fd47b77

Browse files
committed
Tighten review follow-ups
Fix the inbox help text typo so the extracted command definition keeps its user-facing wording clean. This also replaces the configs test's double-cast fixture with a real InitCommandData object, so changes to that type keep surfacing as compile-time failures. Assisted-by: Codex:gpt-5.4
1 parent 6b2689e commit fd47b77

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

packages/cli/src/inbox/command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ export const inboxCommand = command(
8787
{
8888
brief: message`Run an ephemeral ActivityPub inbox server.`,
8989
description:
90-
message`Spins up an ephemeral server that serves the ActivityPub inbox with an one-time actor, through a short-lived public DNS with HTTPS. You can monitor the incoming activities in real-time.`,
90+
message`Spins up an ephemeral server that serves the ActivityPub inbox with a one-time actor, through a short-lived public DNS with HTTPS. You can monitor the incoming activities in real-time.`,
9191
},
9292
);

packages/init/src/action/configs.test.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
import assert from "node:assert/strict";
22
import test from "node:test";
3+
import { message } from "@optique/core";
34
import type { InitCommandData } from "../types.ts";
45
import { loadDenoConfig } from "./configs.ts";
56

67
function createInitData(): InitCommandData {
7-
return {
8+
const data = {
9+
command: "init",
810
projectName: "example",
911
packageManager: "deno",
1012
webFramework: "hono",
1113
kvStore: "denokv",
1214
messageQueue: "denokv",
13-
skipInstall: false,
14-
devcontainer: false,
1515
dryRun: false,
1616
testMode: false,
1717
dir: "/tmp/example",
18-
projectDir: "/tmp/example",
19-
projectNameOption: undefined,
2018
initializer: {
2119
federationFile: "federation.ts",
2220
loggingFile: "logging.ts",
23-
instruction: "done" as never,
21+
instruction: message`done`,
2422
tasks: {},
2523
compilerOptions: {},
2624
},
@@ -39,7 +37,8 @@ function createInitData(): InitCommandData {
3937
denoUnstable: [],
4038
},
4139
env: {},
42-
} as unknown as InitCommandData;
40+
} satisfies InitCommandData;
41+
return data;
4342
}
4443

4544
function restoreDeno(

0 commit comments

Comments
 (0)