@livestore/cli 0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.2 → 0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.4
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.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +12 -0
- package/dist/bin.js.map +1 -0
- package/dist/cli.d.ts +0 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -10
- package/dist/cli.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -6
- package/src/bin.ts +19 -0
- package/src/cli.ts +2 -17
- package/.claude/settings.local.json +0 -12
- package/tsconfig.json +0 -10
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
|
package/dist/bin.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { liveStoreVersion } from '@livestore/common';
|
|
3
|
+
import { Effect, FetchHttpClient, Layer, Logger, LogLevel } from '@livestore/utils/effect';
|
|
4
|
+
import { Cli, PlatformNode } from '@livestore/utils/node';
|
|
5
|
+
import { command } from "./cli.js";
|
|
6
|
+
const cli = Cli.Command.run(command, {
|
|
7
|
+
name: 'livestore',
|
|
8
|
+
version: liveStoreVersion,
|
|
9
|
+
});
|
|
10
|
+
const layer = Layer.mergeAll(PlatformNode.NodeContext.layer, FetchHttpClient.layer, Logger.minimumLogLevel(LogLevel.Info));
|
|
11
|
+
cli(process.argv).pipe(Effect.provide(layer), PlatformNode.NodeRuntime.runMain);
|
|
12
|
+
//# sourceMappingURL=bin.js.map
|
package/dist/bin.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAC1F,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE;IACnC,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,gBAAgB;CAC1B,CAAC,CAAA;AAEF,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAC1B,YAAY,CAAC,WAAW,CAAC,KAAK,EAC9B,eAAe,CAAC,KAAK,EACrB,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CACtC,CAAA;AAED,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA"}
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
import { Cli } from '@livestore/utils/node';
|
|
3
2
|
export declare const command: Cli.Command.Command<"livestore", import("@effect/platform/HttpClient").HttpClient | Cli.Prompt.Prompt.Environment | import("@effect/platform/CommandExecutor").CommandExecutor, Error | import("@effect/platform/HttpClientError").ResponseError | import("@effect/platform/Error").PlatformError, {
|
|
4
3
|
readonly verbose: boolean;
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAc3C,eAAO,MAAM,OAAO;;;;;;;;;;;EAE+D,CAAA"}
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { Effect, FetchHttpClient, Layer, Logger, LogLevel } from '@livestore/utils/effect';
|
|
4
|
-
import { Cli, PlatformNode } from '@livestore/utils/node';
|
|
1
|
+
import { Effect } from '@livestore/utils/effect';
|
|
2
|
+
import { Cli } from '@livestore/utils/node';
|
|
5
3
|
import { mcpCommand } from "./commands/mcp.js";
|
|
6
4
|
import { newProjectCommand } from "./commands/new-project.js";
|
|
7
5
|
const helloCommand = Cli.Command.make('hello', {
|
|
@@ -13,11 +11,5 @@ export const command = Cli.Command.make('livestore', {
|
|
|
13
11
|
verbose: Cli.Options.boolean('verbose').pipe(Cli.Options.withDefault(false)),
|
|
14
12
|
}).pipe(Cli.Command.withSubcommands([helloCommand, mcpCommand, newProjectCommand]));
|
|
15
13
|
if (import.meta.main) {
|
|
16
|
-
const cli = Cli.Command.run(command, {
|
|
17
|
-
name: 'livestore',
|
|
18
|
-
version: liveStoreVersion,
|
|
19
|
-
});
|
|
20
|
-
const layer = Layer.mergeAll(PlatformNode.NodeContext.layer, FetchHttpClient.layer, Logger.minimumLogLevel(LogLevel.Info));
|
|
21
|
-
cli(process.argv).pipe(Effect.provide(layer), PlatformNode.NodeRuntime.runMain);
|
|
22
14
|
}
|
|
23
15
|
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAE7D,MAAM,YAAY,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CACnC,OAAO,EACP;IACE,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;CACtE,EACD,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAoB;IAC7C,KAAK,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,IAAI,MAAM,CAAC,CAAA;AACzC,CAAC,CAAC,CACH,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE;IACnD,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;CAC7E,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,YAAY,EAAE,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAA;AAEnF,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;AACvB,CAAC"}
|