Просмотр исходного кода

chore: 更新OpenWolf项目上下文文件

kinglee 2 дней назад
Родитель
Сommit
e12f4e0257
4 измененных файлов с 343 добавлено и 12 удалено
  1. 2 2
      .wolf/anatomy.md
  2. 20 3
      .wolf/hooks/_session.json
  3. 3 0
      .wolf/memory.md
  4. 318 7
      .wolf/token-ledger.json

+ 2 - 2
.wolf/anatomy.md

@@ -1,6 +1,6 @@
 # anatomy.md
 
-> Auto-maintained by OpenWolf. Last scanned: 2026-05-25T07:23:35.945Z
+> Auto-maintained by OpenWolf. Last scanned: 2026-05-25T07:31:48.123Z
 > Files: 552 tracked | Anatomy hits: 0 | Misses: 0
 
 ## ./
@@ -19,7 +19,7 @@
 - `docker-compose.yml` — Docker Compose services (~517 tok)
 - `Dockerfile` — Docker container definition (~232 tok)
 - `dump_pg_to_sql.py` — AND: sql_escape_string, dump (~1702 tok)
-- `entrypoint.sh` (~81 tok)
+- `entrypoint.sh` (~109 tok)
 - `fix_column.py` (~97 tok)
 - `fix_pg_sequences.py` — fix_sequences (~675 tok)
 - `init_db.py` — init_db (~386 tok)

+ 20 - 3
.wolf/hooks/_session.json

@@ -51,6 +51,16 @@
       "count": 1,
       "tokens": 3000,
       "first_read": "2026-05-25T07:21:08.906Z"
+    },
+    "D:/bigmodel/ai-LiaoWangweb-app/docker-compose.yml": {
+      "count": 1,
+      "tokens": 517,
+      "first_read": "2026-05-25T07:31:31.764Z"
+    },
+    "D:/bigmodel/ai-LiaoWangweb-app/entrypoint.sh": {
+      "count": 1,
+      "tokens": 81,
+      "first_read": "2026-05-25T07:31:39.716Z"
     }
   },
   "files_written": [
@@ -137,6 +147,12 @@
       "action": "create",
       "tokens": 230,
       "at": "2026-05-25T07:23:35.954Z"
+    },
+    {
+      "file": "D:/bigmodel/ai-LiaoWangweb-app/entrypoint.sh",
+      "action": "edit",
+      "tokens": 117,
+      "at": "2026-05-25T07:31:48.131Z"
     }
   ],
   "edit_counts": {
@@ -145,11 +161,12 @@
     "app/models.py": 1,
     "app/templates/ai_management.html": 3,
     "app/templates/ai_analysis.html": 3,
-    "migrate_add_is_default.py": 1
+    "migrate_add_is_default.py": 1,
+    "entrypoint.sh": 1
   },
-  "anatomy_hits": 5,
+  "anatomy_hits": 7,
   "anatomy_misses": 5,
   "repeated_reads_warned": 17,
   "cerebrum_warnings": 0,
-  "stop_count": 11
+  "stop_count": 13
 }

+ 3 - 0
.wolf/memory.md

@@ -113,3 +113,6 @@
 | 15:23 | Edited app/templates/ai_analysis.html | 4→5 lines | ~56 |
 | 15:23 | Created migrate_add_is_default.py | — | ~230 |
 | 15:23 | Session end: 14 writes across 6 files (ai_routes.py, mellow-frolicking-summit.md, models.py, ai_management.html, ai_analysis.html) | 10 reads | ~15877 tok |
+| 15:30 | Session end: 14 writes across 6 files (ai_routes.py, mellow-frolicking-summit.md, models.py, ai_management.html, ai_analysis.html) | 10 reads | ~15877 tok |
+| 15:31 | Edited entrypoint.sh | 9→10 lines | ~109 |
+| 15:32 | Session end: 15 writes across 7 files (ai_routes.py, mellow-frolicking-summit.md, models.py, ai_management.html, ai_analysis.html) | 12 reads | ~16592 tok |

+ 318 - 7
.wolf/token-ledger.json

