tryassay 0.13.0 → 0.15.0
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 +145 -1
- package/dist/api/server.js.map +1 -1
- package/dist/cli.js +21 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/create.d.ts +18 -0
- package/dist/commands/create.js +135 -0
- package/dist/commands/create.js.map +1 -0
- package/dist/runtime/agents/code-agent.d.ts +1 -1
- package/dist/runtime/agents/code-agent.js +17 -7
- package/dist/runtime/agents/code-agent.js.map +1 -1
- package/dist/runtime/agents/coordinator-agent.js +2 -1
- package/dist/runtime/agents/coordinator-agent.js.map +1 -1
- package/dist/runtime/agents/planner-agent.d.ts +18 -0
- package/dist/runtime/agents/planner-agent.js +201 -0
- package/dist/runtime/agents/planner-agent.js.map +1 -0
- package/dist/runtime/app-create-orchestrator.d.ts +62 -0
- package/dist/runtime/app-create-orchestrator.js +923 -0
- package/dist/runtime/app-create-orchestrator.js.map +1 -0
- package/dist/runtime/build-verifier.d.ts +32 -0
- package/dist/runtime/build-verifier.js +508 -0
- package/dist/runtime/build-verifier.js.map +1 -0
- package/dist/runtime/composition-verifier.d.ts +46 -0
- package/dist/runtime/composition-verifier.js +278 -1
- package/dist/runtime/composition-verifier.js.map +1 -1
- package/dist/runtime/multi-agent-loop.d.ts +2 -0
- package/dist/runtime/multi-agent-loop.js +65 -1
- package/dist/runtime/multi-agent-loop.js.map +1 -1
- package/dist/runtime/specialized-agent.js +1 -1
- package/dist/runtime/specialized-agent.js.map +1 -1
- package/dist/runtime/types.d.ts +212 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specialized-agent.js","sourceRoot":"","sources":["../../src/runtime/specialized-agent.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,mDAAmD;AACnD,4DAA4D;AAC5D,8CAA8C;AAC9C,+DAA+D;AAE/D,OAAO,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ClC,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC;QAAE,OAAO,WAAW,CAAC;IAClF,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,QAAQ,CAAC;IACzE,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,QAAQ,CAAC;IAC5E,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,MAAM,CAAC;IACvE,IAAI,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC;QAAE,OAAO,SAAS,CAAC;IAClD,IAAI,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC;QAAE,OAAO,UAAU,CAAC;IACpD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -431,7 +431,7 @@ export interface AuditEntry {
|
|
|
431
431
|
};
|
|
432
432
|
prevHash?: string;
|
|
433
433
|
}
|
|
434
|
-
export type AgentSpecialization = 'coordinator' | 'code' | 'review' | 'test' | 'ops' | 'research';
|
|
434
|
+
export type AgentSpecialization = 'coordinator' | 'code' | 'review' | 'test' | 'ops' | 'research' | 'planner';
|
|
435
435
|
export type TrustLevel = 'untrusted' | 'provisional' | 'trusted' | 'formal';
|
|
436
436
|
export interface AgentCapability {
|
|
437
437
|
readonly name: string;
|
|
@@ -491,7 +491,7 @@ export interface CompositionBoundary {
|
|
|
491
491
|
readonly timestamp: string;
|
|
492
492
|
}
|
|
493
493
|
export interface BoundaryArtifact {
|
|
494
|
-
readonly type: 'code_patch' | 'test_file' | 'review_report' | 'deploy_result' | 'research_finding' | 'coverage_report' | 'health_check';
|
|
494
|
+
readonly type: 'code_patch' | 'test_file' | 'review_report' | 'deploy_result' | 'research_finding' | 'coverage_report' | 'health_check' | 'architecture_plan';
|
|
495
495
|
readonly path?: string;
|
|
496
496
|
readonly content: string;
|
|
497
497
|
readonly language?: string;
|
|
@@ -687,6 +687,8 @@ export interface TeamConfig {
|
|
|
687
687
|
readonly stallTimeoutMs: number;
|
|
688
688
|
readonly maxTotalAttempts: number;
|
|
689
689
|
readonly models?: Partial<Record<AgentSpecialization, string>>;
|
|
690
|
+
readonly verificationTier?: VerificationTier;
|
|
691
|
+
readonly useFastVerification?: boolean;
|
|
690
692
|
}
|
|
691
693
|
export interface TeamResult {
|
|
692
694
|
readonly goalId: string;
|
|
@@ -1257,3 +1259,211 @@ export interface RollbackEvent {
|
|
|
1257
1259
|
readonly reason: string;
|
|
1258
1260
|
}
|
|
1259
1261
|
export type Phase4M4AuditEventType = Phase4M3AuditEventType | 'integrity_check_passed' | 'integrity_violation' | 'kill_switch_activated' | 'kill_switch_released' | 'rollback_triggered' | 'rollback_completed' | 'layer2_startup_verified' | 'layer2_deployment' | 'modification_proposal_blocked';
|
|
1262
|
+
export type VerificationTier = 'full' | 'lightweight' | 'skip';
|
|
1263
|
+
export interface AppDescription {
|
|
1264
|
+
readonly name: string;
|
|
1265
|
+
readonly description: string;
|
|
1266
|
+
readonly techStack: TechStackConfig;
|
|
1267
|
+
readonly features: readonly string[];
|
|
1268
|
+
readonly constraints?: readonly string[];
|
|
1269
|
+
readonly authModel?: AuthModelConfig;
|
|
1270
|
+
}
|
|
1271
|
+
export interface TechStackConfig {
|
|
1272
|
+
readonly language: 'typescript' | 'python';
|
|
1273
|
+
readonly framework: 'next.js' | 'express' | 'sveltekit';
|
|
1274
|
+
readonly database: 'supabase' | 'postgresql' | 'sqlite';
|
|
1275
|
+
readonly styling?: string;
|
|
1276
|
+
readonly deployment?: string;
|
|
1277
|
+
}
|
|
1278
|
+
export interface AuthModelConfig {
|
|
1279
|
+
readonly provider: 'supabase' | 'nextauth' | 'custom';
|
|
1280
|
+
readonly methods: readonly string[];
|
|
1281
|
+
readonly roles?: readonly string[];
|
|
1282
|
+
}
|
|
1283
|
+
export interface ArchitecturePlan {
|
|
1284
|
+
readonly schema: readonly SchemaEntity[];
|
|
1285
|
+
readonly apiRoutes: readonly ApiRouteSpec[];
|
|
1286
|
+
readonly pages: readonly PageSpec[];
|
|
1287
|
+
readonly features: readonly FeaturePlan[];
|
|
1288
|
+
readonly dependencyOrder: readonly string[];
|
|
1289
|
+
readonly authPlan?: {
|
|
1290
|
+
readonly provider: string;
|
|
1291
|
+
readonly methods: readonly string[];
|
|
1292
|
+
readonly roles: readonly string[];
|
|
1293
|
+
readonly protectedRoutes: readonly string[];
|
|
1294
|
+
};
|
|
1295
|
+
readonly deployConfig?: {
|
|
1296
|
+
readonly platform: string;
|
|
1297
|
+
readonly buildCommand: string;
|
|
1298
|
+
readonly envVars: readonly string[];
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
export interface SchemaEntity {
|
|
1302
|
+
readonly name: string;
|
|
1303
|
+
readonly fields: readonly SchemaField[];
|
|
1304
|
+
readonly relations: readonly SchemaRelation[];
|
|
1305
|
+
}
|
|
1306
|
+
export interface SchemaField {
|
|
1307
|
+
readonly name: string;
|
|
1308
|
+
readonly type: string;
|
|
1309
|
+
readonly nullable: boolean;
|
|
1310
|
+
readonly primaryKey?: boolean;
|
|
1311
|
+
readonly unique?: boolean;
|
|
1312
|
+
readonly defaultValue?: string;
|
|
1313
|
+
}
|
|
1314
|
+
export interface SchemaRelation {
|
|
1315
|
+
readonly target: string;
|
|
1316
|
+
readonly type: 'one-to-one' | 'one-to-many' | 'many-to-many';
|
|
1317
|
+
readonly foreignKey: string;
|
|
1318
|
+
}
|
|
1319
|
+
export interface ApiRouteSpec {
|
|
1320
|
+
readonly method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
1321
|
+
readonly path: string;
|
|
1322
|
+
readonly description: string;
|
|
1323
|
+
readonly auth: boolean;
|
|
1324
|
+
readonly requestType?: string;
|
|
1325
|
+
readonly responseType?: string;
|
|
1326
|
+
readonly featureId?: string;
|
|
1327
|
+
}
|
|
1328
|
+
export interface PageSpec {
|
|
1329
|
+
readonly path: string;
|
|
1330
|
+
readonly component: string;
|
|
1331
|
+
readonly auth: boolean;
|
|
1332
|
+
readonly featureId?: string;
|
|
1333
|
+
readonly description?: string;
|
|
1334
|
+
}
|
|
1335
|
+
export interface FeaturePlan {
|
|
1336
|
+
readonly id: string;
|
|
1337
|
+
readonly name: string;
|
|
1338
|
+
readonly dependsOn: readonly string[];
|
|
1339
|
+
readonly schemaEntities: readonly string[];
|
|
1340
|
+
readonly apiRoutes: readonly string[];
|
|
1341
|
+
readonly pages: readonly string[];
|
|
1342
|
+
readonly complexityEstimate: 'trivial' | 'small' | 'medium' | 'large';
|
|
1343
|
+
}
|
|
1344
|
+
export type AppCreatePhase = {
|
|
1345
|
+
readonly phase: 'initializing';
|
|
1346
|
+
} | {
|
|
1347
|
+
readonly phase: 'planning';
|
|
1348
|
+
} | {
|
|
1349
|
+
readonly phase: 'verifying_plan';
|
|
1350
|
+
} | {
|
|
1351
|
+
readonly phase: 'scaffolding';
|
|
1352
|
+
} | {
|
|
1353
|
+
readonly phase: 'building_feature';
|
|
1354
|
+
readonly featureId: string;
|
|
1355
|
+
readonly featureIndex: number;
|
|
1356
|
+
readonly totalFeatures: number;
|
|
1357
|
+
} | {
|
|
1358
|
+
readonly phase: 'building_wave';
|
|
1359
|
+
readonly waveIndex: number;
|
|
1360
|
+
readonly totalWaves: number;
|
|
1361
|
+
readonly featureIds: readonly string[];
|
|
1362
|
+
} | {
|
|
1363
|
+
readonly phase: 'build_verifying';
|
|
1364
|
+
readonly attempt: number;
|
|
1365
|
+
readonly maxAttempts: number;
|
|
1366
|
+
} | {
|
|
1367
|
+
readonly phase: 'build_repairing';
|
|
1368
|
+
readonly attempt: number;
|
|
1369
|
+
readonly maxAttempts: number;
|
|
1370
|
+
readonly errorCount: number;
|
|
1371
|
+
} | {
|
|
1372
|
+
readonly phase: 'cross_verifying';
|
|
1373
|
+
} | {
|
|
1374
|
+
readonly phase: 'finalizing';
|
|
1375
|
+
} | {
|
|
1376
|
+
readonly phase: 'completed';
|
|
1377
|
+
} | {
|
|
1378
|
+
readonly phase: 'failed';
|
|
1379
|
+
readonly reason: string;
|
|
1380
|
+
};
|
|
1381
|
+
export interface AppCreateProgress {
|
|
1382
|
+
readonly phase: AppCreatePhase;
|
|
1383
|
+
readonly currentFeatureIndex: number;
|
|
1384
|
+
readonly totalFeatures: number;
|
|
1385
|
+
readonly completedFeatures: readonly string[];
|
|
1386
|
+
readonly failedFeatures: readonly string[];
|
|
1387
|
+
readonly elapsedMs: number;
|
|
1388
|
+
}
|
|
1389
|
+
export interface AppCreateResult {
|
|
1390
|
+
readonly status: 'completed' | 'failed' | 'partial';
|
|
1391
|
+
readonly projectPath: string;
|
|
1392
|
+
readonly plan: ArchitecturePlan | null;
|
|
1393
|
+
readonly featureResults: readonly FeatureBuildResult[];
|
|
1394
|
+
readonly buildVerification: BuildVerificationResult | null;
|
|
1395
|
+
readonly crossVerification: CrossFeatureVerification | null;
|
|
1396
|
+
readonly totalDurationMs: number;
|
|
1397
|
+
readonly auditTrail: readonly AuditEntry[];
|
|
1398
|
+
}
|
|
1399
|
+
export interface FeatureBuildResult {
|
|
1400
|
+
readonly featureId: string;
|
|
1401
|
+
readonly featureName: string;
|
|
1402
|
+
readonly status: 'completed' | 'failed' | 'skipped';
|
|
1403
|
+
readonly filesCreated: readonly string[];
|
|
1404
|
+
readonly verificationSummary: {
|
|
1405
|
+
readonly totalClaims: number;
|
|
1406
|
+
readonly passed: number;
|
|
1407
|
+
readonly failed: number;
|
|
1408
|
+
};
|
|
1409
|
+
readonly durationMs: number;
|
|
1410
|
+
readonly error?: string;
|
|
1411
|
+
}
|
|
1412
|
+
export interface CrossFeatureVerification {
|
|
1413
|
+
readonly checks: readonly CrossFeatureCheck[];
|
|
1414
|
+
readonly passedCount: number;
|
|
1415
|
+
readonly failedCount: number;
|
|
1416
|
+
readonly verdict: 'PASS' | 'FAIL' | 'PARTIAL';
|
|
1417
|
+
}
|
|
1418
|
+
export interface CrossFeatureCheck {
|
|
1419
|
+
readonly type: 'api_route_exists' | 'page_references_valid' | 'schema_entity_exists' | 'dependency_consistency';
|
|
1420
|
+
readonly description: string;
|
|
1421
|
+
readonly verdict: 'PASS' | 'FAIL';
|
|
1422
|
+
readonly evidence: string;
|
|
1423
|
+
}
|
|
1424
|
+
export type BuildStepStatus = 'pass' | 'fail' | 'skip' | 'timeout';
|
|
1425
|
+
export interface BuildStepResult {
|
|
1426
|
+
readonly step: 'install' | 'build' | 'start' | 'health_check';
|
|
1427
|
+
readonly status: BuildStepStatus;
|
|
1428
|
+
readonly command: string;
|
|
1429
|
+
readonly stdout: string;
|
|
1430
|
+
readonly stderr: string;
|
|
1431
|
+
readonly durationMs: number;
|
|
1432
|
+
readonly exitCode: number | null;
|
|
1433
|
+
}
|
|
1434
|
+
export type BuildErrorCategory = 'type_error' | 'module_not_found' | 'syntax_error' | 'runtime_error' | 'dependency_error' | 'other';
|
|
1435
|
+
export interface BuildError {
|
|
1436
|
+
readonly file: string;
|
|
1437
|
+
readonly line: number | null;
|
|
1438
|
+
readonly message: string;
|
|
1439
|
+
readonly category: BuildErrorCategory;
|
|
1440
|
+
}
|
|
1441
|
+
export interface BuildRepairAttempt {
|
|
1442
|
+
readonly attempt: number;
|
|
1443
|
+
readonly errors: readonly BuildError[];
|
|
1444
|
+
readonly filesModified: readonly string[];
|
|
1445
|
+
readonly repairSucceeded: boolean;
|
|
1446
|
+
readonly durationMs: number;
|
|
1447
|
+
}
|
|
1448
|
+
export interface BuildVerificationResult {
|
|
1449
|
+
readonly status: 'pass' | 'fail' | 'repaired' | 'skipped';
|
|
1450
|
+
readonly install: BuildStepResult | null;
|
|
1451
|
+
readonly build: BuildStepResult | null;
|
|
1452
|
+
readonly start: BuildStepResult | null;
|
|
1453
|
+
readonly healthCheck: BuildStepResult | null;
|
|
1454
|
+
readonly repairAttempts: readonly BuildRepairAttempt[];
|
|
1455
|
+
readonly finalErrors: readonly BuildError[];
|
|
1456
|
+
readonly totalDurationMs: number;
|
|
1457
|
+
}
|
|
1458
|
+
export interface AppCreateOptions {
|
|
1459
|
+
readonly outputPath: string;
|
|
1460
|
+
readonly models?: Partial<Record<AgentSpecialization, string>>;
|
|
1461
|
+
readonly maxConcurrentTasks?: number;
|
|
1462
|
+
readonly stallTimeoutMs?: number;
|
|
1463
|
+
readonly maxRetries?: number;
|
|
1464
|
+
readonly sequential?: boolean;
|
|
1465
|
+
readonly noDirectMode?: boolean;
|
|
1466
|
+
readonly fullVerification?: boolean;
|
|
1467
|
+
readonly maxBuildRepairAttempts?: number;
|
|
1468
|
+
readonly skipBuildVerification?: boolean;
|
|
1469
|
+
}
|