@opum-ai/lore 0.1.0 → 0.1.1

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.
Files changed (90) hide show
  1. package/README.md +33 -22
  2. package/bin/lore.cjs +35 -7
  3. package/package.json +17 -17
  4. package/src/adapters/backlog.ts +0 -1084
  5. package/src/adapters/git.ts +0 -221
  6. package/src/cli.ts +0 -667
  7. package/src/commands/agent.ts +0 -301
  8. package/src/commands/agents.ts +0 -302
  9. package/src/commands/args.ts +0 -209
  10. package/src/commands/changed.ts +0 -70
  11. package/src/commands/check.ts +0 -1031
  12. package/src/commands/codex-bridge.ts +0 -49
  13. package/src/commands/concurrency.ts +0 -48
  14. package/src/commands/context.ts +0 -292
  15. package/src/commands/discover.ts +0 -89
  16. package/src/commands/explorer.ts +0 -253
  17. package/src/commands/export.ts +0 -93
  18. package/src/commands/fswrite.ts +0 -928
  19. package/src/commands/graph.ts +0 -291
  20. package/src/commands/help.ts +0 -151
  21. package/src/commands/impact.ts +0 -59
  22. package/src/commands/init.ts +0 -583
  23. package/src/commands/instructions.ts +0 -91
  24. package/src/commands/link.ts +0 -929
  25. package/src/commands/new.ts +0 -476
  26. package/src/commands/orphans.ts +0 -457
  27. package/src/commands/path.ts +0 -67
  28. package/src/commands/provenance.ts +0 -68
  29. package/src/commands/query.ts +0 -312
  30. package/src/commands/reconcile-shared.ts +0 -280
  31. package/src/commands/rename.ts +0 -585
  32. package/src/commands/replace.ts +0 -320
  33. package/src/commands/scaffold.ts +0 -346
  34. package/src/commands/schema.ts +0 -293
  35. package/src/commands/snapshot.ts +0 -130
  36. package/src/commands/supersede.ts +0 -400
  37. package/src/commands/sync.ts +0 -371
  38. package/src/commands/tasks.ts +0 -271
  39. package/src/commands/traversal.ts +0 -151
  40. package/src/commands/validate.ts +0 -226
  41. package/src/config.ts +0 -598
  42. package/src/core/agent-bridge.ts +0 -287
  43. package/src/core/agent-context.ts +0 -498
  44. package/src/core/agent-profile.ts +0 -447
  45. package/src/core/bundle.ts +0 -893
  46. package/src/core/check.ts +0 -853
  47. package/src/core/codex-bridge.ts +0 -100
  48. package/src/core/concept.ts +0 -597
  49. package/src/core/consumer-scaffold.ts +0 -433
  50. package/src/core/context.ts +0 -271
  51. package/src/core/explorer-contract.ts +0 -441
  52. package/src/core/explorer-qualification.ts +0 -58
  53. package/src/core/explorer.ts +0 -518
  54. package/src/core/finding.ts +0 -31
  55. package/src/core/graph.ts +0 -201
  56. package/src/core/indexes.ts +0 -436
  57. package/src/core/instructions.ts +0 -209
  58. package/src/core/ladybug-driver.ts +0 -1795
  59. package/src/core/ladybug-lifecycle.ts +0 -1178
  60. package/src/core/ladybug-native.ts +0 -95
  61. package/src/core/ladybug-source.ts +0 -667
  62. package/src/core/links.ts +0 -681
  63. package/src/core/log.ts +0 -253
  64. package/src/core/managed-block.ts +0 -540
  65. package/src/core/manifest.ts +0 -718
  66. package/src/core/order.ts +0 -13
  67. package/src/core/profile.ts +0 -1007
  68. package/src/core/projection.ts +0 -195
  69. package/src/core/query.ts +0 -542
  70. package/src/core/reconcile.ts +0 -236
  71. package/src/core/replace.ts +0 -419
  72. package/src/core/retrieval.ts +0 -213
  73. package/src/core/rewrite.ts +0 -940
  74. package/src/core/scaffold.ts +0 -255
  75. package/src/core/schema.ts +0 -366
  76. package/src/core/snapshot-runtime.ts +0 -52
  77. package/src/core/snapshot-store.ts +0 -287
  78. package/src/core/snapshot.ts +0 -711
  79. package/src/core/template.ts +0 -429
  80. package/src/core/traversal.ts +0 -487
  81. package/src/core/validate.ts +0 -517
  82. package/src/core/workspace-contract.ts +0 -473
  83. package/src/core/workspace-projection.ts +0 -365
  84. package/src/core/workspace-retrieval.ts +0 -196
  85. package/src/core/workspace-source.ts +0 -174
  86. package/src/errors.ts +0 -697
  87. package/src/meta.ts +0 -7
  88. package/src/output.ts +0 -589
  89. package/src/scripts/upstream-backlog-watch.ts +0 -288
  90. package/src/state.ts +0 -390
