@indigoai-us/hq-cli 5.140.0 → 5.142.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 +25 -0
- package/assets/scaffold/core/scripts/checkpoint-stop-gate.sh +77 -2
- package/dist/command-catalog.generated.d.ts +6 -0
- package/dist/command-catalog.generated.js +8 -0
- package/dist/commands/bot-jobs.js +16 -3
- package/dist/commands/lanes.js +125 -26
- package/dist/lib/agent-kit/run/heartbeat.js +2 -2
- package/dist/lib/bot/run.js +2 -2
- package/dist/lib/heartbeat-identity.d.ts +1 -0
- package/dist/lib/heartbeat-identity.js +5 -0
- package/dist/lib/lanes/effort.d.ts +3 -2
- package/dist/lib/lanes/effort.js +5 -1
- package/dist/lib/lanes/errors.d.ts +1 -1
- package/dist/lib/lanes/index.d.ts +2 -0
- package/dist/lib/lanes/index.js +1 -0
- package/dist/lib/lanes/mesh-events.d.ts +4 -5
- package/dist/lib/lanes/mesh-events.js +14 -4
- package/dist/lib/lanes/profile.d.ts +48 -0
- package/dist/lib/lanes/profile.js +405 -0
- package/dist/lib/lanes/reconcile.js +25 -3
- package/dist/lib/lanes/registry.d.ts +3 -0
- package/dist/lib/lanes/registry.js +45 -1
- package/dist/lib/lanes/spawn.d.ts +14 -2
- package/dist/lib/lanes/spawn.js +238 -14
- package/dist/lib/lanes/store.js +10 -0
- package/dist/lib/lanes/types.d.ts +11 -1
- package/dist/lib/lanes/types.js +3 -3
- package/package.json +1 -1
|
@@ -242,6 +242,8 @@ export interface LaneRecord {
|
|
|
242
242
|
lane_id: string;
|
|
243
243
|
/** `null` is a core/personal lane (spec §6.2 / §10). Not an empty slug. */
|
|
244
244
|
company: LaneCompanyRef | null;
|
|
245
|
+
/** Explicit Work Mesh attribution for a personal lane; never inferred from cwd. */
|
|
246
|
+
mesh_company?: LaneCompanyRef;
|
|
245
247
|
project_id: string;
|
|
246
248
|
story_id: string;
|
|
247
249
|
thread_id?: string;
|
|
@@ -265,6 +267,12 @@ export interface LaneRecord {
|
|
|
265
267
|
worker_path?: string;
|
|
266
268
|
/** Package name when the worker's realpath is under core/packages. */
|
|
267
269
|
worker_pack?: string;
|
|
270
|
+
/** Personal worker profile id applied to every spawn. */
|
|
271
|
+
worker_profile?: string;
|
|
272
|
+
/** Content hash of the profile last applied to this lane. */
|
|
273
|
+
worker_profile_hash?: string;
|
|
274
|
+
/** Profile fields intentionally unsupported by the selected provider. */
|
|
275
|
+
worker_profile_ignored?: string[];
|
|
268
276
|
provider: LaneProvider;
|
|
269
277
|
account?: string;
|
|
270
278
|
/**
|
|
@@ -296,10 +304,12 @@ export interface LaneRecord {
|
|
|
296
304
|
last_envelope?: LastEnvelopeRef;
|
|
297
305
|
/** Effective model id recorded at create/spawn. Omitted when the provider chooses. */
|
|
298
306
|
model?: string;
|
|
307
|
+
/** Where the effective model came from; profile values are re-read on spawn. */
|
|
308
|
+
model_source?: "cli" | "profile" | "account" | "provider" | "none";
|
|
299
309
|
/** Effective effort level passed to the provider at the last spawn (effort.ts). */
|
|
300
310
|
effort?: string;
|
|
301
311
|
/** Where `effort` came from. `cli` pins it across later spawns. */
|
|
302
|
-
effort_source?: "cli" | "account" | "provider" | "default_rule" | "none";
|
|
312
|
+
effort_source?: "cli" | "profile" | "account" | "provider" | "default_rule" | "none";
|
|
303
313
|
/** Whether the last spawn used Codex fast mode, including false when disabled. */
|
|
304
314
|
fast_mode?: boolean;
|
|
305
315
|
/** Time of the last operator message accepted for this lane. Drives compaction. */
|
package/dist/lib/lanes/types.js
CHANGED
|
@@ -195,15 +195,15 @@ export const LANE_WRITERS = ["creator", "command", "watcher", "reconcile", "spaw
|
|
|
195
195
|
/** Field ownership at the durable-record mutation boundary (spec §10.1). */
|
|
196
196
|
export const LANE_FIELD_WRITERS = {
|
|
197
197
|
schema_version: ["creator"], lane_id: ["creator"], company: ["creator"],
|
|
198
|
-
project_id: ["command"], story_id: ["command"], thread_id: ["creator", "command"],
|
|
198
|
+
project_id: ["command"], story_id: ["command"], thread_id: ["creator", "command"], mesh_company: ["creator"],
|
|
199
199
|
depth: ["command"], senior: ["command"], senior_history: ["command"],
|
|
200
200
|
state: ["creator", "command", "watcher", "reconcile", "spawn"], queued_reason: ["creator", "command", "spawn", "reconcile"],
|
|
201
201
|
pickup_validation_pending: ["creator", "command", "spawn", "reconcile"],
|
|
202
202
|
pickup_validation_pending_since: ["creator", "command", "spawn", "reconcile"],
|
|
203
|
-
priority: ["command"], worker: ["creator"], worker_path: ["creator"], worker_pack: ["creator"],
|
|
203
|
+
priority: ["command"], worker: ["creator"], worker_path: ["creator"], worker_pack: ["creator"], worker_profile: ["creator"], worker_profile_hash: ["creator", "spawn"], worker_profile_ignored: ["creator", "spawn"],
|
|
204
204
|
provider: ["creator"], account: ["creator", "spawn", "command"], account_history: ["command"], pending_resume: ["command", "spawn"], host: ["creator"], origin_host: ["creator"], origin_host_source: ["creator"],
|
|
205
205
|
version: ["creator"], created_at: ["creator"], updated_at: ["creator"], attribution_history: ["command"],
|
|
206
|
-
last_envelope: ["watcher", "reconcile"], model: ["creator", "spawn", "command"], effort: ["creator", "spawn"], effort_source: ["creator", "spawn"], fast_mode: ["spawn"],
|
|
206
|
+
last_envelope: ["watcher", "reconcile"], model: ["creator", "spawn", "command"], model_source: ["creator", "spawn", "command"], effort: ["creator", "spawn"], effort_source: ["creator", "spawn"], fast_mode: ["spawn"],
|
|
207
207
|
last_message_at: ["command"], last_compaction: ["spawn"], story_complete: ["watcher", "reconcile"], story_complete_reason: ["watcher", "reconcile"], story_status: ["watcher", "reconcile"],
|
|
208
208
|
overdue: ["reconcile"], overdue_at: ["reconcile"], last_host_report_at: ["watcher", "spawn", "reconcile"], stalled: ["watcher"], stalled_at: ["watcher"], stalled_reason: ["watcher"],
|
|
209
209
|
admitted_reason: ["reconcile"], terminal_reason: ["command", "watcher", "spawn", "reconcile"], terminal_details: ["command", "spawn", "watcher", "reconcile"],
|