@kairos-sdk/core 0.3.2 → 0.4.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/README.md +37 -5
- package/dist/{chunk-KQSNT3HZ.js → chunk-N6LRD2FN.js} +107 -15
- package/dist/chunk-N6LRD2FN.js.map +1 -0
- package/dist/{chunk-RYGYNOR6.js → chunk-NJ6QZBIC.js} +624 -43
- package/dist/chunk-NJ6QZBIC.js.map +1 -0
- package/dist/cli.cjs +820 -66
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +87 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +729 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -18
- package/dist/index.d.ts +23 -18
- package/dist/index.js +2 -2
- package/dist/mcp-server.cjs +636 -35
- package/dist/mcp-server.cjs.map +1 -1
- package/dist/mcp-server.js +23 -1
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-KQSNT3HZ.js.map +0 -1
- package/dist/chunk-RYGYNOR6.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -224,6 +224,7 @@ declare class Kairos {
|
|
|
224
224
|
private readonly logger;
|
|
225
225
|
private readonly telemetry;
|
|
226
226
|
private readonly telemetryReader;
|
|
227
|
+
private readonly patternAnalyzer;
|
|
227
228
|
private readonly model;
|
|
228
229
|
private saveQueue;
|
|
229
230
|
constructor(options: ClientOptions);
|
|
@@ -232,6 +233,7 @@ declare class Kairos {
|
|
|
232
233
|
build(description: string, options?: BuildOptions): Promise<BuildResult>;
|
|
233
234
|
replace(id: string, description: string): Promise<BuildResult>;
|
|
234
235
|
drain(): Promise<void>;
|
|
236
|
+
private updatePatterns;
|
|
235
237
|
private emitAttemptTelemetry;
|
|
236
238
|
private recordDeploy;
|
|
237
239
|
private saveToLibrary;
|
|
@@ -414,6 +416,7 @@ interface ValidationIssue {
|
|
|
414
416
|
severity: 'error' | 'warn';
|
|
415
417
|
message: string;
|
|
416
418
|
nodeId?: string;
|
|
419
|
+
nodeType?: string;
|
|
417
420
|
}
|
|
418
421
|
interface ValidationResult {
|
|
419
422
|
valid: boolean;
|
|
@@ -475,9 +478,28 @@ declare class KairosError extends Error {
|
|
|
475
478
|
constructor(message: string, cause?: unknown | undefined);
|
|
476
479
|
}
|
|
477
480
|
|
|
481
|
+
interface TelemetryEvent {
|
|
482
|
+
schemaVersion: number;
|
|
483
|
+
timestamp: string;
|
|
484
|
+
sessionId: string;
|
|
485
|
+
eventType: 'build_start' | 'generation_attempt' | 'build_complete';
|
|
486
|
+
data: Record<string, unknown>;
|
|
487
|
+
}
|
|
488
|
+
interface AttemptMetadata {
|
|
489
|
+
attempt: number;
|
|
490
|
+
temperature: number;
|
|
491
|
+
durationMs: number;
|
|
492
|
+
tokensInput: number;
|
|
493
|
+
tokensOutput: number;
|
|
494
|
+
validationPassed: boolean;
|
|
495
|
+
issues: ValidationIssue[];
|
|
496
|
+
}
|
|
497
|
+
|
|
478
498
|
declare class ValidationError extends KairosError {
|
|
479
499
|
readonly issues: ValidationIssue[];
|
|
480
|
-
|
|
500
|
+
readonly attemptMetadata?: AttemptMetadata[] | undefined;
|
|
501
|
+
readonly warnedRules?: number[] | undefined;
|
|
502
|
+
constructor(message: string, issues: ValidationIssue[], attemptMetadata?: AttemptMetadata[] | undefined, warnedRules?: number[] | undefined);
|
|
481
503
|
}
|
|
482
504
|
|
|
483
505
|
declare class GenerationError extends KairosError {
|
|
@@ -526,23 +548,6 @@ declare class TemplateSyncer {
|
|
|
526
548
|
private cleanDescription;
|
|
527
549
|
}
|
|
528
550
|
|
|
529
|
-
interface TelemetryEvent {
|
|
530
|
-
schemaVersion: number;
|
|
531
|
-
timestamp: string;
|
|
532
|
-
sessionId: string;
|
|
533
|
-
eventType: 'build_start' | 'generation_attempt' | 'build_complete';
|
|
534
|
-
data: Record<string, unknown>;
|
|
535
|
-
}
|
|
536
|
-
interface AttemptMetadata {
|
|
537
|
-
attempt: number;
|
|
538
|
-
temperature: number;
|
|
539
|
-
durationMs: number;
|
|
540
|
-
tokensInput: number;
|
|
541
|
-
tokensOutput: number;
|
|
542
|
-
validationPassed: boolean;
|
|
543
|
-
issues: ValidationIssue[];
|
|
544
|
-
}
|
|
545
|
-
|
|
546
551
|
declare class TelemetryCollector {
|
|
547
552
|
private readonly dir;
|
|
548
553
|
readonly sessionId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -224,6 +224,7 @@ declare class Kairos {
|
|
|
224
224
|
private readonly logger;
|
|
225
225
|
private readonly telemetry;
|
|
226
226
|
private readonly telemetryReader;
|
|
227
|
+
private readonly patternAnalyzer;
|
|
227
228
|
private readonly model;
|
|
228
229
|
private saveQueue;
|
|
229
230
|
constructor(options: ClientOptions);
|
|
@@ -232,6 +233,7 @@ declare class Kairos {
|
|
|
232
233
|
build(description: string, options?: BuildOptions): Promise<BuildResult>;
|
|
233
234
|
replace(id: string, description: string): Promise<BuildResult>;
|
|
234
235
|
drain(): Promise<void>;
|
|
236
|
+
private updatePatterns;
|
|
235
237
|
private emitAttemptTelemetry;
|
|
236
238
|
private recordDeploy;
|
|
237
239
|
private saveToLibrary;
|
|
@@ -414,6 +416,7 @@ interface ValidationIssue {
|
|
|
414
416
|
severity: 'error' | 'warn';
|
|
415
417
|
message: string;
|
|
416
418
|
nodeId?: string;
|
|
419
|
+
nodeType?: string;
|
|
417
420
|
}
|
|
418
421
|
interface ValidationResult {
|
|
419
422
|
valid: boolean;
|
|
@@ -475,9 +478,28 @@ declare class KairosError extends Error {
|
|
|
475
478
|
constructor(message: string, cause?: unknown | undefined);
|
|
476
479
|
}
|
|
477
480
|
|
|
481
|
+
interface TelemetryEvent {
|
|
482
|
+
schemaVersion: number;
|
|
483
|
+
timestamp: string;
|
|
484
|
+
sessionId: string;
|
|
485
|
+
eventType: 'build_start' | 'generation_attempt' | 'build_complete';
|
|
486
|
+
data: Record<string, unknown>;
|
|
487
|
+
}
|
|
488
|
+
interface AttemptMetadata {
|
|
489
|
+
attempt: number;
|
|
490
|
+
temperature: number;
|
|
491
|
+
durationMs: number;
|
|
492
|
+
tokensInput: number;
|
|
493
|
+
tokensOutput: number;
|
|
494
|
+
validationPassed: boolean;
|
|
495
|
+
issues: ValidationIssue[];
|
|
496
|
+
}
|
|
497
|
+
|
|
478
498
|
declare class ValidationError extends KairosError {
|
|
479
499
|
readonly issues: ValidationIssue[];
|
|
480
|
-
|
|
500
|
+
readonly attemptMetadata?: AttemptMetadata[] | undefined;
|
|
501
|
+
readonly warnedRules?: number[] | undefined;
|
|
502
|
+
constructor(message: string, issues: ValidationIssue[], attemptMetadata?: AttemptMetadata[] | undefined, warnedRules?: number[] | undefined);
|
|
481
503
|
}
|
|
482
504
|
|
|
483
505
|
declare class GenerationError extends KairosError {
|
|
@@ -526,23 +548,6 @@ declare class TemplateSyncer {
|
|
|
526
548
|
private cleanDescription;
|
|
527
549
|
}
|
|
528
550
|
|
|
529
|
-
interface TelemetryEvent {
|
|
530
|
-
schemaVersion: number;
|
|
531
|
-
timestamp: string;
|
|
532
|
-
sessionId: string;
|
|
533
|
-
eventType: 'build_start' | 'generation_attempt' | 'build_complete';
|
|
534
|
-
data: Record<string, unknown>;
|
|
535
|
-
}
|
|
536
|
-
interface AttemptMetadata {
|
|
537
|
-
attempt: number;
|
|
538
|
-
temperature: number;
|
|
539
|
-
durationMs: number;
|
|
540
|
-
tokensInput: number;
|
|
541
|
-
tokensOutput: number;
|
|
542
|
-
validationPassed: boolean;
|
|
543
|
-
issues: ValidationIssue[];
|
|
544
|
-
}
|
|
545
|
-
|
|
546
551
|
declare class TelemetryCollector {
|
|
547
552
|
private readonly dir;
|
|
548
553
|
readonly sessionId: string;
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
TelemetryCollector,
|
|
9
9
|
TemplateSyncer,
|
|
10
10
|
ValidationError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-N6LRD2FN.js";
|
|
12
12
|
import {
|
|
13
13
|
ApiError,
|
|
14
14
|
DEFAULT_REGISTRY,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
nullLogger,
|
|
27
27
|
rerank,
|
|
28
28
|
tokenize
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NJ6QZBIC.js";
|
|
30
30
|
export {
|
|
31
31
|
ApiError,
|
|
32
32
|
DEFAULT_REGISTRY,
|