@livestore/cli 0.0.0-snapshot-8f1fc2005e0669fbb8558ea0e457304267281da5 → 0.0.0-snapshot-240890c3adf9c40d41555a88a1889ed9f7475734
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/cli.d.ts +0 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -7
- package/dist/cli.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/bin.ts +7 -2
- package/src/cli.ts +1 -12
package/dist/bin.js
CHANGED
@@ -1,12 +1,16 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import { liveStoreVersion } from '@livestore/common';
|
3
|
-
import { Effect, FetchHttpClient, Layer, Logger, LogLevel } from '@livestore/utils/effect';
|
3
|
+
import { Console, Effect, FetchHttpClient, Layer, Logger, LogLevel } from '@livestore/utils/effect';
|
4
4
|
import { Cli, PlatformNode } from '@livestore/utils/node';
|
5
5
|
import { command } from "./cli.js";
|
6
6
|
const cli = Cli.Command.run(command, {
|
7
7
|
name: 'livestore',
|
8
8
|
version: liveStoreVersion,
|
9
9
|
});
|
10
|
+
const showExperimentalWarning = Console.log('⚠️ Warning: LiveStore CLI is experimental and under active development');
|
10
11
|
const layer = Layer.mergeAll(PlatformNode.NodeContext.layer, FetchHttpClient.layer, Logger.minimumLogLevel(LogLevel.Info));
|
11
|
-
|
12
|
+
Effect.gen(function* () {
|
13
|
+
yield* showExperimentalWarning;
|
14
|
+
return yield* cli(process.argv);
|
15
|
+
}).pipe(Effect.provide(layer), PlatformNode.NodeRuntime.runMain);
|
12
16
|
//# sourceMappingURL=bin.js.map
|
package/dist/bin.js.map
CHANGED
@@ -1 +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;
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AACnG,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,uBAAuB,GAAG,OAAO,CAAC,GAAG,CAAC,yEAAyE,CAAC,CAAA;AAEtH,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,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,KAAK,CAAC,CAAC,uBAAuB,CAAA;IAC9B,OAAO,KAAK,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AACjC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA"}
|
package/dist/cli.d.ts
CHANGED
@@ -7,8 +7,6 @@ export declare const command: Cli.Command.Command<"livestore", import("@effect/p
|
|
7
7
|
readonly example: import("effect/Option").Option<string>;
|
8
8
|
readonly branch: string;
|
9
9
|
readonly path: import("effect/Option").Option<string>;
|
10
|
-
} | {
|
11
|
-
readonly name: string;
|
12
10
|
}>;
|
13
11
|
}>;
|
14
12
|
//# sourceMappingURL=cli.d.ts.map
|
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":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAI3C,eAAO,MAAM,OAAO;;;;;;;;;EAEiD,CAAA"}
|
package/dist/cli.js
CHANGED
@@ -1,15 +1,9 @@
|
|
1
|
-
import { Effect } from '@livestore/utils/effect';
|
2
1
|
import { Cli } from '@livestore/utils/node';
|
3
2
|
import { mcpCommand } from "./commands/mcp.js";
|
4
3
|
import { newProjectCommand } from "./commands/new-project.js";
|
5
|
-
const helloCommand = Cli.Command.make('hello', {
|
6
|
-
name: Cli.Options.text('name').pipe(Cli.Options.withDefault('World')),
|
7
|
-
}, Effect.fn(function* ({ name }) {
|
8
|
-
yield* Effect.log(`Hello, ${name}! 🎉`);
|
9
|
-
}));
|
10
4
|
export const command = Cli.Command.make('livestore', {
|
11
5
|
verbose: Cli.Options.boolean('verbose').pipe(Cli.Options.withDefault(false)),
|
12
|
-
}).pipe(Cli.Command.withSubcommands([
|
6
|
+
}).pipe(Cli.Command.withSubcommands([mcpCommand, newProjectCommand]));
|
13
7
|
if (import.meta.main) {
|
14
8
|
}
|
15
9
|
//# 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":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,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,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,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAA;AAErE,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;AACvB,CAAC"}
|