Skip to content

Commit bcf6687

Browse files
V48 (impl-only): Green typecheck after drop
Map @bitcode/api/btd for tsc, type deposit filter callbacks, and cast the measure-agent Zod schema. Map execution-generics in api jest.
1 parent d7d2eae commit bcf6687

5 files changed

Lines changed: 11 additions & 3 deletions

File tree

apps/uapi/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,9 @@
449449
"@bitcode/api/responses": [
450450
"../../packages/api/src/responses/index.ts"
451451
],
452+
"@bitcode/api/btd": [
453+
"../../packages/api/src/routes/btd-crypto.ts"
454+
],
452455
"@bitcode/obfuscation": [
453456
"../../packages/obfuscation/src/index.ts"
454457
],

packages/api/jest.config.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ module.exports = {
1717
moduleNameMapper: {
1818
'^@bitcode/pipelines-generics$': '<rootDir>/../pipelines-generics/src/index.ts',
1919
'^@bitcode/pipelines-generics/(.*)$': '<rootDir>/../pipelines-generics/src/$1',
20+
'^@bitcode/execution-generics$': '<rootDir>/../execution-generics/src/index.ts',
21+
'^@bitcode/execution-generics/(.*)$': '<rootDir>/../execution-generics/src/$1',
2022
},
2123
};

packages/asset-packs-pipelines/domain/src/agents/implementation/deposit-asset-pack-synthesis-agent.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ export default async function runDepositAssetPackSynthesisAgent(input: any, exec
175175
].filter(Boolean),
176176
);
177177
const scopedBodies =
178-
pathScope.size > 0 ? bodies.filter((b) => pathScope.has(b.path)) : bodies;
178+
pathScope.size > 0
179+
? bodies.filter((b: { path: string; content: string }) => pathScope.has(b.path))
180+
: bodies;
179181

180182
const patchDescriptor = {
181183
title: String((option as any)?.title ?? ''),

packages/asset-packs-pipelines/domain/src/agents/validation/deposit-ready-to-finish-agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export default async function runDepositReadyToFinishAgent(input: any, execution
238238
);
239239
const scopedBodies =
240240
pathScope.size > 0
241-
? inventorySources.filter((s) => pathScope.has(s.path))
241+
? inventorySources.filter((s: { path: string; content: string }) => pathScope.has(s.path))
242242
: inventorySources;
243243
const report = analyzeStaticSource({
244244
files: scopedBodies,

packages/generic-measurements/measure-agent/src/measure-agent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ export function factoryMeasureAgent(config: MeasureAgentConfig): MeasureAgent {
138138
description:
139139
config.description ??
140140
`Measures the ${config.category} measurements of ${config.subject}.`,
141-
outputSchema: MeasurementOutputSchema,
141+
// Zod preprocess widens _input; factory expects output-shaped ZodType.
142+
outputSchema: MeasurementOutputSchema as z.ZodType<MeasurementOutput>,
142143
tools: [],
143144
prompt,
144145
stepPrompts: {

0 commit comments

Comments
 (0)