@cleocode/adapters 2026.5.108 → 2026.5.109

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/dist/index.js CHANGED
@@ -861,6 +861,189 @@ var init_credentials = __esm({
861
861
  }
862
862
  });
863
863
 
864
+ // packages/core/src/store/db-inventory.json
865
+ var db_inventory_default;
866
+ var init_db_inventory = __esm({
867
+ "packages/core/src/store/db-inventory.json"() {
868
+ db_inventory_default = {
869
+ $schemaNote: "SSoT machine-readable inventory of every CLEO SQLite database. Consumed by T10307 fleet survey, T10310 pragma drift, T10311 migration coverage, T10312 doctor integrity, T10320 cross-DB invariants. Owned by Saga T10281 SG-BRAIN-DB-RESILIENCE / Epic T10282 E1-DB-INVENTORY (task T10305). Amend together with ADR-068 charter; the CI drift gate (forthcoming under E1) compares entries to disk reality.",
870
+ $pathTokens: {
871
+ "<projectRoot>": "Resolved at runtime from CLEO_ROOT env var or process.cwd(). Substituted by SSoT helpers `getCleoProjectDir()` in packages/brain/src/cleo-home.ts.",
872
+ $XDG_DATA_HOME: "Resolved via env-paths through `getCleoHome()` in @cleocode/paths. Linux: ~/.local/share/cleo/, macOS: ~/Library/Application Support/cleo/."
873
+ },
874
+ entries: [
875
+ {
876
+ role: "tasks",
877
+ tier: "project",
878
+ filePathTemplate: "<projectRoot>/.cleo/tasks.db",
879
+ drizzleSchemaPath: "packages/core/src/store/tasks-schema.ts",
880
+ migrationsDir: "packages/core/migrations/drizzle-tasks/",
881
+ ownerPackage: "@cleocode/core",
882
+ openedVia: "openCleoDb('tasks', cwd)",
883
+ concurrency: "single-writer",
884
+ privacy: "local-only",
885
+ backupPath: ".cleo/backups/sqlite/tasks-YYYYMMDD-HHmmss.db",
886
+ documentedIn: "ADR-068 row 1; ADR-013 \xA79"
887
+ },
888
+ {
889
+ role: "brain",
890
+ tier: "project",
891
+ filePathTemplate: "<projectRoot>/.cleo/brain.db",
892
+ drizzleSchemaPath: "packages/core/src/store/memory-schema.ts",
893
+ migrationsDir: "packages/core/migrations/drizzle-brain/",
894
+ ownerPackage: "@cleocode/brain",
895
+ openedVia: "openCleoDb('brain', cwd)",
896
+ concurrency: "single-writer",
897
+ privacy: "local-only-pii",
898
+ backupPath: ".cleo/backups/sqlite/brain-YYYYMMDD-HHmmss.db",
899
+ documentedIn: "ADR-068 row 2; ADR-013 \xA79; audit \xA72 (P0 malformed 2026-05-23)"
900
+ },
901
+ {
902
+ role: "conduit",
903
+ tier: "project",
904
+ filePathTemplate: "<projectRoot>/.cleo/conduit.db",
905
+ drizzleSchemaPath: "packages/core/src/store/conduit-schema.ts",
906
+ migrationsDir: "packages/core/migrations/drizzle-conduit/",
907
+ ownerPackage: "@cleocode/core",
908
+ openedVia: "openCleoDb('conduit', cwd)",
909
+ concurrency: "single-writer",
910
+ privacy: "local-only",
911
+ backupPath: ".cleo/backups/sqlite/conduit-YYYYMMDD-HHmmss.db",
912
+ documentedIn: "ADR-068 row 3; ADR-037 (signaldock\u2192conduit split)"
913
+ },
914
+ {
915
+ role: "manifest",
916
+ tier: "derived",
917
+ filePathTemplate: "<projectRoot>/.cleo/blobs/manifest.db",
918
+ drizzleSchemaPath: "packages/core/src/store/llmtxt-blob-adapter.ts",
919
+ migrationsDir: null,
920
+ ownerPackage: "@cleocode/core",
921
+ openedVia: "CleoBlobStore via llmtxt/blob BlobFsAdapter (no openCleoDb role registered)",
922
+ concurrency: "single-writer",
923
+ privacy: "local-only",
924
+ backupPath: "rebuildable-from-blob-store",
925
+ documentedIn: "ADR-068 row 7 (derived); schema owned by llmtxt/blob BlobFsAdapter contract"
926
+ },
927
+ {
928
+ role: "llmtxt",
929
+ tier: "project",
930
+ filePathTemplate: "<projectRoot>/.cleo/llmtxt/llmtxt.db",
931
+ drizzleSchemaPath: null,
932
+ migrationsDir: null,
933
+ ownerPackage: "@cleocode/llmtxt-core",
934
+ openedVia: "openCleoDb('llmtxt', cwd) \u2014 RESERVED; opener throws 'not yet implemented' (see open-cleo-db.ts L138)",
935
+ concurrency: "single-writer",
936
+ privacy: "local-only-pii",
937
+ backupPath: ".cleo/backups/sqlite/llmtxt-YYYYMMDD-HHmmss.db",
938
+ documentedIn: "ADR-068 row 8 (reserved); audit \xA71.1 row 4 (live at .cleo/llmtxt/llmtxt.db)"
939
+ },
940
+ {
941
+ role: "nexus",
942
+ tier: "global",
943
+ filePathTemplate: "$XDG_DATA_HOME/cleo/nexus.db",
944
+ drizzleSchemaPath: "packages/core/src/store/nexus-schema.ts",
945
+ migrationsDir: "packages/core/migrations/drizzle-nexus/",
946
+ ownerPackage: "@cleocode/core",
947
+ openedVia: "openCleoDb('nexus')",
948
+ concurrency: "single-writer",
949
+ privacy: "local-only-pii",
950
+ backupPath: "$XDG_DATA_HOME/cleo/backups/sqlite/nexus-YYYYMMDD-HHmmss.db",
951
+ documentedIn: "ADR-068 row 5"
952
+ },
953
+ {
954
+ role: "signaldock-project",
955
+ tier: "project",
956
+ filePathTemplate: "<projectRoot>/.cleo/signaldock.db",
957
+ drizzleSchemaPath: "packages/core/src/store/signaldock-schema.ts",
958
+ migrationsDir: "packages/core/migrations/drizzle-signaldock/",
959
+ ownerPackage: "@cleocode/core",
960
+ openedVia: "HISTORICAL \u2014 project-tier signaldock.db was migrated into conduit.db post-T310/ADR-037. No live opener; charter row retained for migration provenance and legacy backup detection.",
961
+ concurrency: "single-writer",
962
+ privacy: "local-only",
963
+ backupPath: ".cleo/backups/sqlite/signaldock-project-YYYYMMDD-HHmmss.db",
964
+ documentedIn: "ADR-068 row 4 (stale \u2014 superseded by ADR-037); audit \xA71.1 (not in live project DB list)"
965
+ },
966
+ {
967
+ role: "signaldock-global",
968
+ tier: "global",
969
+ filePathTemplate: "$XDG_DATA_HOME/cleo/signaldock.db",
970
+ drizzleSchemaPath: "packages/core/src/store/signaldock-schema.ts",
971
+ migrationsDir: "packages/core/migrations/drizzle-signaldock/",
972
+ ownerPackage: "@cleocode/core",
973
+ openedVia: "openCleoDb('signaldock')",
974
+ concurrency: "single-writer",
975
+ privacy: "local-only",
976
+ backupPath: "$XDG_DATA_HOME/cleo/backups/sqlite/signaldock-global-YYYYMMDD-HHmmss.db",
977
+ documentedIn: "ADR-068 row 9; ADR-037 (post-split global identity registry)"
978
+ },
979
+ {
980
+ role: "telemetry",
981
+ tier: "global",
982
+ filePathTemplate: "$XDG_DATA_HOME/cleo/telemetry.db",
983
+ drizzleSchemaPath: "packages/core/src/telemetry/schema.ts",
984
+ migrationsDir: "packages/core/migrations/drizzle-telemetry/",
985
+ ownerPackage: "@cleocode/core",
986
+ openedVia: "@cleocode/core telemetry/sqlite.ts \u2014 lazy open on first event when opted-in; not yet registered as openCleoDb role",
987
+ concurrency: "single-writer",
988
+ privacy: "cloud-exportable-opt-in",
989
+ backupPath: "$XDG_DATA_HOME/cleo/backups/sqlite/telemetry-YYYYMMDD-HHmmss.db",
990
+ documentedIn: "ADR-068 row 6; T624"
991
+ },
992
+ {
993
+ role: "skills",
994
+ tier: "global",
995
+ filePathTemplate: "$XDG_DATA_HOME/cleo/skills.db",
996
+ drizzleSchemaPath: "packages/core/src/store/skills-schema.ts",
997
+ migrationsDir: "packages/core/migrations/drizzle-skills/",
998
+ ownerPackage: "@cleocode/core",
999
+ openedVia: "openCleoDb('skills')",
1000
+ concurrency: "single-writer",
1001
+ privacy: "local-only",
1002
+ backupPath: "$XDG_DATA_HOME/cleo/backups/sqlite/skills-YYYYMMDD-HHmmss.db",
1003
+ documentedIn: "T9651 (initial skills.db migration); audit \xA71.2 row 4 \u2014 NOT yet in ADR-068 table"
1004
+ },
1005
+ {
1006
+ role: "global-brain",
1007
+ tier: "global",
1008
+ filePathTemplate: "$XDG_DATA_HOME/cleo/brain.db",
1009
+ drizzleSchemaPath: "packages/core/src/store/memory-schema.ts",
1010
+ migrationsDir: "packages/core/migrations/drizzle-brain/",
1011
+ ownerPackage: "@cleocode/brain",
1012
+ openedVia: "UNREGISTERED \u2014 file exists on disk (audit \xA71.2 row 3) but no live opener. Provenance unclear; likely orphan from a getCleoHome()-vs-project-resolution path bug. Tracked for cleanup decision under T10282/T10307.",
1013
+ concurrency: "single-writer",
1014
+ privacy: "local-only-pii",
1015
+ backupPath: "$XDG_DATA_HOME/cleo/backups/sqlite/global-brain-YYYYMMDD-HHmmss.db",
1016
+ documentedIn: "audit \xA71.2 row 3 \u2014 NEW per saga T10281; not in ADR-068"
1017
+ },
1018
+ {
1019
+ role: "global-tasks",
1020
+ tier: "global",
1021
+ filePathTemplate: "$XDG_DATA_HOME/cleo/tasks.db",
1022
+ drizzleSchemaPath: "packages/core/src/store/tasks-schema.ts",
1023
+ migrationsDir: "packages/core/migrations/drizzle-tasks/",
1024
+ ownerPackage: "@cleocode/core",
1025
+ openedVia: "UNREGISTERED \u2014 file exists on disk (audit \xA71.2 row 5, 4 KB) but no live opener. Provenance unclear; likely orphan from a cwd-cascade bug (T9550 class). Tracked for cleanup decision under T10282/T10307.",
1026
+ concurrency: "single-writer",
1027
+ privacy: "local-only",
1028
+ backupPath: "$XDG_DATA_HOME/cleo/backups/sqlite/global-tasks-YYYYMMDD-HHmmss.db",
1029
+ documentedIn: "audit \xA71.2 row 5 \u2014 NEW per saga T10281; not in ADR-068"
1030
+ }
1031
+ ]
1032
+ };
1033
+ }
1034
+ });
1035
+
1036
+ // packages/contracts/src/db-inventory.ts
1037
+ var rawInventory, DB_INVENTORY;
1038
+ var init_db_inventory2 = __esm({
1039
+ "packages/contracts/src/db-inventory.ts"() {
1040
+ "use strict";
1041
+ init_db_inventory();
1042
+ rawInventory = db_inventory_default;
1043
+ DB_INVENTORY = rawInventory.entries;
1044
+ }
1045
+ });
1046
+
864
1047
  // packages/contracts/src/dispatch/identity.ts
865
1048
  var init_identity = __esm({
866
1049
  "packages/contracts/src/dispatch/identity.ts"() {
@@ -1783,6 +1966,7 @@ var init_src = __esm({
1783
1966
  init_changesets();
1784
1967
  init_cli_category();
1785
1968
  init_credentials();
1969
+ init_db_inventory2();
1786
1970
  init_identity();
1787
1971
  init_operations_registry();
1788
1972
  init_docs_taxonomy();