tryassay 0.20.3 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/server.d.ts +4 -0
- package/dist/api/server.js +247 -5
- package/dist/api/server.js.map +1 -1
- package/dist/cli.js +3 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/create.d.ts +2 -0
- package/dist/commands/create.js +74 -0
- package/dist/commands/create.js.map +1 -1
- package/dist/runtime/__tests__/check-loop.test.js +2 -2
- package/dist/runtime/__tests__/cross-verification-checks.test.d.ts +8 -0
- package/dist/runtime/__tests__/cross-verification-checks.test.js +365 -0
- package/dist/runtime/__tests__/cross-verification-checks.test.js.map +1 -0
- package/dist/runtime/agents/planner-agent.d.ts +18 -1
- package/dist/runtime/agents/planner-agent.js +162 -0
- package/dist/runtime/agents/planner-agent.js.map +1 -1
- package/dist/runtime/app-create-orchestrator.d.ts +46 -1
- package/dist/runtime/app-create-orchestrator.js +691 -7
- package/dist/runtime/app-create-orchestrator.js.map +1 -1
- package/dist/runtime/check-catalog.js +53 -0
- package/dist/runtime/check-catalog.js.map +1 -1
- package/dist/runtime/fs-helpers.d.ts +2 -0
- package/dist/runtime/fs-helpers.js +14 -0
- package/dist/runtime/fs-helpers.js.map +1 -1
- package/dist/runtime/functional-tester.d.ts +47 -0
- package/dist/runtime/functional-tester.js +775 -0
- package/dist/runtime/functional-tester.js.map +1 -0
- package/dist/runtime/plan-refiner.d.ts +14 -0
- package/dist/runtime/plan-refiner.js +160 -0
- package/dist/runtime/plan-refiner.js.map +1 -0
- package/dist/runtime/types.d.ts +126 -1
- package/package.json +1 -1
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { EventEmitter } from 'node:events';
|
|
2
|
-
import type { AppDescription, AppCreateOptions, AppCreateResult } from './types.js';
|
|
2
|
+
import type { AppDescription, AppCreateOptions, AppCreateResult, PlanSummary, PlanApprovalResult, PlanAnswer } from './types.js';
|
|
3
3
|
export declare class AppCreateOrchestrator extends EventEmitter {
|
|
4
4
|
private description;
|
|
5
5
|
private options;
|
|
6
6
|
private auditTrail;
|
|
7
7
|
private startTime;
|
|
8
|
+
private planSummaryCache;
|
|
9
|
+
private approvalResolve;
|
|
10
|
+
private answersResolve;
|
|
8
11
|
constructor(description: AppDescription, options: AppCreateOptions);
|
|
12
|
+
/** Get the current plan summary (available after planning phase). */
|
|
13
|
+
getPlanSummary(): PlanSummary | null;
|
|
14
|
+
/** Approve or reject the plan. Resolves the blocked pipeline. */
|
|
15
|
+
approvePlan(result: PlanApprovalResult): void;
|
|
16
|
+
/** Submit answers to plan questions. Resolves the waiting questioning loop. */
|
|
17
|
+
submitAnswers(answers: PlanAnswer[]): void;
|
|
9
18
|
/** Run the full app creation pipeline. */
|
|
10
19
|
run(): Promise<AppCreateResult>;
|
|
11
20
|
private runPlanningPhase;
|
|
@@ -52,6 +61,7 @@ export declare class AppCreateOrchestrator extends EventEmitter {
|
|
|
52
61
|
private emitPhase;
|
|
53
62
|
private makeResult;
|
|
54
63
|
private audit;
|
|
64
|
+
private inferLanguage;
|
|
55
65
|
private slugify;
|
|
56
66
|
/** Get framework-specific directory convention instruction for agent prompts. */
|
|
57
67
|
private getDirectoryConvention;
|
|
@@ -61,4 +71,39 @@ export declare class AppCreateOrchestrator extends EventEmitter {
|
|
|
61
71
|
private pageToFilePath;
|
|
62
72
|
private fileExists;
|
|
63
73
|
private searchForSchemaEntity;
|
|
74
|
+
/**
|
|
75
|
+
* Scan generated page files for href/Link targets and verify
|
|
76
|
+
* each internal route has a corresponding page file.
|
|
77
|
+
* Catches hallucinated links like href="/categories" when
|
|
78
|
+
* no /categories/page.tsx exists.
|
|
79
|
+
*/
|
|
80
|
+
private checkLinkIntegrity;
|
|
81
|
+
/**
|
|
82
|
+
* Check A1: Verify all import paths resolve to actual files.
|
|
83
|
+
* Catches: broken relative imports, unresolvable @/ aliases.
|
|
84
|
+
*/
|
|
85
|
+
private checkImportResolution;
|
|
86
|
+
/**
|
|
87
|
+
* Check A2: Verify all imported packages exist in package.json.
|
|
88
|
+
* Also detects invalid alias entries (e.g. "@/lib": "latest").
|
|
89
|
+
*/
|
|
90
|
+
private checkPackageDepsComplete;
|
|
91
|
+
/**
|
|
92
|
+
* Check A3: Detect server components that fetch their own API routes (deadlock risk).
|
|
93
|
+
* Only applies to Next.js apps.
|
|
94
|
+
*/
|
|
95
|
+
private checkNoSelfFetch;
|
|
96
|
+
/**
|
|
97
|
+
* Check A4: Verify TypeScript compiles without errors.
|
|
98
|
+
* Uses `npx tsc --noEmit` with 60s timeout.
|
|
99
|
+
*/
|
|
100
|
+
private checkTypescriptCompiles;
|
|
101
|
+
/**
|
|
102
|
+
* Check A5: Verify all referenced environment variables are defined in .env files.
|
|
103
|
+
*/
|
|
104
|
+
private checkEnvVarsComplete;
|
|
105
|
+
/**
|
|
106
|
+
* Check A6: Verify asset references (images, CSS, icons) point to existing files.
|
|
107
|
+
*/
|
|
108
|
+
private checkAssetRefsValid;
|
|
64
109
|
}
|