@@ -2,14 +2,14 @@
   "version": 1,
   "created_at": "2026-05-21T16:43:25.726Z",
   "lifetime": {
-    "total_tokens_estimated": 586370,
-    "total_reads": 529,
-    "total_writes": 539,
+    "total_tokens_estimated": 618839,
+    "total_reads": 551,
+    "total_writes": 568,
     "total_sessions": 4,
-    "anatomy_hits": 286,
-    "anatomy_misses": 243,
-    "repeated_reads_blocked": 205,
-    "estimated_savings_vs_bare_cli": 462038
+    "anatomy_hits": 298,
+    "anatomy_misses": 253,
+    "repeated_reads_blocked": 239,
+    "estimated_savings_vs_bare_cli": 649020
   },
   "sessions": [
     {
@@ -6586,6 +6586,317 @@
         "repeated_reads_blocked": 17,
         "anatomy_lookups": 5
       }
+    },
+    {
+      "id": "session-2026-05-25-1426",
+      "started": "2026-05-25T06:26:19.780Z",
+      "ended": "2026-05-25T07:30:32.100Z",
+      "reads": [
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/routes/ai_routes.py",
+          "tokens_estimated": 9173,
+          "was_repeated": true,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/.env",
+          "tokens_estimated": 0,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/config.py",
+          "tokens_estimated": 561,
+          "was_repeated": true,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "C:/Users/liwei/.claude/projects/D--bigmodel-ai-LiaoWangweb-app/bc1d57e2-13fc-4a40-876d-26b76df755ad/tool-results/bz3vr3z8l.txt",
+          "tokens_estimated": 0,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_management.html",
+          "tokens_estimated": 0,
+          "was_repeated": true,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "/home/user/app/routes/ai_routes.py",
+          "tokens_estimated": 0,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/migrations/alembic.ini",
+          "tokens_estimated": 0,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_analysis.html",
+          "tokens_estimated": 0,
+          "was_repeated": true,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/__init__.py",
+          "tokens_estimated": 500,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/models.py",
+          "tokens_estimated": 3000,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        }
+      ],
+      "writes": [
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/routes/ai_routes.py",
+          "tokens_estimated": 148,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/routes/ai_routes.py",
+          "tokens_estimated": 124,
+          "action": "edit"
+        },
+        {
+          "file": "C:/Users/liwei/.claude/plans/mellow-frolicking-summit.md",
+          "tokens_estimated": 339,
+          "action": "create"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/models.py",
+          "tokens_estimated": 46,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/routes/ai_routes.py",
+          "tokens_estimated": 182,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/routes/ai_routes.py",
+          "tokens_estimated": 38,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/routes/ai_routes.py",
+          "tokens_estimated": 212,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_management.html",
+          "tokens_estimated": 161,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_management.html",
+          "tokens_estimated": 245,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_management.html",
+          "tokens_estimated": 227,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_analysis.html",
+          "tokens_estimated": 193,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_analysis.html",
+          "tokens_estimated": 438,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_analysis.html",
+          "tokens_estimated": 60,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/migrate_add_is_default.py",
+          "tokens_estimated": 230,
+          "action": "create"
+        }
+      ],
+      "totals": {
+        "input_tokens_estimated": 13234,
+        "output_tokens_estimated": 2643,
+        "reads_count": 10,
+        "writes_count": 14,
+        "repeated_reads_blocked": 17,
+        "anatomy_lookups": 5
+      }
+    },
+    {
+      "id": "session-2026-05-25-1426",
+      "started": "2026-05-25T06:26:19.780Z",
+      "ended": "2026-05-25T07:32:03.220Z",
+      "reads": [
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/routes/ai_routes.py",
+          "tokens_estimated": 9173,
+          "was_repeated": true,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/.env",
+          "tokens_estimated": 0,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/config.py",
+          "tokens_estimated": 561,
+          "was_repeated": true,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "C:/Users/liwei/.claude/projects/D--bigmodel-ai-LiaoWangweb-app/bc1d57e2-13fc-4a40-876d-26b76df755ad/tool-results/bz3vr3z8l.txt",
+          "tokens_estimated": 0,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_management.html",
+          "tokens_estimated": 0,
+          "was_repeated": true,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "/home/user/app/routes/ai_routes.py",
+          "tokens_estimated": 0,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/migrations/alembic.ini",
+          "tokens_estimated": 0,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_analysis.html",
+          "tokens_estimated": 0,
+          "was_repeated": true,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/__init__.py",
+          "tokens_estimated": 500,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/models.py",
+          "tokens_estimated": 3000,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/docker-compose.yml",
+          "tokens_estimated": 517,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/entrypoint.sh",
+          "tokens_estimated": 81,
+          "was_repeated": false,
+          "anatomy_had_description": false
+        }
+      ],
+      "writes": [
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/routes/ai_routes.py",
+          "tokens_estimated": 148,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/routes/ai_routes.py",
+          "tokens_estimated": 124,
+          "action": "edit"
+        },
+        {
+          "file": "C:/Users/liwei/.claude/plans/mellow-frolicking-summit.md",
+          "tokens_estimated": 339,
+          "action": "create"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/models.py",
+          "tokens_estimated": 46,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/routes/ai_routes.py",
+          "tokens_estimated": 182,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/routes/ai_routes.py",
+          "tokens_estimated": 38,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/routes/ai_routes.py",
+          "tokens_estimated": 212,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_management.html",
+          "tokens_estimated": 161,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_management.html",
+          "tokens_estimated": 245,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_management.html",
+          "tokens_estimated": 227,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_analysis.html",
+          "tokens_estimated": 193,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_analysis.html",
+          "tokens_estimated": 438,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/app/templates/ai_analysis.html",
+          "tokens_estimated": 60,
+          "action": "edit"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/migrate_add_is_default.py",
+          "tokens_estimated": 230,
+          "action": "create"
+        },
+        {
+          "file": "D:/bigmodel/ai-LiaoWangweb-app/entrypoint.sh",
+          "tokens_estimated": 117,
+          "action": "edit"
+        }
+      ],
+      "totals": {
+        "input_tokens_estimated": 13832,
+        "output_tokens_estimated": 2760,
+        "reads_count": 12,
+        "writes_count": 15,
+        "repeated_reads_blocked": 17,
+        "anatomy_lookups": 7
+      }
     }
   ],
   "daemon_usage": [],