@vellumai/plugin-api 0.10.3-dev.202606301343.ebf8f0b → 0.10.3-dev.202606301559.bafb7ae
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/index.d.ts +21 -11
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1009,7 +1009,6 @@ declare const ConversationErrorEventSchema: z.ZodObject<{
|
|
|
1009
1009
|
CONVERSATION_ABORTED: "CONVERSATION_ABORTED";
|
|
1010
1010
|
CONVERSATION_PROCESSING_FAILED: "CONVERSATION_PROCESSING_FAILED";
|
|
1011
1011
|
DISK_SPACE_CRITICAL: "DISK_SPACE_CRITICAL";
|
|
1012
|
-
REGENERATE_FAILED: "REGENERATE_FAILED";
|
|
1013
1012
|
UNKNOWN: "UNKNOWN";
|
|
1014
1013
|
}>;
|
|
1015
1014
|
userMessage: z.ZodString;
|
|
@@ -1120,7 +1119,6 @@ declare const ConversationNoticeEventSchema: z.ZodObject<{
|
|
|
1120
1119
|
CONVERSATION_ABORTED: "CONVERSATION_ABORTED";
|
|
1121
1120
|
CONVERSATION_PROCESSING_FAILED: "CONVERSATION_PROCESSING_FAILED";
|
|
1122
1121
|
DISK_SPACE_CRITICAL: "DISK_SPACE_CRITICAL";
|
|
1123
|
-
REGENERATE_FAILED: "REGENERATE_FAILED";
|
|
1124
1122
|
UNKNOWN: "UNKNOWN";
|
|
1125
1123
|
}>;
|
|
1126
1124
|
userMessage: z.ZodString;
|
|
@@ -3646,22 +3644,34 @@ declare interface ShowPlatformLogin {
|
|
|
3646
3644
|
}
|
|
3647
3645
|
|
|
3648
3646
|
/**
|
|
3649
|
-
* Context passed to the `shutdown` hook
|
|
3650
|
-
*
|
|
3651
|
-
*
|
|
3652
|
-
*
|
|
3653
|
-
*
|
|
3647
|
+
* Context passed to the `shutdown` hook. Kept intentionally narrower than
|
|
3648
|
+
* {@link InitContext} — teardown paths only need to know which assistant
|
|
3649
|
+
* version they're shutting down against (e.g. for version-conditional cleanup
|
|
3650
|
+
* of state files written by a previous boot) and {@link ShutdownReason why}
|
|
3651
|
+
* they're being torn down (so a plugin can, e.g., delete its state on
|
|
3652
|
+
* `uninstall` but preserve it across a plain `shutdown`).
|
|
3654
3653
|
*
|
|
3655
|
-
*
|
|
3656
|
-
*
|
|
3657
|
-
*
|
|
3658
|
-
* tear-down without keeping their own copy.
|
|
3654
|
+
* The `assistantVersion` field mirrors the init context's so plugins that stash
|
|
3655
|
+
* a version stamp at init can compare against the same name on tear-down
|
|
3656
|
+
* without keeping their own copy.
|
|
3659
3657
|
*/
|
|
3660
3658
|
export declare interface ShutdownContext {
|
|
3661
3659
|
/** Assistant semver for compatibility checks inside the plugin. */
|
|
3662
3660
|
assistantVersion: string;
|
|
3661
|
+
/** Why the plugin is shutting down. */
|
|
3662
|
+
reason: ShutdownReason;
|
|
3663
3663
|
}
|
|
3664
3664
|
|
|
3665
|
+
/**
|
|
3666
|
+
* Why a plugin's `shutdown` hook is firing.
|
|
3667
|
+
*
|
|
3668
|
+
* - `shutdown` — the daemon is tearing down (process exit).
|
|
3669
|
+
* - `uninstall` — the plugin's directory was removed at runtime.
|
|
3670
|
+
* - `disable` — the plugin was disabled at runtime (e.g. a `.disabled`
|
|
3671
|
+
* sentinel was added, or a feature flag turned it off).
|
|
3672
|
+
*/
|
|
3673
|
+
declare type ShutdownReason = "shutdown" | "uninstall" | "disable";
|
|
3674
|
+
|
|
3665
3675
|
declare interface SignBundlePayloadRequest {
|
|
3666
3676
|
type: "sign_bundle_payload";
|
|
3667
3677
|
requestId: string;
|
package/package.json
CHANGED