@locusai/shared 0.4.5 → 0.4.9
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/common.d.ts +200 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/enums.d.ts +51 -0
- package/dist/enums.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +884 -3
- package/dist/models/activity.d.ts +947 -0
- package/dist/models/activity.d.ts.map +1 -0
- package/dist/models/agent.d.ts +21 -0
- package/dist/models/agent.d.ts.map +1 -0
- package/dist/models/auth.d.ts +374 -0
- package/dist/models/auth.d.ts.map +1 -0
- package/dist/models/ci.d.ts +76 -0
- package/dist/models/ci.d.ts.map +1 -0
- package/dist/models/doc-group.d.ts +144 -0
- package/dist/models/doc-group.d.ts.map +1 -0
- package/dist/models/doc.d.ts +251 -0
- package/dist/models/doc.d.ts.map +1 -0
- package/{src/models/index.ts → dist/models/index.d.ts} +1 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/invitation.d.ts +257 -0
- package/dist/models/invitation.d.ts.map +1 -0
- package/dist/models/organization.d.ts +357 -0
- package/dist/models/organization.d.ts.map +1 -0
- package/dist/models/sprint.d.ts +218 -0
- package/dist/models/sprint.d.ts.map +1 -0
- package/dist/models/task.d.ts +1208 -0
- package/dist/models/task.d.ts.map +1 -0
- package/dist/models/user.d.ts +101 -0
- package/dist/models/user.d.ts.map +1 -0
- package/dist/models/workspace.d.ts +319 -0
- package/dist/models/workspace.d.ts.map +1 -0
- package/package.json +11 -3
- package/CHANGELOG.md +0 -151
- package/dist/schemas.d.ts +0 -297
- package/dist/schemas.d.ts.map +0 -1
- package/dist/schemas.js +0 -129
- package/src/common.ts +0 -106
- package/src/enums.ts +0 -56
- package/src/index.ts +0 -3
- package/src/models/activity.ts +0 -237
- package/src/models/agent.ts +0 -13
- package/src/models/auth.ts +0 -188
- package/src/models/ci.ts +0 -21
- package/src/models/doc-group.ts +0 -42
- package/src/models/doc.ts +0 -66
- package/src/models/invitation.ts +0 -83
- package/src/models/organization.ts +0 -105
- package/src/models/sprint.ts +0 -71
- package/src/models/task.ts +0 -110
- package/src/models/user.ts +0 -35
- package/src/models/workspace.ts +0 -99
- package/tsconfig.json +0 -22
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/models/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAIlE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,UAAU;;;;;;;;;;;;IAQrB,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS3D,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;EA+E3D,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;QAnF9B,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqF3D,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { UserRole } from "../enums";
|
|
3
|
+
export declare const UserSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
6
|
+
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
7
|
+
} & {
|
|
8
|
+
email: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
role: z.ZodNativeEnum<typeof UserRole>;
|
|
12
|
+
orgId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
workspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
15
|
+
userRole: z.ZodOptional<z.ZodString>;
|
|
16
|
+
teamSize: z.ZodOptional<z.ZodString>;
|
|
17
|
+
onboardingCompleted: z.ZodDefault<z.ZodBoolean>;
|
|
18
|
+
emailVerified: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
id: string;
|
|
21
|
+
createdAt: number | Date;
|
|
22
|
+
updatedAt: number | Date;
|
|
23
|
+
name: string;
|
|
24
|
+
role: UserRole;
|
|
25
|
+
email: string;
|
|
26
|
+
onboardingCompleted: boolean;
|
|
27
|
+
emailVerified: boolean;
|
|
28
|
+
workspaceId?: string | null | undefined;
|
|
29
|
+
avatarUrl?: string | null | undefined;
|
|
30
|
+
orgId?: string | null | undefined;
|
|
31
|
+
companyName?: string | undefined;
|
|
32
|
+
userRole?: string | undefined;
|
|
33
|
+
teamSize?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
id: string;
|
|
36
|
+
createdAt: number | Date;
|
|
37
|
+
updatedAt: number | Date;
|
|
38
|
+
name: string;
|
|
39
|
+
role: UserRole;
|
|
40
|
+
email: string;
|
|
41
|
+
workspaceId?: string | null | undefined;
|
|
42
|
+
avatarUrl?: string | null | undefined;
|
|
43
|
+
orgId?: string | null | undefined;
|
|
44
|
+
companyName?: string | undefined;
|
|
45
|
+
userRole?: string | undefined;
|
|
46
|
+
teamSize?: string | undefined;
|
|
47
|
+
onboardingCompleted?: boolean | undefined;
|
|
48
|
+
emailVerified?: boolean | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
export type User = z.infer<typeof UserSchema>;
|
|
51
|
+
export declare const CreateUserSchema: z.ZodObject<{
|
|
52
|
+
email: z.ZodString;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
name: string;
|
|
56
|
+
email: string;
|
|
57
|
+
}, {
|
|
58
|
+
name: string;
|
|
59
|
+
email: string;
|
|
60
|
+
}>;
|
|
61
|
+
export type CreateUser = z.infer<typeof CreateUserSchema>;
|
|
62
|
+
export declare const UpdateUserSchema: z.ZodObject<Omit<{
|
|
63
|
+
id: z.ZodOptional<z.ZodString>;
|
|
64
|
+
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
65
|
+
updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
66
|
+
email: z.ZodOptional<z.ZodString>;
|
|
67
|
+
name: z.ZodOptional<z.ZodString>;
|
|
68
|
+
avatarUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
69
|
+
role: z.ZodOptional<z.ZodNativeEnum<typeof UserRole>>;
|
|
70
|
+
orgId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
71
|
+
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
72
|
+
companyName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
73
|
+
userRole: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
74
|
+
teamSize: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
75
|
+
onboardingCompleted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
76
|
+
emailVerified: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
77
|
+
}, "id" | "createdAt" | "updatedAt" | "email">, "strip", z.ZodTypeAny, {
|
|
78
|
+
name?: string | undefined;
|
|
79
|
+
role?: UserRole | undefined;
|
|
80
|
+
workspaceId?: string | null | undefined;
|
|
81
|
+
avatarUrl?: string | null | undefined;
|
|
82
|
+
orgId?: string | null | undefined;
|
|
83
|
+
companyName?: string | undefined;
|
|
84
|
+
userRole?: string | undefined;
|
|
85
|
+
teamSize?: string | undefined;
|
|
86
|
+
onboardingCompleted?: boolean | undefined;
|
|
87
|
+
emailVerified?: boolean | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
name?: string | undefined;
|
|
90
|
+
role?: UserRole | undefined;
|
|
91
|
+
workspaceId?: string | null | undefined;
|
|
92
|
+
avatarUrl?: string | null | undefined;
|
|
93
|
+
orgId?: string | null | undefined;
|
|
94
|
+
companyName?: string | undefined;
|
|
95
|
+
userRole?: string | undefined;
|
|
96
|
+
teamSize?: string | undefined;
|
|
97
|
+
onboardingCompleted?: boolean | undefined;
|
|
98
|
+
emailVerified?: boolean | undefined;
|
|
99
|
+
}>;
|
|
100
|
+
export type UpdateUser = z.infer<typeof UpdateUserSchema>;
|
|
101
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ChecklistItemSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
text: z.ZodString;
|
|
5
|
+
done: z.ZodBoolean;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
id: string;
|
|
8
|
+
text: string;
|
|
9
|
+
done: boolean;
|
|
10
|
+
}, {
|
|
11
|
+
id: string;
|
|
12
|
+
text: string;
|
|
13
|
+
done: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
export type ChecklistItem = z.infer<typeof ChecklistItemSchema>;
|
|
16
|
+
export declare const WorkspaceSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
19
|
+
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
20
|
+
} & {
|
|
21
|
+
orgId: z.ZodString;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
defaultChecklist: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
text: z.ZodString;
|
|
26
|
+
done: z.ZodBoolean;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
id: string;
|
|
29
|
+
text: string;
|
|
30
|
+
done: boolean;
|
|
31
|
+
}, {
|
|
32
|
+
id: string;
|
|
33
|
+
text: string;
|
|
34
|
+
done: boolean;
|
|
35
|
+
}>, "many">>>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
id: string;
|
|
38
|
+
createdAt: number | Date;
|
|
39
|
+
updatedAt: number | Date;
|
|
40
|
+
name: string;
|
|
41
|
+
orgId: string;
|
|
42
|
+
defaultChecklist?: {
|
|
43
|
+
id: string;
|
|
44
|
+
text: string;
|
|
45
|
+
done: boolean;
|
|
46
|
+
}[] | null | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
id: string;
|
|
49
|
+
createdAt: number | Date;
|
|
50
|
+
updatedAt: number | Date;
|
|
51
|
+
name: string;
|
|
52
|
+
orgId: string;
|
|
53
|
+
defaultChecklist?: {
|
|
54
|
+
id: string;
|
|
55
|
+
text: string;
|
|
56
|
+
done: boolean;
|
|
57
|
+
}[] | null | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
export type Workspace = z.infer<typeof WorkspaceSchema>;
|
|
60
|
+
export declare const CreateWorkspaceSchema: z.ZodObject<{
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
name: string;
|
|
64
|
+
}, {
|
|
65
|
+
name: string;
|
|
66
|
+
}>;
|
|
67
|
+
export type CreateWorkspace = z.infer<typeof CreateWorkspaceSchema>;
|
|
68
|
+
export declare const UpdateWorkspaceSchema: z.ZodObject<Omit<{
|
|
69
|
+
id: z.ZodOptional<z.ZodString>;
|
|
70
|
+
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
71
|
+
updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
72
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
name: z.ZodOptional<z.ZodString>;
|
|
74
|
+
defaultChecklist: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
75
|
+
id: z.ZodString;
|
|
76
|
+
text: z.ZodString;
|
|
77
|
+
done: z.ZodBoolean;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
id: string;
|
|
80
|
+
text: string;
|
|
81
|
+
done: boolean;
|
|
82
|
+
}, {
|
|
83
|
+
id: string;
|
|
84
|
+
text: string;
|
|
85
|
+
done: boolean;
|
|
86
|
+
}>, "many">>>>;
|
|
87
|
+
}, "id" | "createdAt" | "updatedAt" | "orgId">, "strip", z.ZodTypeAny, {
|
|
88
|
+
name?: string | undefined;
|
|
89
|
+
defaultChecklist?: {
|
|
90
|
+
id: string;
|
|
91
|
+
text: string;
|
|
92
|
+
done: boolean;
|
|
93
|
+
}[] | null | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
name?: string | undefined;
|
|
96
|
+
defaultChecklist?: {
|
|
97
|
+
id: string;
|
|
98
|
+
text: string;
|
|
99
|
+
done: boolean;
|
|
100
|
+
}[] | null | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
export type UpdateWorkspace = z.infer<typeof UpdateWorkspaceSchema>;
|
|
103
|
+
export declare const AddWorkspaceMemberSchema: z.ZodObject<{
|
|
104
|
+
userId: z.ZodString;
|
|
105
|
+
role: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
userId: string;
|
|
108
|
+
role?: string | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
userId: string;
|
|
111
|
+
role?: string | undefined;
|
|
112
|
+
}>;
|
|
113
|
+
export type AddWorkspaceMember = z.infer<typeof AddWorkspaceMemberSchema>;
|
|
114
|
+
export declare const WorkspaceIdParamSchema: z.ZodObject<{
|
|
115
|
+
workspaceId: z.ZodString;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
workspaceId: string;
|
|
118
|
+
}, {
|
|
119
|
+
workspaceId: string;
|
|
120
|
+
}>;
|
|
121
|
+
export type WorkspaceIdParam = z.infer<typeof WorkspaceIdParamSchema>;
|
|
122
|
+
export declare const WorkspaceAndUserParamSchema: z.ZodObject<{
|
|
123
|
+
workspaceId: z.ZodString;
|
|
124
|
+
userId: z.ZodString;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
userId: string;
|
|
127
|
+
workspaceId: string;
|
|
128
|
+
}, {
|
|
129
|
+
userId: string;
|
|
130
|
+
workspaceId: string;
|
|
131
|
+
}>;
|
|
132
|
+
export type WorkspaceAndUserParam = z.infer<typeof WorkspaceAndUserParamSchema>;
|
|
133
|
+
export declare const WorkspaceResponseSchema: z.ZodObject<{
|
|
134
|
+
workspace: z.ZodObject<{
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
137
|
+
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
138
|
+
} & {
|
|
139
|
+
orgId: z.ZodString;
|
|
140
|
+
name: z.ZodString;
|
|
141
|
+
defaultChecklist: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
142
|
+
id: z.ZodString;
|
|
143
|
+
text: z.ZodString;
|
|
144
|
+
done: z.ZodBoolean;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
id: string;
|
|
147
|
+
text: string;
|
|
148
|
+
done: boolean;
|
|
149
|
+
}, {
|
|
150
|
+
id: string;
|
|
151
|
+
text: string;
|
|
152
|
+
done: boolean;
|
|
153
|
+
}>, "many">>>;
|
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
|
155
|
+
id: string;
|
|
156
|
+
createdAt: number | Date;
|
|
157
|
+
updatedAt: number | Date;
|
|
158
|
+
name: string;
|
|
159
|
+
orgId: string;
|
|
160
|
+
defaultChecklist?: {
|
|
161
|
+
id: string;
|
|
162
|
+
text: string;
|
|
163
|
+
done: boolean;
|
|
164
|
+
}[] | null | undefined;
|
|
165
|
+
}, {
|
|
166
|
+
id: string;
|
|
167
|
+
createdAt: number | Date;
|
|
168
|
+
updatedAt: number | Date;
|
|
169
|
+
name: string;
|
|
170
|
+
orgId: string;
|
|
171
|
+
defaultChecklist?: {
|
|
172
|
+
id: string;
|
|
173
|
+
text: string;
|
|
174
|
+
done: boolean;
|
|
175
|
+
}[] | null | undefined;
|
|
176
|
+
}>;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
workspace: {
|
|
179
|
+
id: string;
|
|
180
|
+
createdAt: number | Date;
|
|
181
|
+
updatedAt: number | Date;
|
|
182
|
+
name: string;
|
|
183
|
+
orgId: string;
|
|
184
|
+
defaultChecklist?: {
|
|
185
|
+
id: string;
|
|
186
|
+
text: string;
|
|
187
|
+
done: boolean;
|
|
188
|
+
}[] | null | undefined;
|
|
189
|
+
};
|
|
190
|
+
}, {
|
|
191
|
+
workspace: {
|
|
192
|
+
id: string;
|
|
193
|
+
createdAt: number | Date;
|
|
194
|
+
updatedAt: number | Date;
|
|
195
|
+
name: string;
|
|
196
|
+
orgId: string;
|
|
197
|
+
defaultChecklist?: {
|
|
198
|
+
id: string;
|
|
199
|
+
text: string;
|
|
200
|
+
done: boolean;
|
|
201
|
+
}[] | null | undefined;
|
|
202
|
+
};
|
|
203
|
+
}>;
|
|
204
|
+
export type WorkspaceResponse = z.infer<typeof WorkspaceResponseSchema>;
|
|
205
|
+
export declare const WorkspacesResponseSchema: z.ZodObject<{
|
|
206
|
+
workspaces: z.ZodArray<z.ZodObject<{
|
|
207
|
+
id: z.ZodString;
|
|
208
|
+
createdAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
209
|
+
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
210
|
+
} & {
|
|
211
|
+
orgId: z.ZodString;
|
|
212
|
+
name: z.ZodString;
|
|
213
|
+
defaultChecklist: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
214
|
+
id: z.ZodString;
|
|
215
|
+
text: z.ZodString;
|
|
216
|
+
done: z.ZodBoolean;
|
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
|
218
|
+
id: string;
|
|
219
|
+
text: string;
|
|
220
|
+
done: boolean;
|
|
221
|
+
}, {
|
|
222
|
+
id: string;
|
|
223
|
+
text: string;
|
|
224
|
+
done: boolean;
|
|
225
|
+
}>, "many">>>;
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
|
+
id: string;
|
|
228
|
+
createdAt: number | Date;
|
|
229
|
+
updatedAt: number | Date;
|
|
230
|
+
name: string;
|
|
231
|
+
orgId: string;
|
|
232
|
+
defaultChecklist?: {
|
|
233
|
+
id: string;
|
|
234
|
+
text: string;
|
|
235
|
+
done: boolean;
|
|
236
|
+
}[] | null | undefined;
|
|
237
|
+
}, {
|
|
238
|
+
id: string;
|
|
239
|
+
createdAt: number | Date;
|
|
240
|
+
updatedAt: number | Date;
|
|
241
|
+
name: string;
|
|
242
|
+
orgId: string;
|
|
243
|
+
defaultChecklist?: {
|
|
244
|
+
id: string;
|
|
245
|
+
text: string;
|
|
246
|
+
done: boolean;
|
|
247
|
+
}[] | null | undefined;
|
|
248
|
+
}>, "many">;
|
|
249
|
+
}, "strip", z.ZodTypeAny, {
|
|
250
|
+
workspaces: {
|
|
251
|
+
id: string;
|
|
252
|
+
createdAt: number | Date;
|
|
253
|
+
updatedAt: number | Date;
|
|
254
|
+
name: string;
|
|
255
|
+
orgId: string;
|
|
256
|
+
defaultChecklist?: {
|
|
257
|
+
id: string;
|
|
258
|
+
text: string;
|
|
259
|
+
done: boolean;
|
|
260
|
+
}[] | null | undefined;
|
|
261
|
+
}[];
|
|
262
|
+
}, {
|
|
263
|
+
workspaces: {
|
|
264
|
+
id: string;
|
|
265
|
+
createdAt: number | Date;
|
|
266
|
+
updatedAt: number | Date;
|
|
267
|
+
name: string;
|
|
268
|
+
orgId: string;
|
|
269
|
+
defaultChecklist?: {
|
|
270
|
+
id: string;
|
|
271
|
+
text: string;
|
|
272
|
+
done: boolean;
|
|
273
|
+
}[] | null | undefined;
|
|
274
|
+
}[];
|
|
275
|
+
}>;
|
|
276
|
+
export type WorkspacesResponse = z.infer<typeof WorkspacesResponseSchema>;
|
|
277
|
+
export declare const WorkspaceStatsSchema: z.ZodObject<{
|
|
278
|
+
workspaceName: z.ZodString;
|
|
279
|
+
taskCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
280
|
+
memberCount: z.ZodNumber;
|
|
281
|
+
}, "strip", z.ZodTypeAny, {
|
|
282
|
+
workspaceName: string;
|
|
283
|
+
taskCounts: Record<string, number>;
|
|
284
|
+
memberCount: number;
|
|
285
|
+
}, {
|
|
286
|
+
workspaceName: string;
|
|
287
|
+
taskCounts: Record<string, number>;
|
|
288
|
+
memberCount: number;
|
|
289
|
+
}>;
|
|
290
|
+
export type WorkspaceStats = z.infer<typeof WorkspaceStatsSchema>;
|
|
291
|
+
export declare const WorkspaceStatsResponseSchema: z.ZodObject<{
|
|
292
|
+
stats: z.ZodObject<{
|
|
293
|
+
workspaceName: z.ZodString;
|
|
294
|
+
taskCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
295
|
+
memberCount: z.ZodNumber;
|
|
296
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
workspaceName: string;
|
|
298
|
+
taskCounts: Record<string, number>;
|
|
299
|
+
memberCount: number;
|
|
300
|
+
}, {
|
|
301
|
+
workspaceName: string;
|
|
302
|
+
taskCounts: Record<string, number>;
|
|
303
|
+
memberCount: number;
|
|
304
|
+
}>;
|
|
305
|
+
}, "strip", z.ZodTypeAny, {
|
|
306
|
+
stats: {
|
|
307
|
+
workspaceName: string;
|
|
308
|
+
taskCounts: Record<string, number>;
|
|
309
|
+
memberCount: number;
|
|
310
|
+
};
|
|
311
|
+
}, {
|
|
312
|
+
stats: {
|
|
313
|
+
workspaceName: string;
|
|
314
|
+
taskCounts: Record<string, number>;
|
|
315
|
+
memberCount: number;
|
|
316
|
+
};
|
|
317
|
+
}>;
|
|
318
|
+
export type WorkspaceStatsResponse = z.infer<typeof WorkspaceStatsResponseSchema>;
|
|
319
|
+
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/models/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC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;;;;;;;;EAEvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/shared",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"
|
|
5
|
-
"main": "src/index.ts",
|
|
3
|
+
"version": "0.4.9",
|
|
4
|
+
"source": "./src/index.ts",
|
|
5
|
+
"main": "./src/index.ts",
|
|
6
|
+
"types": "./src/index.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "bun build ./src/index.ts --outdir ./dist --target node --format cjs --external zod && tsc -p tsconfig.build.json --emitDeclarationOnly"
|
|
13
|
+
},
|
|
6
14
|
"dependencies": {
|
|
7
15
|
"zod": "^3.23.8"
|
|
8
16
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
# @locusai/shared
|
|
2
|
-
|
|
3
|
-
## 0.4.5
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Task execution workflow improvements
|
|
8
|
-
|
|
9
|
-
## 0.4.4
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- Ignore submodules
|
|
14
|
-
|
|
15
|
-
## 0.4.3
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- Modify task spawn options
|
|
20
|
-
|
|
21
|
-
## 0.4.2
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- Tree summarizer ignore list
|
|
26
|
-
|
|
27
|
-
## 0.4.1
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- Add colors to console
|
|
32
|
-
stdio configuration changes
|
|
33
|
-
|
|
34
|
-
## 0.4.0
|
|
35
|
-
|
|
36
|
-
### Minor Changes
|
|
37
|
-
|
|
38
|
-
- Tree summarizer logs optimized
|
|
39
|
-
|
|
40
|
-
## 0.3.4
|
|
41
|
-
|
|
42
|
-
### Patch Changes
|
|
43
|
-
|
|
44
|
-
- SDK package config
|
|
45
|
-
|
|
46
|
-
## 0.3.3
|
|
47
|
-
|
|
48
|
-
### Patch Changes
|
|
49
|
-
|
|
50
|
-
- Worker resolution
|
|
51
|
-
|
|
52
|
-
## 0.3.2
|
|
53
|
-
|
|
54
|
-
### Patch Changes
|
|
55
|
-
|
|
56
|
-
- Worker path resolution
|
|
57
|
-
|
|
58
|
-
## 0.3.1
|
|
59
|
-
|
|
60
|
-
### Patch Changes
|
|
61
|
-
|
|
62
|
-
- Fix worker resolution
|
|
63
|
-
|
|
64
|
-
## 0.3.0
|
|
65
|
-
|
|
66
|
-
### Minor Changes
|
|
67
|
-
|
|
68
|
-
- Default api base url
|
|
69
|
-
|
|
70
|
-
## 0.2.2
|
|
71
|
-
|
|
72
|
-
### Patch Changes
|
|
73
|
-
|
|
74
|
-
- Fix package builds
|
|
75
|
-
|
|
76
|
-
## 0.2.1
|
|
77
|
-
|
|
78
|
-
### Patch Changes
|
|
79
|
-
|
|
80
|
-
- Update app versions
|
|
81
|
-
|
|
82
|
-
## 0.2.0
|
|
83
|
-
|
|
84
|
-
### Minor Changes
|
|
85
|
-
|
|
86
|
-
- 52d35dd: # 🚀 The "Hybrid Agent" Release
|
|
87
|
-
|
|
88
|
-
This release introduces the new **Hybrid Architecture** for Locus, allowing autonomous agents to execute code locally while coordinating via the cloud.
|
|
89
|
-
|
|
90
|
-
## Major Highlights
|
|
91
|
-
|
|
92
|
-
### @locusai/cli
|
|
93
|
-
|
|
94
|
-
- **New `locus run` command**: Starts the local agent runtime that connects to the cloud.
|
|
95
|
-
- **Improved `locus index`**: Now creates a semantic map of your codebase for better agent context.
|
|
96
|
-
- **Removed MCP Server**: The standalone MCP server (`locus serve`) has been replaced by the direct agent runtime.
|
|
97
|
-
- **Terminal UI**: Enhanced CLI output with emoji status indicators and clear lifecycle phases.
|
|
98
|
-
|
|
99
|
-
### @locusai/sdk
|
|
100
|
-
|
|
101
|
-
- **Agent Orchestrator**: New core engine that manages the agent lifecycle (Dispatch -> Plan -> Execute -> Verify).
|
|
102
|
-
- **Sprint Mindmaps**: Agents now generate high-level technical plans for sprints before executing individual tasks.
|
|
103
|
-
- **Anthropic & Claude CLI Support**: Native integration with Claude for planning and coding.
|
|
104
|
-
- **Artifact Syncing**: Automatically syncs locally generated plans and docs to the Locus Dashboard.
|
|
105
|
-
|
|
106
|
-
### @locusai/shared
|
|
107
|
-
|
|
108
|
-
- Updated schemas to support the new `Agent` and `Orchestrator` models.
|
|
109
|
-
- Added `Sprint.mindmap` and `Sprint.mindmapUpdatedAt` fields.
|
|
110
|
-
|
|
111
|
-
## 0.1.7
|
|
112
|
-
|
|
113
|
-
### Patch Changes
|
|
114
|
-
|
|
115
|
-
- - Workflow improvements
|
|
116
|
-
|
|
117
|
-
## 0.1.6
|
|
118
|
-
|
|
119
|
-
### Patch Changes
|
|
120
|
-
|
|
121
|
-
- - Fix mcp paths and workflows
|
|
122
|
-
|
|
123
|
-
## 0.1.5
|
|
124
|
-
|
|
125
|
-
### Patch Changes
|
|
126
|
-
|
|
127
|
-
- - Fix workflow and mcp connection issues
|
|
128
|
-
|
|
129
|
-
## 0.1.4
|
|
130
|
-
|
|
131
|
-
### Patch Changes
|
|
132
|
-
|
|
133
|
-
- - Fix nextjs vulnerabilities
|
|
134
|
-
|
|
135
|
-
## 0.1.3
|
|
136
|
-
|
|
137
|
-
### Patch Changes
|
|
138
|
-
|
|
139
|
-
- - Fixed the cli throwing error after init
|
|
140
|
-
|
|
141
|
-
## 0.1.2
|
|
142
|
-
|
|
143
|
-
### Patch Changes
|
|
144
|
-
|
|
145
|
-
- Fix the documents cannot be created in a nested way inside categories
|
|
146
|
-
|
|
147
|
-
## 0.1.1
|
|
148
|
-
|
|
149
|
-
### Patch Changes
|
|
150
|
-
|
|
151
|
-
- No change
|