Skip to content

Commit 41d6f1a

Browse files
committed
docs(site): align with LoopStore collapse and rename (D-11)
Updates loopengine.dev pages that referenced the pre-rename LoopStorageAdapter / createMemoryLoopStorageAdapter / storage option key. Pages already in post-rename state (packages/runtime.mdx, packages/sdk.mdx, packages/adapter-memory.mdx, packages/ adapter-postgres.mdx, running-loops/adapters.mdx, running-loops/ create-loop-system.mdx, getting-started/installation.mdx, llms.txt) become correct without edits via the source rename — no churn. Updates in this commit: - components/home/CodeTabs.tsx: homepage Run + Events snippets switch to memoryStore() and store option key; syntax highlighter symbol list updated - content/docs/integrations/index.mdx: prose reference LoopStorageAdapter -> LoopStore - content/docs/integrations/http.mdx: two prose references LoopStorageAdapter -> LoopStore - content/docs/integrations/postgres.mdx: prose reference LoopStorageAdapter -> LoopStore - content/docs/examples/postgres-persistence.mdx: code sample updated (memoryStore factory, postgresStore factory, store option key); trailing prose reference LoopStorageAdapter -> LoopStore Verification - npx tsc --noEmit: clean - pnpm lint: clean - pnpm build: 12/12 pages prerendered, no MDX parse errors Surface-Reconciliation-Id: SR-002
1 parent a1667ca commit 41d6f1a

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

components/home/CodeTabs.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ const checked = validateLoopDefinition(definition)
5050
if (!checked.valid) {
5151
throw new Error(checked.errors.map((e) => e.message).join('; '))
5252
}`,
53-
run: `import { createMemoryLoopStorageAdapter } from '@loop-engine/adapter-memory'
53+
run: `import { memoryStore } from '@loop-engine/adapter-memory'
5454
import { createLoopSystem } from '@loop-engine/sdk'
5555
5656
// assumes \`definition\` from the Define tab
5757
const { engine } = await createLoopSystem({
5858
loops: [definition],
59-
storage: createMemoryLoopStorageAdapter()
59+
store: memoryStore()
6060
})
6161
6262
await engine.start({
@@ -74,7 +74,7 @@ await engine.transition({
7474
events: `// assumes \`createLoopSystem\` returned \`eventBus\` alongside \`engine\`
7575
const { engine, eventBus } = await createLoopSystem({
7676
loops: [definition],
77-
storage: createMemoryLoopStorageAdapter()
77+
store: memoryStore()
7878
})
7979
8080
eventBus.subscribe(async (event) => {
@@ -99,7 +99,7 @@ function renderHighlighted(code: string) {
9999
'<span class="kw">$1</span>'
100100
);
101101
return withKeywords.replace(
102-
/\b(parseLoopYaml|validateLoopDefinition|createLoopSystem|createMemoryLoopStorageAdapter)\b/g,
102+
/\b(parseLoopYaml|validateLoopDefinition|createLoopSystem|memoryStore)\b/g,
103103
'<span class="type">$1</span>'
104104
);
105105
}

content/docs/examples/postgres-persistence.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ QUERY STATE ---> READ INSTANCE + READ HISTORY
3838

3939
```ts
4040
import { createLoopSystem } from "@loop-engine/sdk";
41-
import { createPostgresStore, createSchema } from "@loop-engine/adapter-postgres";
42-
import { createMemoryLoopStorageAdapter } from "@loop-engine/adapter-memory";
41+
import { postgresStore, createSchema } from "@loop-engine/adapter-postgres";
42+
import { memoryStore } from "@loop-engine/adapter-memory";
4343
import { Pool } from "pg";
4444

4545
// Version A: in-memory (default local dev)
46-
const memoryStore = createMemoryLoopStorageAdapter();
47-
const memoryRuntime = await createLoopSystem({ loops: [definition], store: memoryStore });
46+
const memStore = memoryStore();
47+
const memoryRuntime = await createLoopSystem({ loops: [definition], store: memStore });
4848

4949
// Version B: postgres (durable)
5050
const pool = new Pool({ connectionString: process.env.DATABASE_URL });
5151
await createSchema(pool);
52-
const pgStore = createPostgresStore(pool);
52+
const pgStore = postgresStore(pool);
5353
const postgresRuntime = await createLoopSystem({ loops: [definition], store: pgStore });
5454

5555
// Loop definitions + transition calls are unchanged across adapters.
@@ -79,5 +79,5 @@ pnpm dev
7979
```
8080

8181
<Callout variant="info" title="Adapter pattern">
82-
The same contract pattern extends to `adapter-kafka` and `adapter-http`. Any backend implementing `LoopStorageAdapter` can be used.
82+
The same contract pattern extends to `adapter-kafka` and `adapter-http`. Any backend implementing `LoopStore` can be used.
8383
</Callout>

content/docs/integrations/http.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ section: Integrations
1111

1212
## What it does
1313

14-
Implements `LoopStorageAdapter` over HTTP. Any REST service that speaks the adapter protocol can back loop state storage. This is useful for integrating with existing services or remote storage planes.
14+
Implements `LoopStore` over HTTP. Any REST service that speaks the adapter protocol can back loop state storage. This is useful for integrating with existing services or remote storage planes.
1515

1616
## Adapter protocol
1717

@@ -51,7 +51,7 @@ Expected backend endpoints:
5151

5252
## Note
5353

54-
If your backend is in the same process, implementing `LoopStorageAdapter` directly is usually simpler than standing up the HTTP protocol.
54+
If your backend is in the same process, implementing `LoopStore` directly is usually simpler than standing up the HTTP protocol.
5555

5656
## Configuration reference
5757

content/docs/integrations/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Connect Loop Engine to commerce platforms and LLM commerce data layers.
136136

137137
## Building an integration?
138138

139-
The Loop Engine adapter interface is open and documented. Any backend that implements `LoopStorageAdapter` is valid.
139+
The Loop Engine adapter interface is open and documented. Any backend that implements `LoopStore` is valid.
140140

141141
- [Adapter interface docs →](/docs/running-loops/adapters)
142142
- [Apply for certification →](mailto:oss@betterdata.co)

content/docs/integrations/postgres.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ section: Integrations
1111

1212
## What it does
1313

14-
Swaps the in-memory adapter for PostgreSQL persistence. Loop state, transitions, and events are stored in Postgres through the same `LoopStorageAdapter` interface, so loop definitions and business logic remain unchanged.
14+
Swaps the in-memory adapter for PostgreSQL persistence. Loop state, transitions, and events are stored in Postgres through the same `LoopStore` interface, so loop definitions and business logic remain unchanged.
1515

1616
## Quick setup
1717

0 commit comments

Comments
 (0)