@songsid/agend 2.1.10-beta.3 → 2.1.10-beta.4
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/fleet-manager.d.ts +1 -1
- package/dist/fleet-manager.js +1 -1
- package/dist/fleet-manager.js.map +1 -1
- package/dist/types.d.ts +11 -5
- package/dist/types.js +8 -2
- package/dist/types.js.map +1 -1
- package/dist/wake-coordinator.js +2 -2
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -78,7 +78,13 @@ export interface ChannelConfig {
|
|
|
78
78
|
}
|
|
79
79
|
export type DeliveryWorkerMode = "off" | "wake_only" | "on";
|
|
80
80
|
export declare const DELIVERY_WORKER_MODES: readonly DeliveryWorkerMode[];
|
|
81
|
-
|
|
81
|
+
export declare const DEFAULT_DELIVERY_WORKER_MODE: DeliveryWorkerMode;
|
|
82
|
+
/**
|
|
83
|
+
* The delivery_worker mode for `name`: instance override, then fleet default,
|
|
84
|
+
* then `wake_only` (#1129). The built-in default used to be `off`, which
|
|
85
|
+
* never woke a target paused across a fleet restart for queued work: the
|
|
86
|
+
* delegated task waited until someone ran /wake. An explicit `off` is kept.
|
|
87
|
+
*/
|
|
82
88
|
export declare function resolveDeliveryWorkerMode(config: {
|
|
83
89
|
defaults?: {
|
|
84
90
|
delivery_worker?: unknown;
|
|
@@ -106,10 +112,10 @@ export interface InstanceConfig {
|
|
|
106
112
|
warm_overflow?: number;
|
|
107
113
|
/**
|
|
108
114
|
* Phase 2 delivery owner for this target (docs/design/phase2-submit-contract.md):
|
|
109
|
-
* `off`
|
|
110
|
-
* coordinator (2b), `on` hands claim/submit to the per-target
|
|
111
|
-
* Read from `defaults.delivery_worker` with a per-instance
|
|
112
|
-
*
|
|
115
|
+
* `off` keeps the outbox pump alone, `wake_only` (default since #1129) adds
|
|
116
|
+
* the wake coordinator (2b), `on` hands claim/submit to the per-target
|
|
117
|
+
* worker (2c). Read from `defaults.delivery_worker` with a per-instance
|
|
118
|
+
* override.
|
|
113
119
|
*/
|
|
114
120
|
delivery_worker?: DeliveryWorkerMode;
|
|
115
121
|
/** Agent display name (e.g. "Kuro", "Luna") — chosen by the agent itself */
|
package/dist/types.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export const DELIVERY_WORKER_MODES = ["off", "wake_only", "on"];
|
|
2
|
-
|
|
2
|
+
export const DEFAULT_DELIVERY_WORKER_MODE = "wake_only";
|
|
3
|
+
/**
|
|
4
|
+
* The delivery_worker mode for `name`: instance override, then fleet default,
|
|
5
|
+
* then `wake_only` (#1129). The built-in default used to be `off`, which
|
|
6
|
+
* never woke a target paused across a fleet restart for queued work: the
|
|
7
|
+
* delegated task waited until someone ran /wake. An explicit `off` is kept.
|
|
8
|
+
*/
|
|
3
9
|
export function resolveDeliveryWorkerMode(config, name) {
|
|
4
10
|
for (const value of [config?.instances?.[name]?.delivery_worker, config?.defaults?.delivery_worker]) {
|
|
5
11
|
if (typeof value === "string" && DELIVERY_WORKER_MODES.includes(value))
|
|
6
12
|
return value;
|
|
7
13
|
}
|
|
8
|
-
return
|
|
14
|
+
return DEFAULT_DELIVERY_WORKER_MODE;
|
|
9
15
|
}
|
|
10
16
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAgFA,MAAM,CAAC,MAAM,qBAAqB,GAAkC,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAgFA,MAAM,CAAC,MAAM,qBAAqB,GAAkC,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AAC/F,MAAM,CAAC,MAAM,4BAA4B,GAAuB,WAAW,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CACvC,MAAkI,EAClI,IAAY;IAEZ,KAAK,MAAM,KAAK,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,IAAI,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC,EAAE,CAAC;QACpG,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAK,qBAA2C,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,OAAO,KAA2B,CAAC;IACpI,CAAC;IACD,OAAO,4BAA4B,CAAC;AACtC,CAAC"}
|
package/dist/wake-coordinator.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* only claims targets that are awake. Nothing here writes a pane or claims a
|
|
11
11
|
* row.
|
|
12
12
|
*
|
|
13
|
-
* Active
|
|
14
|
-
* `off`
|
|
13
|
+
* Active for targets whose `delivery_worker` is `wake_only` (the default
|
|
14
|
+
* since #1129) or `on`; an explicit `off` leaves every path as it was.
|
|
15
15
|
*/
|
|
16
16
|
import { t } from "./locale.js";
|
|
17
17
|
/** Row kinds that never warrant waking a target. Empty: every current kind asks for action (§1.2). */
|