@livestore/cli 0.0.0-snapshot-6a410d2bb15949bff8b9547ad2ca83ca0a942758 → 0.0.0-snapshot-ced6cbb35a8d7a6762f815cc649e8aaeaf0460ca
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/bin.js +6 -2
- package/dist/bin.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +2 -0
- package/dist/commands/mcp.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/src/bin.ts +7 -2
- package/src/commands/mcp.ts +3 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@livestore/cli",
|
3
|
-
"version": "0.0.0-snapshot-
|
3
|
+
"version": "0.0.0-snapshot-ced6cbb35a8d7a6762f815cc649e8aaeaf0460ca",
|
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-
|
15
|
-
"@livestore/common": "0.0.0-snapshot-
|
16
|
-
"@livestore/livestore": "0.0.0-snapshot-
|
17
|
-
"@livestore/sync-cf": "0.0.0-snapshot-
|
18
|
-
"@livestore/utils": "0.0.0-snapshot-
|
14
|
+
"@livestore/adapter-node": "0.0.0-snapshot-ced6cbb35a8d7a6762f815cc649e8aaeaf0460ca",
|
15
|
+
"@livestore/common": "0.0.0-snapshot-ced6cbb35a8d7a6762f815cc649e8aaeaf0460ca",
|
16
|
+
"@livestore/livestore": "0.0.0-snapshot-ced6cbb35a8d7a6762f815cc649e8aaeaf0460ca",
|
17
|
+
"@livestore/sync-cf": "0.0.0-snapshot-ced6cbb35a8d7a6762f815cc649e8aaeaf0460ca",
|
18
|
+
"@livestore/utils": "0.0.0-snapshot-ced6cbb35a8d7a6762f815cc649e8aaeaf0460ca"
|
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
|
-
|
21
|
+
Effect.gen(function* () {
|
22
|
+
yield* showExperimentalWarning
|
23
|
+
return yield* cli(process.argv)
|
24
|
+
}).pipe(Effect.provide(layer), PlatformNode.NodeRuntime.runMain)
|
package/src/commands/mcp.ts
CHANGED
@@ -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',
|