mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
fix(agent): allow package imports with missing plugins (#42913)
This commit is contained in:
1 parent
50589420b1
commit
0755abe47f
10 files changed
+68
-158
No files matched your search
@@ -76,13 +76,6 @@ export type Import = {
|
||||
warnings?: Array<DslImportWarning>
|
||||
}
|
||||
|
||||
export type RosterAgentPackageConflictResponse = {
|
||||
code: string
|
||||
leaked_dependencies?: Array<PluginDependency>
|
||||
message: string
|
||||
status?: 409
|
||||
}
|
||||
|
||||
export type CheckDependenciesResult = {
|
||||
leaked_dependencies?: Array<PluginDependency>
|
||||
}
|
||||
@@ -3576,7 +3569,7 @@ export type PostAppsImportsData = {
|
||||
export type PostAppsImportsErrors = {
|
||||
400: Import
|
||||
403: unknown
|
||||
409: RosterAgentPackageConflictResponse
|
||||
409: unknown
|
||||
413: unknown
|
||||
}
|
||||
|
||||
|
||||
@@ -2170,16 +2170,6 @@ export const zPluginDependency = z.object({
|
||||
value: z.union([zGithub, zMarketplace, zPackage]),
|
||||
})
|
||||
|
||||
/**
|
||||
* RosterAgentPackageConflictResponse
|
||||
*/
|
||||
export const zRosterAgentPackageConflictResponse = z.object({
|
||||
code: z.string(),
|
||||
leaked_dependencies: z.array(zPluginDependency).optional(),
|
||||
message: z.string(),
|
||||
status: z.literal(409).optional().default(409),
|
||||
})
|
||||
|
||||
/**
|
||||
* CheckDependenciesResult
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user