Skip to content

Commit 41ada54

Browse files
chore(lint): enforce preferTypedSchemaDecoder
1 parent c8c4a68 commit 41ada54

14 files changed

Lines changed: 16 additions & 17 deletions

File tree

‎apps/server/scripts/record-grok-acp-replay-fixture.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ function normalizeEntries(input: {
367367
});
368368
}
369369

370-
const DEFAULT_GROK_SETTINGS = Schema.decodeUnknownSync(GrokSettings)({});
370+
const DEFAULT_GROK_SETTINGS = Schema.decodeSync(GrokSettings)({});
371371

372372
const recordScenario = Effect.fn("recordGrokScenario")(function* (fixtureName: string) {
373373
const fixture = ORCHESTRATOR_REPLAY_FIXTURES.find((candidate) => candidate.name === fixtureName);

‎apps/server/src/assets/AssetAccess.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ describe("AssetAccess", () => {
12441244
]);
12451245
return Effect.gen(function* () {
12461246
// Every client and server release spells the resource this way on the wire.
1247-
const { resource } = yield* Schema.decodeUnknownEffect(AssetCreateUrlInput)({
1247+
const { resource } = yield* Schema.decodeEffect(AssetCreateUrlInput)({
12481248
resource: { _tag: "github-media", cwd: "/repo", url },
12491249
});
12501250
const issued = yield* issueAssetUrl({ resource });

‎apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.testkit.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
} from "@t3tools/provider-acp-registry/testing";
2828
import * as AcpRegistrySupport from "@t3tools/provider-acp-registry/server/AcpRegistrySupport";
2929

30-
const REPLAY_SETTINGS = Schema.decodeUnknownSync(AcpRegistrySettings)({
30+
const REPLAY_SETTINGS = Schema.decodeSync(AcpRegistrySettings)({
3131
agentId: "replay-agent",
3232
authMethodId: "replay",
3333
});

‎apps/server/src/orchestration-v2/Adapters/GrokAdapterV2.testkit.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
makeGrokAdapterV2,
3131
} from "@t3tools/provider-grok/testing";
3232

33-
const DEFAULT_GROK_SETTINGS = Schema.decodeUnknownSync(GrokSettings)({});
33+
const DEFAULT_GROK_SETTINGS = Schema.decodeSync(GrokSettings)({});
3434

3535
function layerGrokProviderAdapterRegistryReplay(
3636
transcript: AcpReplayTranscript,

‎apps/server/src/orchestration-v2/Adapters/MuseAdapterV2.testkit.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ function makeReplayCreateHost(controller: MuseReplayController) {
406406
};
407407
}
408408

409-
const DEFAULT_MUSE_SETTINGS = Schema.decodeUnknownSync(MuseSettings)({ enabled: true });
409+
const DEFAULT_MUSE_SETTINGS = Schema.decodeSync(MuseSettings)({ enabled: true });
410410

411411
export function layer(input: {
412412
readonly scenario: string;

‎apps/server/src/orchestration-v2/http.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const decodeTranscript = Schema.decodeUnknownEffect(
5151
const now = DateTime.makeUnsafe("2026-09-29T00:00:00.000Z");
5252
const environmentId = EnvironmentId.make("source-بيئة");
5353
const output = "Full tool output. ".repeat(4_000);
54-
const thread = Schema.decodeUnknownSync(OrchestrationV2AppThread)({
54+
const thread = Schema.decodeSync(OrchestrationV2AppThread)({
5555
id: "source-thread",
5656
projectId: "source-project",
5757
title: "Source 界\nconversation",

‎apps/server/src/provider/CodexInstallation.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export const makeCodexInstallation = Effect.fn("makeCodexInstallation")(function
202202
"resolve",
203203
"The managed Codex installation record is invalid. Reinstall Codex.",
204204
);
205-
return yield* Schema.decodeUnknownEffect(Schema.fromJsonString(schema))(
205+
return yield* Schema.decodeEffect(Schema.fromJsonString(schema))(
206206
yield* fs.readFileString(file),
207207
);
208208
});

‎packages/client-runtime/src/state/boundedThreadSnapshotHttp.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const boundedBody = (compact: boolean) => ({
120120
});
121121
const BoundedJson = Schema.toCodecJson(OrchestrationV2ThreadBoundedSnapshot);
122122
const idTableBody = () => {
123-
const snapshot = Schema.decodeUnknownSync(BoundedJson)(boundedBody(true));
123+
const snapshot = Schema.decodeSync(BoundedJson)(boundedBody(true));
124124
return Schema.encodeSync(BoundedJson)({ ...snapshot, idTable: true });
125125
};
126126

‎packages/client-runtime/src/state/queryPersistence.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function persistQuery<A, I>(schema: Schema.Codec<A, I>): QueryPersistence
3131
if (store === null) return Option.none<A>();
3232
const stored = yield* store.load(environmentId, key);
3333
if (Option.isNone(stored)) return Option.none<A>();
34-
return yield* Schema.decodeUnknownEffect(codec)(stored.value).pipe(
34+
return yield* Schema.decodeEffect(codec)(stored.value).pipe(
3535
Effect.asSome,
3636
Effect.catch(() => Effect.succeedNone),
3737
);

‎packages/client-runtime/src/state/threads-sync.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ describe("EnvironmentThreads", () => {
371371
let discarded = false;
372372
const h = yield* makeHarness({
373373
loadCached: decodeOrDiscardOrchestrationCache(
374-
Schema.decodeUnknownEffect(schema)(stale).pipe(
374+
Schema.decodeEffect(schema)(stale).pipe(
375375
Effect.map((stored) => Option.some(stored.snapshot)),
376376
),
377377
Effect.sync(() => {

0 commit comments

Comments
 (0)