@xera-ai/core 0.5.0 → 0.8.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/bin/internal.js +73 -73
- package/package.json +5 -4
- package/dist/adapter/types.d.ts +0 -70
- package/dist/adapter/types.d.ts.map +0 -1
- package/dist/artifact/hash.d.ts +0 -4
- package/dist/artifact/hash.d.ts.map +0 -1
- package/dist/artifact/meta.d.ts +0 -20
- package/dist/artifact/meta.d.ts.map +0 -1
- package/dist/artifact/paths.d.ts +0 -25
- package/dist/artifact/paths.d.ts.map +0 -1
- package/dist/artifact/status.d.ts +0 -87
- package/dist/artifact/status.d.ts.map +0 -1
- package/dist/auth/encrypt.d.ts +0 -4
- package/dist/auth/encrypt.d.ts.map +0 -1
- package/dist/auth/key.d.ts +0 -3
- package/dist/auth/key.d.ts.map +0 -1
- package/dist/auth/refresh.d.ts +0 -9
- package/dist/auth/refresh.d.ts.map +0 -1
- package/dist/auth/state.d.ts +0 -15
- package/dist/auth/state.d.ts.map +0 -1
- package/dist/bin-internal/auth-setup.d.ts +0 -2
- package/dist/bin-internal/auth-setup.d.ts.map +0 -1
- package/dist/bin-internal/disputes.d.ts +0 -2
- package/dist/bin-internal/disputes.d.ts.map +0 -1
- package/dist/bin-internal/doctor.d.ts +0 -5
- package/dist/bin-internal/doctor.d.ts.map +0 -1
- package/dist/bin-internal/eval-deterministic.d.ts +0 -5
- package/dist/bin-internal/eval-deterministic.d.ts.map +0 -1
- package/dist/bin-internal/eval-prepare.d.ts +0 -7
- package/dist/bin-internal/eval-prepare.d.ts.map +0 -1
- package/dist/bin-internal/eval-report.d.ts +0 -5
- package/dist/bin-internal/eval-report.d.ts.map +0 -1
- package/dist/bin-internal/exec.d.ts +0 -2
- package/dist/bin-internal/exec.d.ts.map +0 -1
- package/dist/bin-internal/fetch.d.ts +0 -5
- package/dist/bin-internal/fetch.d.ts.map +0 -1
- package/dist/bin-internal/graph-backfill.d.ts +0 -2
- package/dist/bin-internal/graph-backfill.d.ts.map +0 -1
- package/dist/bin-internal/graph-enrich.d.ts +0 -2
- package/dist/bin-internal/graph-enrich.d.ts.map +0 -1
- package/dist/bin-internal/graph-query.d.ts +0 -2
- package/dist/bin-internal/graph-query.d.ts.map +0 -1
- package/dist/bin-internal/graph-record-script.d.ts +0 -2
- package/dist/bin-internal/graph-record-script.d.ts.map +0 -1
- package/dist/bin-internal/graph-record.d.ts +0 -3
- package/dist/bin-internal/graph-record.d.ts.map +0 -1
- package/dist/bin-internal/graph-render.d.ts +0 -2
- package/dist/bin-internal/graph-render.d.ts.map +0 -1
- package/dist/bin-internal/graph-snapshot.d.ts +0 -2
- package/dist/bin-internal/graph-snapshot.d.ts.map +0 -1
- package/dist/bin-internal/heal-prepare.d.ts +0 -19
- package/dist/bin-internal/heal-prepare.d.ts.map +0 -1
- package/dist/bin-internal/impact-prepare.d.ts +0 -2
- package/dist/bin-internal/impact-prepare.d.ts.map +0 -1
- package/dist/bin-internal/index.d.ts +0 -2
- package/dist/bin-internal/index.d.ts.map +0 -1
- package/dist/bin-internal/lint.d.ts +0 -2
- package/dist/bin-internal/lint.d.ts.map +0 -1
- package/dist/bin-internal/normalize.d.ts +0 -2
- package/dist/bin-internal/normalize.d.ts.map +0 -1
- package/dist/bin-internal/post.d.ts +0 -2
- package/dist/bin-internal/post.d.ts.map +0 -1
- package/dist/bin-internal/promote.d.ts +0 -2
- package/dist/bin-internal/promote.d.ts.map +0 -1
- package/dist/bin-internal/report.d.ts +0 -2
- package/dist/bin-internal/report.d.ts.map +0 -1
- package/dist/bin-internal/status-cmd.d.ts +0 -2
- package/dist/bin-internal/status-cmd.d.ts.map +0 -1
- package/dist/bin-internal/typecheck.d.ts +0 -2
- package/dist/bin-internal/typecheck.d.ts.map +0 -1
- package/dist/bin-internal/unlock.d.ts +0 -2
- package/dist/bin-internal/unlock.d.ts.map +0 -1
- package/dist/bin-internal/validate-feature.d.ts +0 -2
- package/dist/bin-internal/validate-feature.d.ts.map +0 -1
- package/dist/bin-internal/verify-prompts.d.ts +0 -7
- package/dist/bin-internal/verify-prompts.d.ts.map +0 -1
- package/dist/classifier/aggregate.d.ts +0 -3
- package/dist/classifier/aggregate.d.ts.map +0 -1
- package/dist/classifier/auth-expired.d.ts +0 -12
- package/dist/classifier/auth-expired.d.ts.map +0 -1
- package/dist/classifier/contract-drift.d.ts +0 -35
- package/dist/classifier/contract-drift.d.ts.map +0 -1
- package/dist/classifier/history.d.ts +0 -13
- package/dist/classifier/history.d.ts.map +0 -1
- package/dist/classifier/rate-limited.d.ts +0 -15
- package/dist/classifier/rate-limited.d.ts.map +0 -1
- package/dist/classifier/types.d.ts +0 -26
- package/dist/classifier/types.d.ts.map +0 -1
- package/dist/config/define.d.ts +0 -3
- package/dist/config/define.d.ts.map +0 -1
- package/dist/config/load.d.ts +0 -3
- package/dist/config/load.d.ts.map +0 -1
- package/dist/config/schema.d.ts +0 -101
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/eval/paths.d.ts +0 -15
- package/dist/eval/paths.d.ts.map +0 -1
- package/dist/eval/run-id.d.ts +0 -6
- package/dist/eval/run-id.d.ts.map +0 -1
- package/dist/eval/types.d.ts +0 -203
- package/dist/eval/types.d.ts.map +0 -1
- package/dist/graph/classify.d.ts +0 -42
- package/dist/graph/classify.d.ts.map +0 -1
- package/dist/graph/cost.d.ts +0 -21
- package/dist/graph/cost.d.ts.map +0 -1
- package/dist/graph/enrich.d.ts +0 -10
- package/dist/graph/enrich.d.ts.map +0 -1
- package/dist/graph/impact.d.ts +0 -31
- package/dist/graph/impact.d.ts.map +0 -1
- package/dist/graph/index.d.ts +0 -17
- package/dist/graph/index.d.ts.map +0 -1
- package/dist/graph/paths.d.ts +0 -10
- package/dist/graph/paths.d.ts.map +0 -1
- package/dist/graph/render.d.ts +0 -50
- package/dist/graph/render.d.ts.map +0 -1
- package/dist/graph/schema.d.ts +0 -189
- package/dist/graph/schema.d.ts.map +0 -1
- package/dist/graph/similarity.d.ts +0 -3
- package/dist/graph/similarity.d.ts.map +0 -1
- package/dist/graph/store.d.ts +0 -14
- package/dist/graph/store.d.ts.map +0 -1
- package/dist/graph/types.d.ts +0 -152
- package/dist/graph/types.d.ts.map +0 -1
- package/dist/graph/ulid.d.ts +0 -2
- package/dist/graph/ulid.d.ts.map +0 -1
- package/dist/index.d.ts +0 -22
- package/dist/index.d.ts.map +0 -1
- package/dist/jira/client.d.ts +0 -11
- package/dist/jira/client.d.ts.map +0 -1
- package/dist/jira/fields.d.ts +0 -7
- package/dist/jira/fields.d.ts.map +0 -1
- package/dist/jira/mcp-backend.d.ts +0 -3
- package/dist/jira/mcp-backend.d.ts.map +0 -1
- package/dist/jira/rest-backend.d.ts +0 -8
- package/dist/jira/rest-backend.d.ts.map +0 -1
- package/dist/jira/retry.d.ts +0 -8
- package/dist/jira/retry.d.ts.map +0 -1
- package/dist/jira/types.d.ts +0 -29
- package/dist/jira/types.d.ts.map +0 -1
- package/dist/lock/file-lock.d.ts +0 -12
- package/dist/lock/file-lock.d.ts.map +0 -1
- package/dist/logging/ndjson-logger.d.ts +0 -11
- package/dist/logging/ndjson-logger.d.ts.map +0 -1
- package/dist/reporter/jira-comment.d.ts +0 -9
- package/dist/reporter/jira-comment.d.ts.map +0 -1
- package/dist/reporter/status-writer.d.ts +0 -14
- package/dist/reporter/status-writer.d.ts.map +0 -1
- package/dist/scrub/index.d.ts +0 -2
- package/dist/scrub/index.d.ts.map +0 -1
- package/dist/scrub/rules.d.ts +0 -12
- package/dist/scrub/rules.d.ts.map +0 -1
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { ClassifyResult } from './rate-limited';
|
|
2
|
-
export interface OpenAPISchema {
|
|
3
|
-
type?: 'object' | 'array' | 'string' | 'integer' | 'number' | 'boolean' | 'null';
|
|
4
|
-
properties?: Record<string, OpenAPISchema>;
|
|
5
|
-
required?: readonly string[];
|
|
6
|
-
items?: OpenAPISchema;
|
|
7
|
-
}
|
|
8
|
-
interface OpenAPIOperation {
|
|
9
|
-
responses?: Record<string, {
|
|
10
|
-
content?: Record<string, {
|
|
11
|
-
schema?: OpenAPISchema;
|
|
12
|
-
}>;
|
|
13
|
-
}>;
|
|
14
|
-
requestBody?: {
|
|
15
|
-
content?: Record<string, {
|
|
16
|
-
schema?: OpenAPISchema;
|
|
17
|
-
}>;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export interface OpenAPIDocument {
|
|
21
|
-
paths: Record<string, Partial<Record<'get' | 'post' | 'put' | 'patch' | 'delete', OpenAPIOperation>>>;
|
|
22
|
-
}
|
|
23
|
-
export interface ContractDriftCall {
|
|
24
|
-
method: string;
|
|
25
|
-
url: string;
|
|
26
|
-
status: number;
|
|
27
|
-
respBody: unknown;
|
|
28
|
-
}
|
|
29
|
-
export interface ClassifyContractDriftInput {
|
|
30
|
-
calls: readonly ContractDriftCall[];
|
|
31
|
-
openapi: OpenAPIDocument | null;
|
|
32
|
-
}
|
|
33
|
-
export declare function classifyContractDrift(input: ClassifyContractDriftInput): ClassifyResult | null;
|
|
34
|
-
export {};
|
|
35
|
-
//# sourceMappingURL=contract-drift.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contract-drift.d.ts","sourceRoot":"","sources":["../../src/classifier/contract-drift.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACjF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;YAAE,MAAM,CAAC,EAAE,aAAa,CAAA;SAAE,CAAC,CAAA;KAAE,CAAC,CAAC;IACrF,WAAW,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;YAAE,MAAM,CAAC,EAAE,aAAa,CAAA;SAAE,CAAC,CAAA;KAAE,CAAC;CACxE;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CACX,MAAM,EACN,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAC/E,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACpC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;CACjC;AAoCD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,GAAG,cAAc,GAAG,IAAI,CA2C9F"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Classification } from '../artifact/status';
|
|
2
|
-
export interface HistorySummary {
|
|
3
|
-
firstRun: boolean;
|
|
4
|
-
consecutiveFails: number;
|
|
5
|
-
lastResult: 'PASS' | 'FAIL' | null;
|
|
6
|
-
lastClass: Classification | null;
|
|
7
|
-
}
|
|
8
|
-
export declare function summarizeHistory(history: Array<{
|
|
9
|
-
ts: string;
|
|
10
|
-
result: 'PASS' | 'FAIL';
|
|
11
|
-
class: Classification;
|
|
12
|
-
}>): HistorySummary;
|
|
13
|
-
//# sourceMappingURL=history.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../src/classifier/history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACnC,SAAS,EAAE,cAAc,GAAG,IAAI,CAAC;CAClC;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,CAAC,GAC7E,cAAc,CAehB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Classification } from '../artifact/status';
|
|
2
|
-
export interface HttpCallSummary {
|
|
3
|
-
method: string;
|
|
4
|
-
url: string;
|
|
5
|
-
status: number;
|
|
6
|
-
}
|
|
7
|
-
export interface ClassifyResult {
|
|
8
|
-
class: Classification;
|
|
9
|
-
rationale: string;
|
|
10
|
-
}
|
|
11
|
-
export interface ClassifyRateLimitedInput {
|
|
12
|
-
calls: readonly HttpCallSummary[];
|
|
13
|
-
}
|
|
14
|
-
export declare function classifyRateLimited(input: ClassifyRateLimitedInput): ClassifyResult | null;
|
|
15
|
-
//# sourceMappingURL=rate-limited.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rate-limited.d.ts","sourceRoot":"","sources":["../../src/classifier/rate-limited.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,cAAc,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,SAAS,eAAe,EAAE,CAAC;CACnC;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,GAAG,cAAc,GAAG,IAAI,CAO1F"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Classification } from '../artifact/status';
|
|
2
|
-
export type { Classification };
|
|
3
|
-
export type Confidence = 'low' | 'medium' | 'high';
|
|
4
|
-
export interface ScenarioClassification {
|
|
5
|
-
name: string;
|
|
6
|
-
outcome: 'PASS' | 'FAIL' | 'SKIPPED';
|
|
7
|
-
class: Classification;
|
|
8
|
-
confidence: Confidence;
|
|
9
|
-
rationale: string;
|
|
10
|
-
}
|
|
11
|
-
export interface ClassifyOutput {
|
|
12
|
-
overall: Classification;
|
|
13
|
-
overallConfidence: Confidence;
|
|
14
|
-
scenarios: ScenarioClassification[];
|
|
15
|
-
}
|
|
16
|
-
export interface ClassifyContextInput {
|
|
17
|
-
history: Array<{
|
|
18
|
-
ts: string;
|
|
19
|
-
result: 'PASS' | 'FAIL';
|
|
20
|
-
class: Classification;
|
|
21
|
-
}>;
|
|
22
|
-
storyHashChanged: boolean;
|
|
23
|
-
specHashChanged: boolean;
|
|
24
|
-
firstRun: boolean;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/classifier/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,YAAY,EAAE,cAAc,EAAE,CAAC;AAC/B,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEnD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,cAAc,CAAC;IACxB,iBAAiB,EAAE,UAAU,CAAC;IAC9B,SAAS,EAAE,sBAAsB,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,KAAK,EAAE,cAAc,CAAA;KAAE,CAAC,CAAC;IAC/E,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
package/dist/config/define.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../../src/config/define.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAE3D"}
|
package/dist/config/load.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../src/config/load.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,UAAU,CAAC;AAE7D,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAQjE"}
|
package/dist/config/schema.d.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const XeraConfigSchema: z.ZodObject<{
|
|
3
|
-
jira: z.ZodObject<{
|
|
4
|
-
baseUrl: z.ZodString;
|
|
5
|
-
projectKeys: z.ZodArray<z.ZodString>;
|
|
6
|
-
fields: z.ZodObject<{
|
|
7
|
-
story: z.ZodString;
|
|
8
|
-
acceptanceCriteria: z.ZodOptional<z.ZodString>;
|
|
9
|
-
attachments: z.ZodDefault<z.ZodString>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
web: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
baseUrl: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
14
|
-
defaultEnv: z.ZodString;
|
|
15
|
-
auth: z.ZodPrefault<z.ZodObject<{
|
|
16
|
-
strategy: z.ZodDefault<z.ZodEnum<{
|
|
17
|
-
storageState: "storageState";
|
|
18
|
-
apiToken: "apiToken";
|
|
19
|
-
none: "none";
|
|
20
|
-
}>>;
|
|
21
|
-
ttl: z.ZodDefault<z.ZodString>;
|
|
22
|
-
refreshBuffer: z.ZodDefault<z.ZodString>;
|
|
23
|
-
setupScript: z.ZodOptional<z.ZodString>;
|
|
24
|
-
roles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
25
|
-
envEmail: z.ZodString;
|
|
26
|
-
envPassword: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>>;
|
|
28
|
-
}, z.core.$strip>>;
|
|
29
|
-
testData: z.ZodPrefault<z.ZodObject<{
|
|
30
|
-
users: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
31
|
-
fromAuth: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>>;
|
|
33
|
-
}, z.core.$strip>>;
|
|
34
|
-
}, z.core.$strip>>;
|
|
35
|
-
http: z.ZodOptional<z.ZodObject<{
|
|
36
|
-
baseUrl: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
37
|
-
defaultEnv: z.ZodString;
|
|
38
|
-
spec: z.ZodOptional<z.ZodString>;
|
|
39
|
-
auth: z.ZodPrefault<z.ZodObject<{
|
|
40
|
-
strategy: z.ZodDefault<z.ZodEnum<{
|
|
41
|
-
custom: "custom";
|
|
42
|
-
none: "none";
|
|
43
|
-
bearer: "bearer";
|
|
44
|
-
apiKey: "apiKey";
|
|
45
|
-
basic: "basic";
|
|
46
|
-
"oauth-cc": "oauth-cc";
|
|
47
|
-
}>>;
|
|
48
|
-
ttl: z.ZodDefault<z.ZodString>;
|
|
49
|
-
refreshBuffer: z.ZodDefault<z.ZodString>;
|
|
50
|
-
roles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
51
|
-
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
52
|
-
userEnv: z.ZodOptional<z.ZodString>;
|
|
53
|
-
passEnv: z.ZodOptional<z.ZodString>;
|
|
54
|
-
tokenUrl: z.ZodOptional<z.ZodString>;
|
|
55
|
-
clientIdEnv: z.ZodOptional<z.ZodString>;
|
|
56
|
-
clientSecretEnv: z.ZodOptional<z.ZodString>;
|
|
57
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
58
|
-
}, z.core.$strip>>>;
|
|
59
|
-
}, z.core.$strip>>;
|
|
60
|
-
}, z.core.$strip>>;
|
|
61
|
-
ai: z.ZodPrefault<z.ZodObject<{
|
|
62
|
-
livePageSnapshot: z.ZodDefault<z.ZodBoolean>;
|
|
63
|
-
confidenceThreshold: z.ZodDefault<z.ZodEnum<{
|
|
64
|
-
low: "low";
|
|
65
|
-
medium: "medium";
|
|
66
|
-
high: "high";
|
|
67
|
-
}>>;
|
|
68
|
-
maxRetries: z.ZodPrefault<z.ZodObject<{
|
|
69
|
-
typecheck: z.ZodDefault<z.ZodNumber>;
|
|
70
|
-
lint: z.ZodDefault<z.ZodNumber>;
|
|
71
|
-
validateFeature: z.ZodDefault<z.ZodNumber>;
|
|
72
|
-
}, z.core.$strip>>;
|
|
73
|
-
}, z.core.$strip>>;
|
|
74
|
-
reporting: z.ZodPrefault<z.ZodObject<{
|
|
75
|
-
language: z.ZodDefault<z.ZodEnum<{
|
|
76
|
-
en: "en";
|
|
77
|
-
vi: "vi";
|
|
78
|
-
}>>;
|
|
79
|
-
postToJira: z.ZodDefault<z.ZodBoolean>;
|
|
80
|
-
transition: z.ZodPrefault<z.ZodObject<{
|
|
81
|
-
onPass: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
82
|
-
onFail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
83
|
-
}, z.core.$strip>>;
|
|
84
|
-
artifactLinks: z.ZodDefault<z.ZodEnum<{
|
|
85
|
-
git: "git";
|
|
86
|
-
local: "local";
|
|
87
|
-
}>>;
|
|
88
|
-
}, z.core.$strip>>;
|
|
89
|
-
run: z.ZodPrefault<z.ZodPrefault<z.ZodObject<{
|
|
90
|
-
autoImpact: z.ZodPrefault<z.ZodObject<{
|
|
91
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
92
|
-
threshold: z.ZodDefault<z.ZodNumber>;
|
|
93
|
-
}, z.core.$strip>>;
|
|
94
|
-
}, z.core.$strip>>>;
|
|
95
|
-
adapters: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
96
|
-
web: "web";
|
|
97
|
-
http: "http";
|
|
98
|
-
}>>>;
|
|
99
|
-
}, z.core.$strip>;
|
|
100
|
-
export type XeraConfig = z.infer<typeof XeraConfigSchema>;
|
|
101
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiHxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBzB,CAAC;AAEL,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/eval/paths.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface EvalPaths {
|
|
2
|
-
root: string;
|
|
3
|
-
manifest: string;
|
|
4
|
-
lock: string;
|
|
5
|
-
deterministicScores: string;
|
|
6
|
-
judgeScores: string;
|
|
7
|
-
report: string;
|
|
8
|
-
summary: string;
|
|
9
|
-
inputsDir: string;
|
|
10
|
-
actualDir: string;
|
|
11
|
-
ticketInputsDir(ticket: string): string;
|
|
12
|
-
ticketActualDir(ticket: string): string;
|
|
13
|
-
}
|
|
14
|
-
export declare function resolveEvalPaths(cwd: string, runId: string): EvalPaths;
|
|
15
|
-
//# sourceMappingURL=paths.d.ts.map
|
package/dist/eval/paths.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/eval/paths.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxC,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACzC;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAetE"}
|
package/dist/eval/run-id.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-id.d.ts","sourceRoot":"","sources":["../../src/eval/run-id.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;CAClB;AAgBD,wBAAgB,aAAa,CAAC,IAAI,GAAE,SAAc,GAAG,MAAM,CAQ1D"}
|
package/dist/eval/types.d.ts
DELETED
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const STAGES: readonly ["feature-from-story", "script-from-feature", "diagnose-failure"];
|
|
3
|
-
export declare const StageSchema: z.ZodEnum<{
|
|
4
|
-
"feature-from-story": "feature-from-story";
|
|
5
|
-
"script-from-feature": "script-from-feature";
|
|
6
|
-
"diagnose-failure": "diagnose-failure";
|
|
7
|
-
}>;
|
|
8
|
-
export type Stage = z.infer<typeof StageSchema>;
|
|
9
|
-
export declare const VerdictSchema: z.ZodEnum<{
|
|
10
|
-
PASS: "PASS";
|
|
11
|
-
FAIL: "FAIL";
|
|
12
|
-
NA: "NA";
|
|
13
|
-
}>;
|
|
14
|
-
export type Verdict = z.infer<typeof VerdictSchema>;
|
|
15
|
-
export declare const PromptVersionsSchema: z.ZodObject<{
|
|
16
|
-
'feature-from-story': z.ZodString;
|
|
17
|
-
'script-from-feature': z.ZodString;
|
|
18
|
-
'diagnose-failure': z.ZodString;
|
|
19
|
-
'eval-rubric': z.ZodString;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
export type PromptVersions = z.infer<typeof PromptVersionsSchema>;
|
|
22
|
-
export declare const ManifestSchema: z.ZodObject<{
|
|
23
|
-
run_id: z.ZodString;
|
|
24
|
-
started_at: z.ZodString;
|
|
25
|
-
git_sha: z.ZodString;
|
|
26
|
-
tickets: z.ZodArray<z.ZodString>;
|
|
27
|
-
stages: z.ZodArray<z.ZodEnum<{
|
|
28
|
-
"feature-from-story": "feature-from-story";
|
|
29
|
-
"script-from-feature": "script-from-feature";
|
|
30
|
-
"diagnose-failure": "diagnose-failure";
|
|
31
|
-
}>>;
|
|
32
|
-
ticket_stages: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<{
|
|
33
|
-
"feature-from-story": "feature-from-story";
|
|
34
|
-
"script-from-feature": "script-from-feature";
|
|
35
|
-
"diagnose-failure": "diagnose-failure";
|
|
36
|
-
}>>>;
|
|
37
|
-
prompt_versions: z.ZodObject<{
|
|
38
|
-
'feature-from-story': z.ZodString;
|
|
39
|
-
'script-from-feature': z.ZodString;
|
|
40
|
-
'diagnose-failure': z.ZodString;
|
|
41
|
-
'eval-rubric': z.ZodString;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
flags: z.ZodObject<{
|
|
44
|
-
force: z.ZodBoolean;
|
|
45
|
-
only_prompt: z.ZodNullable<z.ZodEnum<{
|
|
46
|
-
"feature-from-story": "feature-from-story";
|
|
47
|
-
"script-from-feature": "script-from-feature";
|
|
48
|
-
"diagnose-failure": "diagnose-failure";
|
|
49
|
-
}>>;
|
|
50
|
-
only_ticket: z.ZodNullable<z.ZodString>;
|
|
51
|
-
judge_only: z.ZodBoolean;
|
|
52
|
-
}, z.core.$strip>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
export type Manifest = z.infer<typeof ManifestSchema>;
|
|
55
|
-
export declare const DimensionSchema: z.ZodObject<{
|
|
56
|
-
name: z.ZodString;
|
|
57
|
-
verdict: z.ZodEnum<{
|
|
58
|
-
PASS: "PASS";
|
|
59
|
-
FAIL: "FAIL";
|
|
60
|
-
NA: "NA";
|
|
61
|
-
}>;
|
|
62
|
-
notes: z.ZodString;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
export type Dimension = z.infer<typeof DimensionSchema>;
|
|
65
|
-
export declare const JudgmentSchema: z.ZodObject<{
|
|
66
|
-
stage: z.ZodEnum<{
|
|
67
|
-
"feature-from-story": "feature-from-story";
|
|
68
|
-
"script-from-feature": "script-from-feature";
|
|
69
|
-
"diagnose-failure": "diagnose-failure";
|
|
70
|
-
}>;
|
|
71
|
-
ticket: z.ZodString;
|
|
72
|
-
dimensions: z.ZodArray<z.ZodObject<{
|
|
73
|
-
name: z.ZodString;
|
|
74
|
-
verdict: z.ZodEnum<{
|
|
75
|
-
PASS: "PASS";
|
|
76
|
-
FAIL: "FAIL";
|
|
77
|
-
NA: "NA";
|
|
78
|
-
}>;
|
|
79
|
-
notes: z.ZodString;
|
|
80
|
-
}, z.core.$strip>>;
|
|
81
|
-
}, z.core.$strip>;
|
|
82
|
-
export type Judgment = z.infer<typeof JudgmentSchema>;
|
|
83
|
-
export declare const JudgeScoresSchema: z.ZodObject<{
|
|
84
|
-
run_id: z.ZodString;
|
|
85
|
-
judgments: z.ZodArray<z.ZodObject<{
|
|
86
|
-
stage: z.ZodEnum<{
|
|
87
|
-
"feature-from-story": "feature-from-story";
|
|
88
|
-
"script-from-feature": "script-from-feature";
|
|
89
|
-
"diagnose-failure": "diagnose-failure";
|
|
90
|
-
}>;
|
|
91
|
-
ticket: z.ZodString;
|
|
92
|
-
dimensions: z.ZodArray<z.ZodObject<{
|
|
93
|
-
name: z.ZodString;
|
|
94
|
-
verdict: z.ZodEnum<{
|
|
95
|
-
PASS: "PASS";
|
|
96
|
-
FAIL: "FAIL";
|
|
97
|
-
NA: "NA";
|
|
98
|
-
}>;
|
|
99
|
-
notes: z.ZodString;
|
|
100
|
-
}, z.core.$strip>>;
|
|
101
|
-
}, z.core.$strip>>;
|
|
102
|
-
}, z.core.$strip>;
|
|
103
|
-
export type JudgeScores = z.infer<typeof JudgeScoresSchema>;
|
|
104
|
-
export declare const DeterministicEntrySchema: z.ZodObject<{
|
|
105
|
-
ticket: z.ZodString;
|
|
106
|
-
stage: z.ZodEnum<{
|
|
107
|
-
"feature-from-story": "feature-from-story";
|
|
108
|
-
"script-from-feature": "script-from-feature";
|
|
109
|
-
"diagnose-failure": "diagnose-failure";
|
|
110
|
-
}>;
|
|
111
|
-
passed: z.ZodBoolean;
|
|
112
|
-
checks: z.ZodArray<z.ZodString>;
|
|
113
|
-
error: z.ZodOptional<z.ZodString>;
|
|
114
|
-
}, z.core.$strip>;
|
|
115
|
-
export type DeterministicEntry = z.infer<typeof DeterministicEntrySchema>;
|
|
116
|
-
export declare const DeterministicScoresSchema: z.ZodObject<{
|
|
117
|
-
run_id: z.ZodString;
|
|
118
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
119
|
-
ticket: z.ZodString;
|
|
120
|
-
stage: z.ZodEnum<{
|
|
121
|
-
"feature-from-story": "feature-from-story";
|
|
122
|
-
"script-from-feature": "script-from-feature";
|
|
123
|
-
"diagnose-failure": "diagnose-failure";
|
|
124
|
-
}>;
|
|
125
|
-
passed: z.ZodBoolean;
|
|
126
|
-
checks: z.ZodArray<z.ZodString>;
|
|
127
|
-
error: z.ZodOptional<z.ZodString>;
|
|
128
|
-
}, z.core.$strip>>;
|
|
129
|
-
}, z.core.$strip>;
|
|
130
|
-
export type DeterministicScores = z.infer<typeof DeterministicScoresSchema>;
|
|
131
|
-
export declare const ResultSchema: z.ZodObject<{
|
|
132
|
-
ticket: z.ZodString;
|
|
133
|
-
stage: z.ZodEnum<{
|
|
134
|
-
"feature-from-story": "feature-from-story";
|
|
135
|
-
"script-from-feature": "script-from-feature";
|
|
136
|
-
"diagnose-failure": "diagnose-failure";
|
|
137
|
-
}>;
|
|
138
|
-
deterministic: z.ZodObject<{
|
|
139
|
-
passed: z.ZodBoolean;
|
|
140
|
-
checks: z.ZodArray<z.ZodString>;
|
|
141
|
-
error: z.ZodOptional<z.ZodString>;
|
|
142
|
-
}, z.core.$strip>;
|
|
143
|
-
judge: z.ZodNullable<z.ZodObject<{
|
|
144
|
-
passed: z.ZodBoolean;
|
|
145
|
-
dimensions: z.ZodArray<z.ZodObject<{
|
|
146
|
-
name: z.ZodString;
|
|
147
|
-
verdict: z.ZodEnum<{
|
|
148
|
-
PASS: "PASS";
|
|
149
|
-
FAIL: "FAIL";
|
|
150
|
-
NA: "NA";
|
|
151
|
-
}>;
|
|
152
|
-
notes: z.ZodString;
|
|
153
|
-
}, z.core.$strip>>;
|
|
154
|
-
score: z.ZodNumber;
|
|
155
|
-
}, z.core.$strip>>;
|
|
156
|
-
skipped: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
-
}, z.core.$strip>;
|
|
158
|
-
export type Result = z.infer<typeof ResultSchema>;
|
|
159
|
-
export declare const SummarySchema: z.ZodObject<{
|
|
160
|
-
run_id: z.ZodString;
|
|
161
|
-
git_sha: z.ZodString;
|
|
162
|
-
prompt_versions: z.ZodObject<{
|
|
163
|
-
'feature-from-story': z.ZodString;
|
|
164
|
-
'script-from-feature': z.ZodString;
|
|
165
|
-
'diagnose-failure': z.ZodString;
|
|
166
|
-
'eval-rubric': z.ZodString;
|
|
167
|
-
}, z.core.$strip>;
|
|
168
|
-
results: z.ZodArray<z.ZodObject<{
|
|
169
|
-
ticket: z.ZodString;
|
|
170
|
-
stage: z.ZodEnum<{
|
|
171
|
-
"feature-from-story": "feature-from-story";
|
|
172
|
-
"script-from-feature": "script-from-feature";
|
|
173
|
-
"diagnose-failure": "diagnose-failure";
|
|
174
|
-
}>;
|
|
175
|
-
deterministic: z.ZodObject<{
|
|
176
|
-
passed: z.ZodBoolean;
|
|
177
|
-
checks: z.ZodArray<z.ZodString>;
|
|
178
|
-
error: z.ZodOptional<z.ZodString>;
|
|
179
|
-
}, z.core.$strip>;
|
|
180
|
-
judge: z.ZodNullable<z.ZodObject<{
|
|
181
|
-
passed: z.ZodBoolean;
|
|
182
|
-
dimensions: z.ZodArray<z.ZodObject<{
|
|
183
|
-
name: z.ZodString;
|
|
184
|
-
verdict: z.ZodEnum<{
|
|
185
|
-
PASS: "PASS";
|
|
186
|
-
FAIL: "FAIL";
|
|
187
|
-
NA: "NA";
|
|
188
|
-
}>;
|
|
189
|
-
notes: z.ZodString;
|
|
190
|
-
}, z.core.$strip>>;
|
|
191
|
-
score: z.ZodNumber;
|
|
192
|
-
}, z.core.$strip>>;
|
|
193
|
-
skipped: z.ZodOptional<z.ZodBoolean>;
|
|
194
|
-
}, z.core.$strip>>;
|
|
195
|
-
overall: z.ZodObject<{
|
|
196
|
-
passed: z.ZodNumber;
|
|
197
|
-
failed: z.ZodNumber;
|
|
198
|
-
total: z.ZodNumber;
|
|
199
|
-
score: z.ZodNumber;
|
|
200
|
-
}, z.core.$strip>;
|
|
201
|
-
}, z.core.$strip>;
|
|
202
|
-
export type Summary = z.infer<typeof SummarySchema>;
|
|
203
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/eval/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/eval/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,MAAM,4EAA6E,CAAC;AACjG,eAAO,MAAM,WAAW;;;;EAAiB,CAAC;AAC1C,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,aAAa;;;;EAAiC,CAAC;AAC5D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,oBAAoB;;;;;iBAK/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAczB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,eAAe;;;;;;;;iBAI1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;iBAIzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;iBAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,wBAAwB;;;;;;;;;;iBAMnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;iBAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBvB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
package/dist/graph/classify.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { Classification, ScenarioNode, Snapshot, TicketNode } from './types';
|
|
2
|
-
export interface ClassifyInput {
|
|
3
|
-
scenarioId: string;
|
|
4
|
-
traceClassification: Classification;
|
|
5
|
-
}
|
|
6
|
-
export interface CandidateEvidence {
|
|
7
|
-
ticketId: string;
|
|
8
|
-
summary: string;
|
|
9
|
-
modifiedArea: string;
|
|
10
|
-
relevantAcRef?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ClassifyEvidence {
|
|
13
|
-
candidateTickets?: CandidateEvidence[];
|
|
14
|
-
reasoning?: string;
|
|
15
|
-
expectedByTest?: string;
|
|
16
|
-
actualInApp?: string;
|
|
17
|
-
proposedAction?: 'regenerate-scenario' | 'review-and-decide';
|
|
18
|
-
}
|
|
19
|
-
export interface ClassifyOutput {
|
|
20
|
-
classification: Classification;
|
|
21
|
-
confidence: number;
|
|
22
|
-
evidence?: ClassifyEvidence;
|
|
23
|
-
}
|
|
24
|
-
export interface OutdatedDecision {
|
|
25
|
-
classification: 'TEST_OUTDATED' | 'BUG' | 'AMBIGUOUS';
|
|
26
|
-
confidence: number;
|
|
27
|
-
evidence: {
|
|
28
|
-
reasoning: string;
|
|
29
|
-
expectedByTest?: string;
|
|
30
|
-
actualInApp?: string;
|
|
31
|
-
relevantAcRef?: string;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export type DecideOutdated = (args: {
|
|
35
|
-
scenario: ScenarioNode;
|
|
36
|
-
candidates: TicketNode[];
|
|
37
|
-
}) => Promise<OutdatedDecision>;
|
|
38
|
-
export declare function findCandidateTickets(graph: Snapshot, scenario: ScenarioNode): TicketNode[];
|
|
39
|
-
export declare function enhanceClassification(input: ClassifyInput, graph: Snapshot, decideOutdated: DecideOutdated, options?: {
|
|
40
|
-
threshold?: number;
|
|
41
|
-
}): Promise<ClassifyOutput>;
|
|
42
|
-
//# sourceMappingURL=classify.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../../src/graph/classify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAElF,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,cAAc,CAAC;CACrC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,qBAAqB,GAAG,mBAAmB,CAAC;CAC9D;AAED,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,eAAe,GAAG,KAAK,GAAG,WAAW,CAAC;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE;QACR,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACH;AAED,MAAM,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE;IAClC,QAAQ,EAAE,YAAY,CAAC;IACvB,UAAU,EAAE,UAAU,EAAE,CAAC;CAC1B,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAKhC,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,GAAG,UAAU,EAAE,CA2B1F;AAED,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,QAAQ,EACf,cAAc,EAAE,cAAc,EAC9B,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GACnC,OAAO,CAAC,cAAc,CAAC,CA4CzB"}
|
package/dist/graph/cost.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface LlmCallLog {
|
|
2
|
-
ts?: string;
|
|
3
|
-
skill: string;
|
|
4
|
-
prompt: string;
|
|
5
|
-
tokensIn: number;
|
|
6
|
-
tokensOut: number;
|
|
7
|
-
model: string;
|
|
8
|
-
costUsd: number;
|
|
9
|
-
}
|
|
10
|
-
export declare function logLlmCall(repoRoot: string, call: LlmCallLog): void;
|
|
11
|
-
export interface CostSummary {
|
|
12
|
-
totalCalls: number;
|
|
13
|
-
totalUsd: number;
|
|
14
|
-
bySkill: Record<string, {
|
|
15
|
-
calls: number;
|
|
16
|
-
usd: number;
|
|
17
|
-
}>;
|
|
18
|
-
windowDays: number;
|
|
19
|
-
}
|
|
20
|
-
export declare function summarizeCost(repoRoot: string, daysBack: number): CostSummary;
|
|
21
|
-
//# sourceMappingURL=cost.d.ts.map
|
package/dist/graph/cost.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cost.d.ts","sourceRoot":"","sources":["../../src/graph/cost.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,UAAU;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI,CAanE;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACxD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,WAAW,CAsB7E"}
|
package/dist/graph/enrich.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface EnrichOptions {
|
|
2
|
-
force?: boolean;
|
|
3
|
-
}
|
|
4
|
-
export interface EnrichResult {
|
|
5
|
-
ticketId: string;
|
|
6
|
-
similarCount: number;
|
|
7
|
-
enrichedAt: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function enrichTicket(repoRoot: string, ticketId: string, opts: EnrichOptions): Promise<EnrichResult>;
|
|
10
|
-
//# sourceMappingURL=enrich.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enrich.d.ts","sourceRoot":"","sources":["../../src/graph/enrich.ts"],"names":[],"mappings":"AAqBA,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAkBD,wBAAsB,YAAY,CAChC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,YAAY,CAAC,CAmDvB"}
|
package/dist/graph/impact.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { EdgeKind, Priority, Snapshot, TicketNode } from './types';
|
|
2
|
-
export interface ImpactEdge {
|
|
3
|
-
kind: EdgeKind;
|
|
4
|
-
from: string;
|
|
5
|
-
to: string;
|
|
6
|
-
confidence?: number;
|
|
7
|
-
source?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ImpactScenario {
|
|
10
|
-
scenarioId: string;
|
|
11
|
-
ticketId: string;
|
|
12
|
-
name: string;
|
|
13
|
-
priority: Priority;
|
|
14
|
-
edgePath: ImpactEdge[];
|
|
15
|
-
riskScore: number;
|
|
16
|
-
lastPassedAt?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface ImpactOpts {
|
|
19
|
-
depth: 1 | 2 | 3;
|
|
20
|
-
minPriority?: Priority;
|
|
21
|
-
}
|
|
22
|
-
export interface ImpactReport {
|
|
23
|
-
targetTicket: string;
|
|
24
|
-
modifiedAreas: string[];
|
|
25
|
-
scenarios: ImpactScenario[];
|
|
26
|
-
generatedAt: string;
|
|
27
|
-
}
|
|
28
|
-
export declare function riskScore(scenario: ImpactScenario, daysSinceLastPass: number): number;
|
|
29
|
-
export declare function walkImpact(graph: Snapshot, target: TicketNode, opts: ImpactOpts): ImpactScenario[];
|
|
30
|
-
export declare function renderImpactMarkdown(report: ImpactReport): string;
|
|
31
|
-
//# sourceMappingURL=impact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"impact.d.ts","sourceRoot":"","sources":["../../src/graph/impact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAExE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,WAAW,CAAC,EAAE,QAAQ,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB;AA4BD,wBAAgB,SAAS,CAAC,QAAQ,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAOrF;AAUD,wBAAgB,UAAU,CACxB,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,UAAU,GACf,cAAc,EAAE,CAkHlB;AAeD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAqDjE"}
|
package/dist/graph/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type { CandidateEvidence, ClassifyEvidence, ClassifyInput, ClassifyOutput, DecideOutdated, OutdatedDecision, } from './classify';
|
|
2
|
-
export { enhanceClassification, findCandidateTickets, } from './classify';
|
|
3
|
-
export type { CostSummary, LlmCallLog } from './cost';
|
|
4
|
-
export { logLlmCall, summarizeCost } from './cost';
|
|
5
|
-
export type { EnrichOptions, EnrichResult } from './enrich';
|
|
6
|
-
export { enrichTicket } from './enrich';
|
|
7
|
-
export type { ImpactEdge, ImpactOpts, ImpactReport, ImpactScenario, } from './impact';
|
|
8
|
-
export { renderImpactMarkdown, riskScore, walkImpact, } from './impact';
|
|
9
|
-
export { currentYyyyMm, graphPaths } from './paths';
|
|
10
|
-
export type { GraphStats, RenderHtmlInput, RenderOpts, VisEdge, VisNode } from './render';
|
|
11
|
-
export { renderHtml, transformForVisNetwork } from './render';
|
|
12
|
-
export { EventSchema, safeParseEvent } from './schema';
|
|
13
|
-
export { buildSimilarityPrompt } from './similarity';
|
|
14
|
-
export { appendEvents, computeEventsHash, deriveSnapshot, isSnapshotStale, loadAllEvents, loadSnapshot, writeSnapshot, } from './store';
|
|
15
|
-
export * from './types';
|
|
16
|
-
export { ulid } from './ulid';
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graph/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACnD,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,YAAY,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,cAAc,GACf,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,oBAAoB,EACpB,SAAS,EACT,UAAU,GACX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACpD,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,aAAa,EACb,YAAY,EACZ,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/graph/paths.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface GraphPaths {
|
|
2
|
-
eventsDir: string;
|
|
3
|
-
snapshotFile: string;
|
|
4
|
-
costLog: string;
|
|
5
|
-
eventsMonthDir(yyyyMm: string): string;
|
|
6
|
-
eventFile(ulid: string, skill: string, ticketId: string, yyyyMm: string): string;
|
|
7
|
-
}
|
|
8
|
-
export declare function graphPaths(repoRoot: string): GraphPaths;
|
|
9
|
-
export declare function currentYyyyMm(now?: Date): string;
|
|
10
|
-
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/graph/paths.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACvC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAClF;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAUvD;AAED,wBAAgB,aAAa,CAAC,GAAG,GAAE,IAAiB,GAAG,MAAM,CAI5D"}
|