wlmaker 1.6.0 → 1.7.0

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.
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ createCollaborativePage
4
+ } from "./chunk-BVPCRMD4.mjs";
5
+ import "./chunk-7KUDXB2F.mjs";
6
+ import "./chunk-OTFDN3HG.mjs";
7
+ export {
8
+ createCollaborativePage
9
+ };
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ createCollaborativeFeature
4
+ } from "./chunk-FXU2ADDY.mjs";
5
+ import "./chunk-KBIXWYFD.mjs";
6
+ import "./chunk-OTFDN3HG.mjs";
7
+ export {
8
+ createCollaborativeFeature
9
+ };
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ createCollaborativeBloc
4
+ } from "./chunk-LHUDYCA5.mjs";
5
+ import "./chunk-7KUDXB2F.mjs";
6
+ import "./chunk-OTFDN3HG.mjs";
7
+ export {
8
+ createCollaborativeBloc
9
+ };
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ analyzeProject,
4
+ discoverCollaborativeFeatures,
5
+ discoverPackages,
6
+ discoverProjects,
7
+ findMonorepoRoot,
8
+ resolveWorkspaceVersions
9
+ } from "./chunk-KBIXWYFD.mjs";
10
+ export {
11
+ analyzeProject,
12
+ discoverCollaborativeFeatures,
13
+ discoverPackages,
14
+ discoverProjects,
15
+ findMonorepoRoot,
16
+ resolveWorkspaceVersions
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wlmaker",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Create Flutter BLoCs with Freezed sealed classes from the terminal",
5
5
  "keywords": [
6
6
  "flutter",
@@ -24,12 +24,10 @@
24
24
  ],
25
25
  "scripts": {
26
26
  "build": "tsup",
27
- "dev": "tsup --watch",
28
- "postinstall": "node ./dist/postinstall.mjs"
27
+ "dev": "tsup --watch"
29
28
  },
30
29
  "dependencies": {
31
30
  "@clack/prompts": "^1.2.0",
32
- "@modelcontextprotocol/sdk": "^1.0.4",
33
31
  "chalk": "^5.3.0",
34
32
  "change-case": "^5.4.0",
35
33
  "commander": "^12.0.0",
@@ -1,81 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // src/mcp-install.ts
4
- import * as fs from "fs";
5
- import * as path from "path";
6
- import * as os from "os";
7
- import { fileURLToPath } from "url";
8
- async function installMcpServer() {
9
- const homeDir = os.homedir();
10
- const isMac = process.platform === "darwin";
11
- const isWin = process.platform === "win32";
12
- const __filename = fileURLToPath(import.meta.url);
13
- const __dirname = path.dirname(__filename);
14
- const cliPath = path.resolve(__dirname, "cli.mjs");
15
- const wlmakerConfig = {
16
- command: process.execPath,
17
- args: [cliPath, "mcp"]
18
- };
19
- const configs = [
20
- {
21
- name: "Claude Desktop",
22
- paths: isMac ? [path.join(homeDir, "Library/Application Support/Claude/claude_desktop_config.json")] : isWin ? [path.join(homeDir, "AppData/Roaming/Claude/claude_desktop_config.json")] : []
23
- },
24
- {
25
- name: "Claude Code",
26
- paths: [path.join(homeDir, ".claude.json")]
27
- },
28
- {
29
- name: "Gemini CLI",
30
- paths: [path.join(homeDir, ".gemini/settings.json")]
31
- },
32
- {
33
- name: "Cursor",
34
- paths: [path.join(homeDir, ".cursor/mcp.json")]
35
- },
36
- {
37
- name: "Cline / RooCode (VSCode)",
38
- paths: isMac ? [
39
- path.join(homeDir, "Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json"),
40
- path.join(homeDir, "Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json")
41
- ] : isWin ? [
42
- path.join(homeDir, "AppData/Roaming/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json"),
43
- path.join(homeDir, "AppData/Roaming/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json")
44
- ] : [
45
- path.join(homeDir, ".config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json"),
46
- path.join(homeDir, ".config/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json")
47
- ]
48
- }
49
- ];
50
- let anyInstalled = false;
51
- for (const client of configs) {
52
- for (const configPath of client.paths) {
53
- if (fs.existsSync(configPath)) {
54
- try {
55
- const content = fs.readFileSync(configPath, "utf8");
56
- const json = JSON.parse(content);
57
- json.mcpServers = json.mcpServers || {};
58
- json.mcpServers["wlmaker-cli"] = wlmakerConfig;
59
- fs.writeFileSync(configPath, JSON.stringify(json, null, 2));
60
- console.log(`\u2705 Successfully added wlmaker-cli to ${client.name} configuration.`);
61
- anyInstalled = true;
62
- } catch (error) {
63
- console.error(`\u274C Failed to update ${client.name} configuration at ${configPath}:`, error);
64
- }
65
- }
66
- }
67
- }
68
- if (!anyInstalled) {
69
- console.log("\u26A0\uFE0F No supported MCP clients (Claude Desktop, Cursor, Cline) found to auto-configure.");
70
- console.log("You can manually add the following configuration to your client:");
71
- console.log(JSON.stringify({
72
- mcpServers: {
73
- "wlmaker-cli": wlmakerConfig
74
- }
75
- }, null, 2));
76
- }
77
- }
78
-
79
- export {
80
- installMcpServer
81
- };
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- installMcpServer
4
- } from "./chunk-OXBECDQE.mjs";
5
-
6
- // src/postinstall.ts
7
- async function main() {
8
- console.log("Registering wlmaker-cli as an MCP server...");
9
- await installMcpServer();
10
- }
11
- main().catch(console.error);