@cleocode/cleo 2026.4.101 → 2026.4.102

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.
@@ -0,0 +1,10 @@
1
+ -- T1118 L4a — Add owner_auth_token column to sessions table.
2
+ --
3
+ -- Stores the HMAC-SHA256 token derived from (session_id, owner_password)
4
+ -- when a session is started with `cleo session start --owner-auth`.
5
+ -- Override calls must present a matching --auth-token to pass L4a.
6
+ --
7
+ -- The column is nullable: sessions without --owner-auth have no token
8
+ -- and the L4a gate is skipped (backwards compatible).
9
+
10
+ ALTER TABLE `sessions` ADD COLUMN `owner_auth_token` TEXT;
@@ -0,0 +1,18 @@
1
+ -- T1126 — partial index for Tier-2 proposal rate-limiter COUNT query.
2
+ --
3
+ -- The proposal-rate-limiter.ts COUNT query filters on:
4
+ -- labels_json LIKE '%sentient-tier2%'
5
+ -- date(created_at) = date('now')
6
+ -- status IN ('proposed', 'pending', 'active', 'done')
7
+ --
8
+ -- Without this index the query scans the entire tasks table every tick.
9
+ -- The partial index covers only rows that could match the LIKE predicate,
10
+ -- making the daily-cap check O(log n) instead of O(n).
11
+ --
12
+ -- Drizzle ORM schema note: partial indexes with .where() are not yet
13
+ -- supported in the sqliteTable callback style used by tasks-schema.ts.
14
+ -- This migration is the canonical source of truth for the index.
15
+
16
+ CREATE INDEX IF NOT EXISTS `idx_tasks_sentient_proposals_today`
17
+ ON `tasks` (date(`created_at`))
18
+ WHERE `labels_json` LIKE '%sentient-tier2%';
@@ -0,0 +1,18 @@
1
+ -- T1126 — partial index for Tier-2 proposal rate-limiter COUNT query.
2
+ --
3
+ -- The proposal-rate-limiter.ts COUNT query filters on:
4
+ -- labels_json LIKE '%sentient-tier2%'
5
+ -- date(created_at) = date('now')
6
+ -- status IN ('proposed', 'pending', 'active', 'done')
7
+ --
8
+ -- Without this index the query scans the entire tasks table every tick.
9
+ -- The partial index covers only rows that could match the LIKE predicate,
10
+ -- making the daily-cap check O(log n) instead of O(n).
11
+ --
12
+ -- Drizzle ORM schema note: partial indexes with .where() are not yet
13
+ -- supported in the sqliteTable callback style used by tasks-schema.ts.
14
+ -- This migration is the canonical source of truth for the index.
15
+
16
+ CREATE INDEX IF NOT EXISTS `idx_tasks_sentient_proposals_today`
17
+ ON `tasks` (date(`created_at`))
18
+ WHERE `labels_json` LIKE '%sentient-tier2%';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleocode/cleo",
3
- "version": "2026.4.101",
3
+ "version": "2026.4.102",
4
4
  "description": "CLEO CLI — the assembled product consuming @cleocode/core",
5
5
  "type": "module",
6
6
  "main": "./dist/cli/index.js",
@@ -17,7 +17,7 @@
17
17
  "graphology": "^0.26.0",
18
18
  "graphology-communities-louvain": "^2.0.2",
19
19
  "graphology-types": "^0.24.8",
20
- "llmtxt": "^2026.4.6",
20
+ "llmtxt": "^2026.4.13",
21
21
  "node-cron": "^4.2.1",
22
22
  "tree-sitter": "0.21.1",
23
23
  "tree-sitter-c": "0.23.2",
@@ -29,14 +29,14 @@
29
29
  "tree-sitter-ruby": "^0.23.1",
30
30
  "tree-sitter-rust": "0.23.1",
31
31
  "tree-sitter-typescript": "^0.23.2",
32
- "@cleocode/contracts": "2026.4.101",
33
- "@cleocode/caamp": "2026.4.101",
34
- "@cleocode/lafs": "2026.4.101",
35
- "@cleocode/core": "2026.4.101",
36
- "@cleocode/cant": "2026.4.101",
37
- "@cleocode/nexus": "2026.4.101",
38
- "@cleocode/playbooks": "2026.4.101",
39
- "@cleocode/runtime": "2026.4.101"
32
+ "@cleocode/caamp": "2026.4.102",
33
+ "@cleocode/contracts": "2026.4.102",
34
+ "@cleocode/core": "2026.4.102",
35
+ "@cleocode/lafs": "2026.4.102",
36
+ "@cleocode/cant": "2026.4.102",
37
+ "@cleocode/nexus": "2026.4.102",
38
+ "@cleocode/playbooks": "2026.4.102",
39
+ "@cleocode/runtime": "2026.4.102"
40
40
  },
41
41
  "engines": {
42
42
  "node": ">=24.0.0"