@@ -1,95 +0,0 @@
1
- /**
2
- * Lazy native boundary for the repository-local Ladybug projection.
3
- *
4
- * This module is safe to import on every supported Lore platform. It contains
5
- * only the exact compatibility facts selected by LCLI-283.1.2 and a dynamic
6
- * loader for the private driver. The @ladybugdb/core addon is evaluated only
7
- * when {@link loadLadybugNativeDriver} is called on a supported host.
8
- */
9
-
10
- import { LoreError } from "../errors";
11
- import type { BundleGraph } from "./bundle";
12
- import type { LadybugProjectionSource } from "./ladybug-source";
13
- import type { QueryOptions, QueryResult } from "./query";
14
- import type { TraversalSourceRecords } from "./traversal";
15
-
16
- /** Exact package/runtime version frozen into ladybug-projection/1 fingerprints. */
17
- export const EXPECTED_LADYBUG_VERSION = "0.19.0";
18
- /** Exact storage version reported by @ladybugdb/core 0.19.0. */
19
- export const EXPECTED_LADYBUG_STORAGE_VERSION = "43";
20
-
21
- /** Structural facts proven by a complete read-only native verification. */
22
- export interface LadybugDatabaseVerification {
23
- readonly repositoryScopeKey: string;
24
- readonly snapshotKey: string;
25
- readonly sourceFingerprint: string;
26
- readonly exportDigest: string;
27
- readonly taskSnapshotDigest: string;
28
- readonly sourceRecordsDigest: string;
29
- readonly recordKeysDigest: string;
30
- readonly recordCount: number;
31
- readonly conceptCount: number;
32
- readonly taskCount: number;
33
- readonly authoredEdgeCount: number;
34
- }
35
-
36
- /** Repository-contained indexed operations over one verified immutable generation. */
37
- export interface LadybugIndexedReader {
38
- /** Read promoted graph metadata and edges; load one body only when context needs it. */
39
- readBundleGraph(bodyId?: string): Promise<BundleGraph>;
40
- /** Read one body through the concept's primary-key lookup. */
41
- readConceptBody(id: string): Promise<string | undefined>;
42
- /** Read exact typed authored records for storage-neutral bounded traversal. */
43
- readTraversalRecords?(): Promise<TraversalSourceRecords>;
44
- /** Execute Lore's exact deterministic BM25/filter contract through persisted postings. */
45
- query(options: QueryOptions): Promise<QueryResult>;
46
- /** Release the native connection and database handle. Safe to call more than once. */
47
- close(): Promise<void>;
48
- }
49
-
50
- /** The private capabilities exposed by the dynamically loaded native driver. */
51
- export interface LadybugNativeDriver {
52
- readonly LADYBUG_VERSION: string;
53
- readonly LADYBUG_STORAGE_VERSION: string;
54
- buildLadybugDatabase(databasePath: string, source: LadybugProjectionSource): Promise<void>;
55
- verifyLadybugDatabase(databasePath: string, source: LadybugProjectionSource): Promise<LadybugDatabaseVerification>;
56
- verifyLadybugDatabaseMetadata(
57
- databasePath: string,
58
- expected: LadybugDatabaseVerification,
59
- ): Promise<LadybugDatabaseVerification>;
60
- readLadybugBundleGraph(databasePath: string, source: LadybugProjectionSource): Promise<BundleGraph>;
61
- openLadybugIndexedReader(databasePath: string, source: LadybugProjectionSource): LadybugIndexedReader;
62
- }
63
-
64
- export type LadybugNativeLoader = () => Promise<LadybugNativeDriver>;
65
-
66
- /** Share one dynamic import/native-module evaluation across one retrieval operation. */
67
- export function memoizeLadybugNativeLoader(loader: LadybugNativeLoader): LadybugNativeLoader {
68
- let pending: Promise<LadybugNativeDriver> | undefined;
69
- return () => (pending ??= loader());
70
- }
71
-
72
- /**
73
- * Bun 1.2.23 segfaults while evaluating the Ladybug addon on Windows. Native
74
- * Windows qualification belongs to LCLI-283.1.4, so indexed routing must select
75
- * the reference fallback before invoking the dynamic loader there.
76
- */
77
- export function supportsLadybugNative(platform: NodeJS.Platform = process.platform): boolean {
78
- return platform !== "win32";
79
- }
80
-
81
- /** Dynamically evaluate and verify the exact private native driver. */
82
- export async function loadLadybugNativeDriver(): Promise<LadybugNativeDriver> {
83
- const driver = await import("./ladybug-driver");
84
- if (
85
- driver.LADYBUG_VERSION !== EXPECTED_LADYBUG_VERSION ||
86
- driver.LADYBUG_STORAGE_VERSION !== EXPECTED_LADYBUG_STORAGE_VERSION
87
- ) {
88
- throw new LoreError(
89
- "validation",
90
- "installed Ladybug runtime does not match the projection compatibility contract",
91
- "reinstall the exact locked dependencies before rebuilding the disposable projection",
92
- );
93
- }
94
- return driver;
95
- }