@hongmaple0820/scale-engine 0.27.1 → 0.29.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.
@@ -261,9 +261,124 @@ export interface AiOsDoctorReport {
261
261
  warnings: string[];
262
262
  nextActions: string[];
263
263
  }
264
+ export interface AiOsAdoptionInput extends AiOsRuntimeInput {
265
+ benchmarkMaxAgeHours?: number;
266
+ lang?: 'zh' | 'en';
267
+ }
268
+ export type AiOsAdoptionStatus = 'ready' | 'warning' | 'blocked';
269
+ export type AiOsAdoptionPhaseStatus = 'passed' | 'warning' | 'blocked';
270
+ export interface AiOsAdoptionPhase {
271
+ id: 'migrate' | 'first-run' | 'benchmark' | 'doctor';
272
+ status: AiOsAdoptionPhaseStatus;
273
+ summary: string;
274
+ evidence: string[];
275
+ }
276
+ export interface AiOsAdoptionReport {
277
+ version: string;
278
+ generatedAt: string;
279
+ status: AiOsAdoptionStatus;
280
+ projectDir: string;
281
+ scaleRoot: string;
282
+ phases: AiOsAdoptionPhase[];
283
+ migration: AiOsMigrationReport;
284
+ run: AiOsRunReport;
285
+ benchmark: AiOsBenchmarkReport;
286
+ doctor: AiOsDoctorReport;
287
+ artifacts: {
288
+ migrationReport: string;
289
+ runReport: string;
290
+ benchmarkReport: string;
291
+ adoptionReport: string;
292
+ };
293
+ warnings: string[];
294
+ nextActions: string[];
295
+ }
296
+ export interface AiOsStatusInput {
297
+ projectDir?: string;
298
+ scaleDir?: string;
299
+ benchmarkMaxAgeHours?: number;
300
+ lang?: 'zh' | 'en';
301
+ }
302
+ export type AiOsClosedLoopStatus = 'ready' | 'warning' | 'blocked';
303
+ export type AiOsStatusCheckId = 'runtime-dirs' | 'plan-evidence' | 'run-evidence' | 'verification-evidence' | 'dashboard-health' | 'benchmark-evidence' | 'adoption-evidence';
304
+ export interface AiOsStatusCheck {
305
+ id: AiOsStatusCheckId;
306
+ title: string;
307
+ status: AiOsClosedLoopStatus;
308
+ summary: string;
309
+ evidence: string[];
310
+ }
311
+ export interface AiOsVerificationRecommendation {
312
+ command: string;
313
+ source: 'verification-profile' | 'package-script' | 'fallback';
314
+ reason: string;
315
+ profile?: string;
316
+ service?: string;
317
+ }
318
+ export interface AiOsStatusReport {
319
+ version: string;
320
+ generatedAt: string;
321
+ status: AiOsClosedLoopStatus;
322
+ projectDir: string;
323
+ scaleRoot: string;
324
+ checks: AiOsStatusCheck[];
325
+ summary: {
326
+ total: number;
327
+ ready: number;
328
+ warning: number;
329
+ blocked: number;
330
+ };
331
+ dashboard: AiOsDashboardReport;
332
+ doctor: AiOsDoctorReport;
333
+ intelligence: AiOsIntelligenceReport;
334
+ verificationRecommendations: AiOsVerificationRecommendation[];
335
+ nextActions: string[];
336
+ warnings: string[];
337
+ }
338
+ export type AiOsIntelligenceSignalId = 'memory-recall' | 'context-savings' | 'skill-routing' | 'benchmark-intelligence';
339
+ export interface AiOsIntelligenceSignal {
340
+ id: AiOsIntelligenceSignalId;
341
+ status: AiOsClosedLoopStatus;
342
+ summary: string;
343
+ evidence: string[];
344
+ recommendations: string[];
345
+ }
346
+ export interface AiOsIntelligenceReport {
347
+ status: AiOsClosedLoopStatus;
348
+ summary: {
349
+ ready: number;
350
+ warning: number;
351
+ blocked: number;
352
+ totalMemoryItems: number;
353
+ selectedProviders: string[];
354
+ memoryQuality: AiOsMemoryQualitySummary;
355
+ contextQuality: AiOsContextQualitySummary;
356
+ estimatedTokenSavings: number;
357
+ skillSteps: number;
358
+ };
359
+ signals: AiOsIntelligenceSignal[];
360
+ nextActions: string[];
361
+ }
362
+ export interface AiOsMemoryQualitySummary {
363
+ score: number;
364
+ evidenceBackedItems: number;
365
+ missingEvidenceItems: number;
366
+ lowConfidenceItems: number;
367
+ averageConfidence: number;
368
+ averageRelevance: number;
369
+ }
370
+ export interface AiOsContextQualitySummary {
371
+ omittedSections: number;
372
+ totalOmittedTokens: number;
373
+ evidenceLossWarnings: string[];
374
+ highestOmittedTokens: number;
375
+ compressionRisk: 'low' | 'medium' | 'high';
376
+ }
264
377
  export declare function createAiOsPlan(input: AiOsRuntimeInput): Promise<AiOsRuntimePlan>;
265
378
  export declare function createAiOsRun(input: AiOsRunInput): Promise<AiOsRunReport>;
266
379
  export declare function createAiOsDashboard(input?: AiOsDashboardInput): AiOsDashboardReport;
267
380
  export declare function createAiOsBenchmark(input?: AiOsBenchmarkInput): Promise<AiOsBenchmarkReport>;
268
381
  export declare function createAiOsMigration(input?: AiOsMigrationInput): AiOsMigrationReport;
269
382
  export declare function createAiOsDoctor(input?: AiOsDoctorInput): AiOsDoctorReport;
383
+ export declare function createAiOsAdoption(input: AiOsAdoptionInput): Promise<AiOsAdoptionReport>;
384
+ export declare function createAiOsStatus(input?: AiOsStatusInput): AiOsStatusReport;