@livestore/cli 0.0.0-snapshot-e18224c2f978e5d8fceef2b039e59003cf2f4fd4 → 0.0.0-snapshot-8043b1ae14a6f23f498f3b56bb5fc0346384649b

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livestore/cli",
3
- "version": "0.0.0-snapshot-e18224c2f978e5d8fceef2b039e59003cf2f4fd4",
3
+ "version": "0.0.0-snapshot-8043b1ae14a6f23f498f3b56bb5fc0346384649b",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -11,11 +11,11 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@effect/ai-openai": "0.32.0",
14
- "@livestore/adapter-node": "0.0.0-snapshot-e18224c2f978e5d8fceef2b039e59003cf2f4fd4",
15
- "@livestore/common": "0.0.0-snapshot-e18224c2f978e5d8fceef2b039e59003cf2f4fd4",
16
- "@livestore/livestore": "0.0.0-snapshot-e18224c2f978e5d8fceef2b039e59003cf2f4fd4",
17
- "@livestore/sync-cf": "0.0.0-snapshot-e18224c2f978e5d8fceef2b039e59003cf2f4fd4",
18
- "@livestore/utils": "0.0.0-snapshot-e18224c2f978e5d8fceef2b039e59003cf2f4fd4"
14
+ "@livestore/adapter-node": "0.0.0-snapshot-8043b1ae14a6f23f498f3b56bb5fc0346384649b",
15
+ "@livestore/common": "0.0.0-snapshot-8043b1ae14a6f23f498f3b56bb5fc0346384649b",
16
+ "@livestore/livestore": "0.0.0-snapshot-8043b1ae14a6f23f498f3b56bb5fc0346384649b",
17
+ "@livestore/sync-cf": "0.0.0-snapshot-8043b1ae14a6f23f498f3b56bb5fc0346384649b",
18
+ "@livestore/utils": "0.0.0-snapshot-8043b1ae14a6f23f498f3b56bb5fc0346384649b"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/node": "24.5.2",
package/src/bin.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { liveStoreVersion } from '@livestore/common'
4
- import { Effect, FetchHttpClient, Layer, Logger, LogLevel } from '@livestore/utils/effect'
4
+ import { Console, Effect, FetchHttpClient, Layer, Logger, LogLevel } from '@livestore/utils/effect'
5
5
  import { Cli, PlatformNode } from '@livestore/utils/node'
6
6
  import { command } from './cli.ts'
7
7
 
@@ -10,10 +10,15 @@ const cli = Cli.Command.run(command, {
10
10
  version: liveStoreVersion,
11
11
  })
12
12
 
13
+ const showExperimentalWarning = Console.log('⚠️ Warning: LiveStore CLI is experimental and under active development')
14
+
13
15
  const layer = Layer.mergeAll(
14
16
  PlatformNode.NodeContext.layer,
15
17
  FetchHttpClient.layer,
16
18
  Logger.minimumLogLevel(LogLevel.Info),
17
19
  )
18
20
 
19
- cli(process.argv).pipe(Effect.provide(layer), PlatformNode.NodeRuntime.runMain)
21
+ Effect.gen(function* () {
22
+ yield* showExperimentalWarning
23
+ return yield* cli(process.argv)
24
+ }).pipe(Effect.provide(layer), PlatformNode.NodeRuntime.runMain)
@@ -77,6 +77,9 @@ const mcpServerCommand = Cli.Command.make(
77
77
  'server',
78
78
  {},
79
79
  Effect.fn(function* () {
80
+ yield* Effect.log('🚀 Starting LiveStore MCP Server...')
81
+
82
+ // Following Tim Smart's exact pattern from main.ts
80
83
  return yield* McpServer.layerStdio({
81
84
  name: 'livestore-mcp',
82
85
  version: '0.1.0',