@ampcode/plugin 0.0.0-20260712002807-g6f54f0d → 0.0.0-20260714002513-g312f7e5
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 +10 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -655,6 +655,16 @@ declare module '@ampcode/plugin' {
|
|
|
655
655
|
*/
|
|
656
656
|
export interface PluginExecutor {
|
|
657
657
|
readonly kind: PluginExecutorKind
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Keep the current orb awake until the returned subscription is unsubscribed or the plugin
|
|
661
|
+
* process exits. The lease renews automatically and consumes orb runtime credits.
|
|
662
|
+
*
|
|
663
|
+
* Rejects when the plugin is not running inside an Amp-managed orb. This is a best-effort
|
|
664
|
+
* lease: manual pauses, insufficient credits, and provider runtime limits may still pause the
|
|
665
|
+
* orb.
|
|
666
|
+
*/
|
|
667
|
+
keepAlive(): Promise<Subscription>
|
|
658
668
|
}
|
|
659
669
|
|
|
660
670
|
/**
|