@lmctl-ai/lmctl 0.1.55 → 0.1.57

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.
@@ -649,3 +649,41 @@ CREATE TABLE IF NOT EXISTS agent_inflight (
649
649
  holder_pid INTEGER,
650
650
  PRIMARY KEY(receiver_teamfile, receiver_alias)
651
651
  );
652
+
653
+ -- v40: tracked background delegation substrate. Inert until the later
654
+ -- chat --detach / jobs slices wire it up.
655
+ CREATE TABLE IF NOT EXISTS delegation_job (
656
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
657
+ teamfile TEXT NOT NULL,
658
+ alias TEXT NOT NULL,
659
+ from_identity TEXT NOT NULL,
660
+ root_teamfile TEXT NOT NULL,
661
+ prompt TEXT NOT NULL,
662
+ status TEXT NOT NULL CHECK(status IN ('pending', 'running', 'done', 'error', 'busy', 'cancelled')),
663
+ created_at TEXT NOT NULL,
664
+ started_at TEXT,
665
+ ended_at TEXT,
666
+ locked_by TEXT,
667
+ worker_pid INTEGER,
668
+ locked_until TEXT,
669
+ result_text TEXT,
670
+ error TEXT,
671
+ team_chat_log_id INTEGER REFERENCES team_chat_log(id),
672
+ attempt_count INTEGER NOT NULL DEFAULT 0
673
+ );
674
+ CREATE INDEX IF NOT EXISTS idx_delegation_job_status_created
675
+ ON delegation_job(status, created_at DESC);
676
+ CREATE INDEX IF NOT EXISTS idx_delegation_job_team_created
677
+ ON delegation_job(teamfile, created_at DESC);
678
+ CREATE INDEX IF NOT EXISTS idx_delegation_job_from_created
679
+ ON delegation_job(from_identity, created_at DESC);
680
+
681
+ CREATE TABLE IF NOT EXISTS delegation_event (
682
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
683
+ delegation_job_id INTEGER NOT NULL REFERENCES delegation_job(id) ON DELETE CASCADE,
684
+ ts TEXT NOT NULL,
685
+ kind TEXT NOT NULL,
686
+ payload TEXT NOT NULL
687
+ );
688
+ CREATE INDEX IF NOT EXISTS idx_delegation_event_job_id
689
+ ON delegation_event(delegation_job_id, id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lmctl-ai/lmctl",
3
- "version": "0.1.55",
3
+ "version": "0.1.57",
4
4
  "description": "A provider-agnostic control plane for teams of AI coding agents — across providers, with independent review and durable memory.",
5
5
  "type": "module",
6
6
  "homepage": "https://lmctl.com",