Skip to content

Commit 2e14d9b

Browse files
V48: Fix co-located package resolution for uapi
Relink deposit/read/settle paths, correct next and tsconfig aliases, and repair cross-package agent imports so the app build is green.
1 parent eb5f9dd commit 2e14d9b

15 files changed

Lines changed: 326 additions & 42 deletions

File tree

apps/uapi/next.config.mjs

Lines changed: 259 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -397,74 +397,315 @@ let nextConfig = {
397397
'@bitcode/execution-generics': path.resolve(
398398
__dirname,
399399
'..',
400+
'..',
400401
'packages',
401402
'execution-generics',
402403
'src',
403404
'index.ts'
404405
),
406+
// Co-located layout: packages/asset-packs-pipelines/{domain,syntheses/{deposit,read,domain},settle}
405407
'@bitcode/asset-packs-pipelines-domain$': path.resolve(
406408
__dirname,
407409
'..',
410+
'..',
408411
'packages',
409-
'pipelines',
410-
'asset-pack',
412+
'asset-packs-pipelines',
413+
'domain',
411414
'src',
412415
'index.ts'
413416
),
414-
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-reads-asset-packs/read-need': path.resolve(
417+
'@bitcode/asset-packs-pipelines-syntheses-domain$': path.resolve(
415418
__dirname,
416419
'..',
420+
'..',
417421
'packages',
418-
'pipelines',
419-
'asset-pack',
422+
'asset-packs-pipelines',
423+
'syntheses',
424+
'domain',
420425
'src',
421-
'read-need.ts'
426+
'index.ts'
422427
),
423428
'@bitcode/asset-packs-pipelines-syntheses-domain/asset-packs-synthesis': path.resolve(
424429
__dirname,
425430
'..',
431+
'..',
426432
'packages',
427-
'pipelines',
428-
'asset-pack',
433+
'asset-packs-pipelines',
434+
'syntheses',
435+
'domain',
429436
'src',
430437
'asset-packs-synthesis.ts'
431438
),
439+
'@bitcode/asset-packs-pipelines-syntheses-domain/runtime-inference-policy': path.resolve(
440+
__dirname,
441+
'..',
442+
'..',
443+
'packages',
444+
'asset-packs-pipelines',
445+
'syntheses',
446+
'domain',
447+
'src',
448+
'runtime-inference-policy.ts'
449+
),
450+
'@bitcode/asset-packs-pipelines-syntheses-domain/depository-settled-demand-estimate': path.resolve(
451+
__dirname,
452+
'..',
453+
'..',
454+
'packages',
455+
'asset-packs-pipelines',
456+
'syntheses',
457+
'domain',
458+
'src',
459+
'depository-settled-demand-estimate.ts'
460+
),
461+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs': path.resolve(
462+
__dirname,
463+
'..',
464+
'..',
465+
'packages',
466+
'asset-packs-pipelines',
467+
'syntheses',
468+
'deposit',
469+
'src',
470+
'index.ts'
471+
),
472+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/deposit-asset-pack-options': path.resolve(
473+
__dirname,
474+
'..',
475+
'..',
476+
'packages',
477+
'asset-packs-pipelines',
478+
'syntheses',
479+
'deposit',
480+
'src',
481+
'deposit-asset-pack-options.ts'
482+
),
483+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/deposit-asset-pack-option-policy': path.resolve(
484+
__dirname,
485+
'..',
486+
'..',
487+
'packages',
488+
'asset-packs-pipelines',
489+
'syntheses',
490+
'deposit',
491+
'src',
492+
'deposit-asset-pack-option-policy.ts'
493+
),
494+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/deposit-asset-pack-option-admission': path.resolve(
495+
__dirname,
496+
'..',
497+
'..',
498+
'packages',
499+
'asset-packs-pipelines',
500+
'syntheses',
501+
'deposit',
502+
'src',
503+
'deposit-asset-pack-option-admission.ts'
504+
),
505+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/depositor-earning-supply-intelligence': path.resolve(
506+
__dirname,
507+
'..',
508+
'..',
509+
'packages',
510+
'asset-packs-pipelines',
511+
'syntheses',
512+
'deposit',
513+
'src',
514+
'depositor-earning-supply-intelligence.ts'
515+
),
432516
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/deposit-option-real-synthesis': path.resolve(
433517
__dirname,
434518
'..',
519+
'..',
435520
'packages',
436-
'pipelines',
437-
'asset-pack',
521+
'asset-packs-pipelines',
522+
'syntheses',
523+
'deposit',
438524
'src',
439525
'deposit-option-real-synthesis.ts'
440526
),
441-
'@bitcode/asset-packs-pipelines-syntheses-domain/runtime-inference-policy': path.resolve(
527+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/agents/finish/deposit-store-artifacts-agent': path.resolve(
442528
__dirname,
443529
'..',
530+
'..',
444531
'packages',
445-
'pipelines',
446-
'asset-pack',
532+
'asset-packs-pipelines',
533+
'syntheses',
534+
'deposit',
447535
'src',
448-
'runtime-inference-policy.ts'
536+
'agents',
537+
'finish',
538+
'deposit-store-artifacts-agent.ts'
539+
),
540+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/agents/implementation/deposit-asset-pack-synthesis-schema': path.resolve(
541+
__dirname,
542+
'..',
543+
'..',
544+
'packages',
545+
'asset-packs-pipelines',
546+
'syntheses',
547+
'deposit',
548+
'src',
549+
'agents',
550+
'implementation',
551+
'deposit-asset-pack-synthesis-schema.ts'
552+
),
553+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/agents/implementation/deposit-asset-pack-synthesis-prompts': path.resolve(
554+
__dirname,
555+
'..',
556+
'..',
557+
'packages',
558+
'asset-packs-pipelines',
559+
'syntheses',
560+
'deposit',
561+
'src',
562+
'agents',
563+
'implementation',
564+
'deposit-asset-pack-synthesis-prompts.ts'
565+
),
566+
'@bitcode/asset-packs-pipelines-syntheses-domain/agents/validation/agent-measure-absolutes': path.resolve(
567+
__dirname,
568+
'..',
569+
'..',
570+
'packages',
571+
'asset-packs-pipelines',
572+
'syntheses',
573+
'domain',
574+
'src',
575+
'agents',
576+
'validation',
577+
'agent-measure-absolutes.ts'
578+
),
579+
'@bitcode/asset-packs-pipelines-syntheses-domain/agents/implementation/asset-pack-patch-write-tool': path.resolve(
580+
__dirname,
581+
'..',
582+
'..',
583+
'packages',
584+
'asset-packs-pipelines',
585+
'syntheses',
586+
'domain',
587+
'src',
588+
'agents',
589+
'implementation',
590+
'asset-pack-patch-write-tool.ts'
591+
),
592+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/agents/validation/deposit-validation-schema': path.resolve(
593+
__dirname,
594+
'..',
595+
'..',
596+
'packages',
597+
'asset-packs-pipelines',
598+
'syntheses',
599+
'deposit',
600+
'src',
601+
'agents',
602+
'validation',
603+
'deposit-validation-schema.ts'
604+
),
605+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/agents/validation/deposit-validation-prompts': path.resolve(
606+
__dirname,
607+
'..',
608+
'..',
609+
'packages',
610+
'asset-packs-pipelines',
611+
'syntheses',
612+
'deposit',
613+
'src',
614+
'agents',
615+
'validation',
616+
'deposit-validation-prompts.ts'
617+
),
618+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/agents/validation/deposit-validation-checks': path.resolve(
619+
__dirname,
620+
'..',
621+
'..',
622+
'packages',
623+
'asset-packs-pipelines',
624+
'syntheses',
625+
'deposit',
626+
'src',
627+
'agents',
628+
'validation',
629+
'deposit-validation-checks.ts'
630+
),
631+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/ensure-deposit-checkout-source-files': path.resolve(
632+
__dirname,
633+
'..',
634+
'..',
635+
'packages',
636+
'asset-packs-pipelines',
637+
'syntheses',
638+
'deposit',
639+
'src',
640+
'ensure-deposit-checkout-source-files.ts'
641+
),
642+
'@bitcode/asset-packs-pipelines-syntheses-domain/agents/finish/deposit-ledgerize-agent': path.resolve(
643+
__dirname,
644+
'..',
645+
'..',
646+
'packages',
647+
'asset-packs-pipelines',
648+
'syntheses',
649+
'domain',
650+
'src',
651+
'agents',
652+
'finish',
653+
'deposit-ledgerize-agent.ts'
654+
),
655+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-reads-asset-packs': path.resolve(
656+
__dirname,
657+
'..',
658+
'..',
659+
'packages',
660+
'asset-packs-pipelines',
661+
'syntheses',
662+
'read',
663+
'src',
664+
'index.ts'
665+
),
666+
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-reads-asset-packs/read-need': path.resolve(
667+
__dirname,
668+
'..',
669+
'..',
670+
'packages',
671+
'asset-packs-pipelines',
672+
'syntheses',
673+
'read',
674+
'src',
675+
'read-need.ts'
449676
),
450677
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-reads-asset-packs/read-need-review-resynthesis': path.resolve(
451678
__dirname,
452679
'..',
680+
'..',
453681
'packages',
454-
'pipelines',
455-
'asset-pack',
682+
'asset-packs-pipelines',
683+
'syntheses',
684+
'read',
456685
'src',
457686
'read-need-review-resynthesis.ts'
458687
),
459688
'@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-reads-asset-packs/reading-pipeline-contract': path.resolve(
460689
__dirname,
461690
'..',
691+
'..',
462692
'packages',
463-
'pipelines',
464-
'asset-pack',
693+
'asset-packs-pipelines',
694+
'syntheses',
695+
'read',
465696
'src',
466697
'reading-pipeline-contract.ts'
467698
),
699+
'@bitcode/asset-packs-pipelines-execution-pipeline-simple-settle-asset-pack': path.resolve(
700+
__dirname,
701+
'..',
702+
'..',
703+
'packages',
704+
'asset-packs-pipelines',
705+
'settle',
706+
'src',
707+
'index.ts'
708+
),
468709
// Security package: server-safe root and explicit client entry
469710
'@bitcode/security': path.resolve(__dirname, '..', '..', 'packages', 'security', 'src', 'index.ts'),
470711
'@bitcode/security/client': path.resolve(__dirname, '..', '..', 'packages', 'security', 'client', 'src', 'index.ts'),

