@locusai/shared 0.15.4 → 0.16.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/index.js +444 -563
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/models/autonomy.d.ts +0 -24
- package/dist/models/autonomy.d.ts.map +0 -1
- package/dist/models/suggestion.d.ts +0 -43
- package/dist/models/suggestion.d.ts.map +0 -1
package/dist/models/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./activity";
|
|
2
2
|
export * from "./agent";
|
|
3
3
|
export * from "./auth";
|
|
4
|
-
export * from "./autonomy";
|
|
5
4
|
export * from "./aws-instance";
|
|
6
5
|
export * from "./ci";
|
|
7
6
|
export * from "./doc";
|
|
@@ -9,7 +8,6 @@ export * from "./doc-group";
|
|
|
9
8
|
export * from "./invitation";
|
|
10
9
|
export * from "./organization";
|
|
11
10
|
export * from "./sprint";
|
|
12
|
-
export * from "./suggestion";
|
|
13
11
|
export * from "./task";
|
|
14
12
|
export * from "./user";
|
|
15
13
|
export * from "./workspace";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,MAAM,CAAC;AACrB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare enum RiskLevel {
|
|
3
|
-
LOW = "LOW",
|
|
4
|
-
HIGH = "HIGH"
|
|
5
|
-
}
|
|
6
|
-
export declare enum ChangeCategory {
|
|
7
|
-
FIX = "FIX",
|
|
8
|
-
REFACTOR = "REFACTOR",
|
|
9
|
-
STYLE = "STYLE",
|
|
10
|
-
DEPENDENCY = "DEPENDENCY",
|
|
11
|
-
FEATURE = "FEATURE",
|
|
12
|
-
ARCHITECTURE = "ARCHITECTURE",
|
|
13
|
-
DATABASE = "DATABASE",
|
|
14
|
-
AUTH = "AUTH",
|
|
15
|
-
API = "API"
|
|
16
|
-
}
|
|
17
|
-
export declare const AutonomyRuleSchema: z.ZodObject<{
|
|
18
|
-
category: z.ZodEnum<typeof ChangeCategory>;
|
|
19
|
-
riskLevel: z.ZodEnum<typeof RiskLevel>;
|
|
20
|
-
autoExecute: z.ZodBoolean;
|
|
21
|
-
}, z.core.$strip>;
|
|
22
|
-
export type AutonomyRule = z.infer<typeof AutonomyRuleSchema>;
|
|
23
|
-
export declare const DEFAULT_AUTONOMY_RULES: AutonomyRule[];
|
|
24
|
-
//# sourceMappingURL=autonomy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autonomy.d.ts","sourceRoot":"","sources":["../../src/models/autonomy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,cAAc;IACxB,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAMD,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D,eAAO,MAAM,sBAAsB,EAAE,YAAY,EA0ChD,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare enum SuggestionStatus {
|
|
3
|
-
NEW = "NEW",
|
|
4
|
-
NOTIFIED = "NOTIFIED",
|
|
5
|
-
ACTED_ON = "ACTED_ON",
|
|
6
|
-
SKIPPED = "SKIPPED",
|
|
7
|
-
EXPIRED = "EXPIRED"
|
|
8
|
-
}
|
|
9
|
-
export declare enum SuggestionType {
|
|
10
|
-
CODE_FIX = "CODE_FIX",
|
|
11
|
-
DEPENDENCY_UPDATE = "DEPENDENCY_UPDATE",
|
|
12
|
-
NEXT_STEP = "NEXT_STEP",
|
|
13
|
-
REFACTOR = "REFACTOR",
|
|
14
|
-
TEST_FIX = "TEST_FIX"
|
|
15
|
-
}
|
|
16
|
-
export declare const SUGGESTION_TTL_HOURS = 24;
|
|
17
|
-
export declare const SuggestionSchema: z.ZodObject<{
|
|
18
|
-
id: z.ZodString;
|
|
19
|
-
type: z.ZodEnum<typeof SuggestionType>;
|
|
20
|
-
status: z.ZodEnum<typeof SuggestionStatus>;
|
|
21
|
-
title: z.ZodString;
|
|
22
|
-
description: z.ZodString;
|
|
23
|
-
jobRunId: z.ZodOptional<z.ZodString>;
|
|
24
|
-
workspaceId: z.ZodString;
|
|
25
|
-
createdAt: z.ZodString;
|
|
26
|
-
expiresAt: z.ZodString;
|
|
27
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
export type Suggestion = z.infer<typeof SuggestionSchema>;
|
|
30
|
-
export declare const CreateSuggestionSchema: z.ZodObject<{
|
|
31
|
-
type: z.ZodEnum<typeof SuggestionType>;
|
|
32
|
-
title: z.ZodString;
|
|
33
|
-
description: z.ZodString;
|
|
34
|
-
jobRunId: z.ZodOptional<z.ZodString>;
|
|
35
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
36
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
export type CreateSuggestion = z.infer<typeof CreateSuggestionSchema>;
|
|
39
|
-
export declare const UpdateSuggestionStatusSchema: z.ZodObject<{
|
|
40
|
-
status: z.ZodEnum<typeof SuggestionStatus>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
export type UpdateSuggestionStatus = z.infer<typeof UpdateSuggestionStatusSchema>;
|
|
43
|
-
//# sourceMappingURL=suggestion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../src/models/suggestion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,oBAAY,gBAAgB;IAC1B,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,cAAc;IACxB,QAAQ,aAAa;IACrB,iBAAiB,sBAAsB;IACvC,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAMD,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAMvC,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAW3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAM1D,eAAO,MAAM,sBAAsB;;;;;;;iBAOjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
|