@picteus/extension-sdk 0.7.0 → 0.7.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/picteus-ws-client/models/GenerationRecipe.d.ts +1 -8
- package/dist/picteus-ws-client/models/GenerationRecipe.js +0 -6
- package/dist/picteus-ws-client/models/index.d.ts +0 -1
- package/dist/picteus-ws-client/models/index.js +0 -1
- package/dist/picteusExtension.js +1 -2
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ export interface GenerationRecipe {
|
|
|
21
21
|
* @type {number}
|
|
22
22
|
* @memberof GenerationRecipe
|
|
23
23
|
*/
|
|
24
|
-
schemaVersion:
|
|
24
|
+
schemaVersion: number;
|
|
25
25
|
/**
|
|
26
26
|
* The identifier of the recipe instance
|
|
27
27
|
* @type {string}
|
|
@@ -65,13 +65,6 @@ export interface GenerationRecipe {
|
|
|
65
65
|
*/
|
|
66
66
|
prompt?: GenerationRecipePrompt;
|
|
67
67
|
}
|
|
68
|
-
/**
|
|
69
|
-
* @export
|
|
70
|
-
*/
|
|
71
|
-
export declare const GenerationRecipeSchemaVersionEnum: {
|
|
72
|
-
readonly NUMBER_1: 1;
|
|
73
|
-
};
|
|
74
|
-
export type GenerationRecipeSchemaVersionEnum = typeof GenerationRecipeSchemaVersionEnum[keyof typeof GenerationRecipeSchemaVersionEnum];
|
|
75
68
|
/**
|
|
76
69
|
* Check if a given object implements the GenerationRecipe interface.
|
|
77
70
|
*/
|
|
@@ -12,12 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GenerationRecipePromptFromJSON, GenerationRecipePromptToJSON, } from './GenerationRecipePrompt.js';
|
|
15
|
-
/**
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export const GenerationRecipeSchemaVersionEnum = {
|
|
19
|
-
NUMBER_1: 1
|
|
20
|
-
};
|
|
21
15
|
/**
|
|
22
16
|
* Check if a given object implements the GenerationRecipe interface.
|
|
23
17
|
*/
|
|
@@ -26,7 +26,6 @@ export * from './ExtensionStatus.js';
|
|
|
26
26
|
export * from './ExtensionsConfiguration.js';
|
|
27
27
|
export * from './GenerationRecipe.js';
|
|
28
28
|
export * from './GenerationRecipePrompt.js';
|
|
29
|
-
export * from './GenerationRecipeSchemaVersions.js';
|
|
30
29
|
export * from './Image.js';
|
|
31
30
|
export * from './ImageDimensions.js';
|
|
32
31
|
export * from './ImageDistance.js';
|
|
@@ -28,7 +28,6 @@ export * from './ExtensionStatus.js';
|
|
|
28
28
|
export * from './ExtensionsConfiguration.js';
|
|
29
29
|
export * from './GenerationRecipe.js';
|
|
30
30
|
export * from './GenerationRecipePrompt.js';
|
|
31
|
-
export * from './GenerationRecipeSchemaVersions.js';
|
|
32
31
|
export * from './Image.js';
|
|
33
32
|
export * from './ImageDimensions.js';
|
|
34
33
|
export * from './ImageDistance.js';
|
package/dist/picteusExtension.js
CHANGED
|
@@ -308,12 +308,11 @@ export class PicteusExtension {
|
|
|
308
308
|
// We want the process to continue even if an exception occurs
|
|
309
309
|
this.logger.error(`An error occurred during the handling of the event on channel '${channel}'`, error);
|
|
310
310
|
communicator.sendLog(`The handling of the event failed for the ${this.toString()}. Reason: '${error.message}'`, "error");
|
|
311
|
-
return;
|
|
312
311
|
}
|
|
313
312
|
finally {
|
|
314
313
|
sender.sendMessage(notificationsChannel, { acknowledgment: { success } });
|
|
315
314
|
}
|
|
316
|
-
if (isRegularEvent === true &&
|
|
315
|
+
if (isRegularEvent === true && onResult !== undefined) {
|
|
317
316
|
onResult(result);
|
|
318
317
|
}
|
|
319
318
|
});
|