apps/uapi/tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@
154154
"@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/deposit-asset-pack-option-policy": [
155155
"../../packages/asset-packs-pipelines/syntheses/deposit/src/deposit-asset-pack-option-policy.ts"
156156
],
157+
"@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/deposit-asset-pack-option-admission": [
158+
"../../packages/asset-packs-pipelines/syntheses/deposit/src/deposit-asset-pack-option-admission.ts"
159+
],
160+
"@bitcode/asset-packs-pipelines-execution-pipeline-sdivf-synthesize-deposits-asset-packs/depositor-earning-supply-intelligence": [
161+
"../../packages/asset-packs-pipelines/syntheses/deposit/src/depositor-earning-supply-intelligence.ts"
162+
],
157163
"@bitcode/asset-packs-pipelines-syntheses-domain/asset-packs-synthesis": [
158164
"../../packages/asset-packs-pipelines/syntheses/domain/src/asset-packs-synthesis.ts"
159165
],

packages/asset-packs-pipelines/syntheses/deposit/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
"./depositor-earning-supply-intelligence-types": "./src/depositor-earning-supply-intelligence-types.ts",
2323
"./depositor-earning-supply-intelligence": "./src/depositor-earning-supply-intelligence.ts",
2424
"./ensure-deposit-checkout-source-files": "./src/ensure-deposit-checkout-source-files.ts",
25-
"./phases/deposit-phases": "./src/phases/deposit-phases.ts"
25+
"./phases/deposit-phases": "./src/phases/deposit-phases.ts",
26+
"./agents/finish/deposit-store-artifacts-agent": "./src/agents/finish/deposit-store-artifacts-agent.ts",
27+
"./agents/implementation/deposit-asset-pack-synthesis-schema": "./src/agents/implementation/deposit-asset-pack-synthesis-schema.ts",
28+
"./agents/implementation/deposit-asset-pack-synthesis-prompts": "./src/agents/implementation/deposit-asset-pack-synthesis-prompts.ts",
29+
"./agents/validation/deposit-validation-schema": "./src/agents/validation/deposit-validation-schema.ts",
30+
"./agents/validation/deposit-validation-prompts": "./src/agents/validation/deposit-validation-prompts.ts",
31+
"./agents/validation/deposit-validation-checks": "./src/agents/validation/deposit-validation-checks.ts"
2632
},
2733
"scripts": {
2834
"test": "pnpm exec jest --config jest.config.cjs --passWithNoTests",

packages/asset-packs-pipelines/syntheses/deposit/src/__tests__/deposit-ready-to-finish-agent.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
* Lightweight unit tests for the single deposit Validation ready-to-finish gate.
55
* Heavy PTRR / measure / catalog graph is mocked so A/B/C merge logic is isolated.
66
*/
7-
jest.mock('../agents/validation/agent-measure-absolutes', () => ({
7+
jest.mock(
8+
'../../../../domain/src/agents/validation/agent-measure-absolutes',
9+
() => ({
810
analyzeStaticSource: jest.fn(() => ({
911
measuredFromSamples: true,
1012
estimatedFunctionCount: 4,

packages/asset-packs-pipelines/syntheses/deposit/src/agents/discovery/deposit-codebase-comprehension-agent.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ export default async function runDepositCodebaseComprehensionAgent(input: any, e
241241
analyzeStaticSource,
242242
computeAbsolutesFromReport,
243243
computeDeterministicAbsolutes,
244-
} = await import('../validation/agent-measure-absolutes');
244+
} = await import(
245+
'../../../../domain/src/agents/validation/agent-measure-absolutes'
246+
);
245247
const measurePaths =
246248
bodies.length > 0
247249
? bodies.slice(0, 40).map((f) => f.path)

0 commit comments

Comments
 (0)