@indigoai-us/hq-cli 5.187.0 → 5.188.0
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/CHANGELOG.md +15 -0
- package/dist/command-catalog.generated.d.ts +43 -0
- package/dist/command-catalog.generated.js +56 -0
- package/dist/commands/lanes.d.ts +2 -0
- package/dist/commands/lanes.js +633 -10
- package/dist/lib/lanes/claude-account-balance.d.ts +82 -0
- package/dist/lib/lanes/claude-account-balance.js +253 -0
- package/dist/lib/lanes/host-capacity.d.ts +19 -0
- package/dist/lib/lanes/host-capacity.js +68 -0
- package/dist/lib/lanes/index.d.ts +1 -1
- package/dist/lib/lanes/outpost-dispatch.d.ts +9 -0
- package/dist/lib/lanes/outpost-dispatch.js +19 -0
- package/dist/lib/lanes/store.js +86 -0
- package/dist/lib/lanes/types.d.ts +48 -0
- package/dist/lib/lanes/types.js +1 -1
- package/package.json +1 -1
|
@@ -230,6 +230,52 @@ export interface LaneHost {
|
|
|
230
230
|
kind: HostKind;
|
|
231
231
|
id: string;
|
|
232
232
|
}
|
|
233
|
+
export interface LaneAccountSelectionHostCount {
|
|
234
|
+
host: LaneHost;
|
|
235
|
+
enabled: boolean;
|
|
236
|
+
logged_in: boolean | null;
|
|
237
|
+
live_lanes: number | null;
|
|
238
|
+
lane_counts: {
|
|
239
|
+
running: number | null;
|
|
240
|
+
queued: number | null;
|
|
241
|
+
awaiting_input: number | null;
|
|
242
|
+
};
|
|
243
|
+
count_source: "lane_list" | "capacity" | "capacity_partial" | "unavailable";
|
|
244
|
+
}
|
|
245
|
+
export interface LaneAccountSelectionConsidered {
|
|
246
|
+
account: string;
|
|
247
|
+
eligible: boolean;
|
|
248
|
+
ineligible_reason?: string;
|
|
249
|
+
live_lanes: number;
|
|
250
|
+
counts_complete: boolean;
|
|
251
|
+
usage: {
|
|
252
|
+
five_hour_percent?: number;
|
|
253
|
+
weekly_percent?: number;
|
|
254
|
+
sampled_at?: string;
|
|
255
|
+
} | null;
|
|
256
|
+
hosts: LaneAccountSelectionHostCount[];
|
|
257
|
+
}
|
|
258
|
+
/** Decision evidence saved with a Claude lane when account balancing is active. */
|
|
259
|
+
export interface LaneAccountSelection {
|
|
260
|
+
account: string;
|
|
261
|
+
signal: "usage" | "lane_count" | "explicit";
|
|
262
|
+
reason: "least_loaded" | "explicit";
|
|
263
|
+
target_host: LaneHost;
|
|
264
|
+
selected_at: string;
|
|
265
|
+
considered: LaneAccountSelectionConsidered[];
|
|
266
|
+
skipped_accounts: Array<{
|
|
267
|
+
account: string;
|
|
268
|
+
host: LaneHost;
|
|
269
|
+
reason: string;
|
|
270
|
+
}>;
|
|
271
|
+
unavailable_hosts: Array<{
|
|
272
|
+
host: LaneHost | {
|
|
273
|
+
kind: "unknown";
|
|
274
|
+
id: "unknown";
|
|
275
|
+
};
|
|
276
|
+
reason: string;
|
|
277
|
+
}>;
|
|
278
|
+
}
|
|
233
279
|
export interface SeniorHistoryEntry {
|
|
234
280
|
from: SeniorRef;
|
|
235
281
|
to: SeniorRef;
|
|
@@ -309,6 +355,8 @@ export interface LaneRecord {
|
|
|
309
355
|
worker_policy_delivery?: "hook" | "prompt";
|
|
310
356
|
provider: LaneProvider;
|
|
311
357
|
account?: string;
|
|
358
|
+
/** Recent Claude account-selection evidence for a create or automatic resume move. */
|
|
359
|
+
account_selection?: LaneAccountSelection;
|
|
312
360
|
/** Eligible accounts for a queue entry created without an explicit account. */
|
|
313
361
|
admission_accounts?: string[];
|
|
314
362
|
/**
|
package/dist/lib/lanes/types.js
CHANGED
|
@@ -224,7 +224,7 @@ export const LANE_FIELD_WRITERS = {
|
|
|
224
224
|
pickup_validation_pending: ["creator", "command", "spawn", "reconcile"],
|
|
225
225
|
pickup_validation_pending_since: ["creator", "command", "spawn", "reconcile"],
|
|
226
226
|
priority: ["command"], worker: ["creator", "command"], worker_path: ["creator", "command"], worker_pack: ["creator", "command"], worker_profile: ["creator", "command"], worker_profile_hash: ["creator", "command", "spawn"], worker_profile_ignored: ["creator", "command", "spawn"], worker_policy_delivery: ["command", "spawn"],
|
|
227
|
-
provider: ["creator"], account: ["creator", "spawn", "command", "watcher", "reconcile"], admission_accounts: ["creator", "command"], account_history: ["command", "spawn", "watcher", "reconcile"], pending_resume: ["command", "spawn", "watcher", "reconcile"], placement_default: ["creator"], host: ["creator", "command"], origin_host: ["creator"], origin_host_source: ["creator"],
|
|
227
|
+
provider: ["creator"], account: ["creator", "spawn", "command", "watcher", "reconcile"], account_selection: ["creator", "command"], admission_accounts: ["creator", "command"], account_history: ["command", "spawn", "watcher", "reconcile"], pending_resume: ["command", "spawn", "watcher", "reconcile"], placement_default: ["creator"], host: ["creator", "command"], origin_host: ["creator"], origin_host_source: ["creator"],
|
|
228
228
|
version: ["creator"], created_at: ["creator"], updated_at: ["creator"], attribution_history: ["command"],
|
|
229
229
|
last_envelope: ["watcher", "reconcile"], model: ["creator", "spawn", "command"], model_source: ["creator", "spawn", "command"], effort: ["creator", "spawn"], effort_source: ["creator", "spawn"], fast_mode: ["spawn"],
|
|
230
230
|
last_message_at: ["command"], last_compaction: ["spawn"], story_complete: ["watcher", "reconcile"], story_complete_reason: ["watcher", "reconcile"], story_status: ["watcher", "reconcile"],
|