coderio 1.0.1-alpha.1 → 1.0.1

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/README.md CHANGED
@@ -96,9 +96,10 @@ pnpm add -g coderio
96
96
 
97
97
  #### 3. Configuration
98
98
 
99
- > **Important**: Requires a **multimodal (vision)** model (Recommended: `gemini-3-pro-preview`).
99
+ > **Important**: This tool requires an LLM with **multimodal (vision) capabilities** to analyze design screenshots.
100
+ > We highly recommend using **`gemini-3-pro-preview`** for the best balance of performance and cost.
100
101
 
101
- Create config file at `~/.coderio/config.yaml` (Windows: `%USERPROFILE%\.coderio\config.yaml`):
102
+ Create `~/.coderio/config.yaml` (Windows: `%USERPROFILE%\.coderio\config.yaml`) with:
102
103
 
103
104
  ```yaml
104
105
  model:
@@ -114,6 +115,27 @@ debug:
114
115
  enabled: false
115
116
  ```
116
117
 
118
+ <details>
119
+ <summary><strong>macOS / Linux One-click Command</strong></summary>
120
+
121
+ ```bash
122
+ mkdir -p ~/.coderio
123
+ cat > ~/.coderio/config.yaml << 'EOF'
124
+ model:
125
+ provider: openai # anthropic | openai | google
126
+ model: gemini-3-pro-preview
127
+ baseUrl: https://api.anthropic.com
128
+ apiKey: your-api-key-here
129
+
130
+ figma:
131
+ token: your-figma-token-here
132
+
133
+ debug:
134
+ enabled: false
135
+ EOF
136
+ ```
137
+ </details>
138
+
117
139
  #### 4. Usage
118
140
 
119
141
  ```bash
package/dist/cli.js CHANGED
@@ -475,7 +475,7 @@ var AGENT_CONTEXT_WINDOW_TOKENS = 128e3;
475
475
 
476
476
  // src/cli/init.ts
477
477
  function registerCommands(program) {
478
- const version = false ? "0.0.1" : "1.0.1-alpha.1";
478
+ const version = false ? "0.0.1" : "1.0.1";
479
479
  program.name(CLI_NAME).description(`${CLI_NAME} - Convert Figma designs to code`).version(version, "-v, -V, --version", "Output the version number").showHelpAfterError();
480
480
  }
481
481
 
@@ -2012,7 +2012,7 @@ var parseFigmaUrl = (url) => {
2012
2012
  if (!fileId || !nodeId) {
2013
2013
  throw new Error("Invalid Figma URL");
2014
2014
  }
2015
- return { fileId, name, nodeId, projectName: `${name}_${nodeId.replace(/:/g, "_")}` };
2015
+ return { fileId, name, nodeId, projectName: `${name}_${nodeId}` };
2016
2016
  };
2017
2017
 
2018
2018
  // src/cli/d2p.ts