doclific 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +30 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doclific",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "doclific": "./dist/bin/doclific.js"
package/readme.md CHANGED
@@ -48,6 +48,36 @@ doclific --port=8080
48
48
  - `doclific` - Starts the Doclific web server (default port: 6767)
49
49
  - `doclific -p=<port>` - Starts the server on a custom port
50
50
  - `doclific --port=<port>` - Alternative syntax for custom port
51
+ - `doclific get` - Returns the current configuration
52
+ - `doclific set <KEY> <value>` - Sets a configuration value
53
+
54
+ ### Configuration Keys
55
+
56
+ You can set the following configuration keys:
57
+
58
+ - `AI_PROVIDER` - AI provider to use (`openai`, `anthropic`, or `google`)
59
+ - `AI_MODEL` - Model name to use (e.g., `gpt-4`, `claude-3-opus-20240229`, `gemini-pro`)
60
+ - `OPENAI_API_KEY` - Your OpenAI API key
61
+ - `ANTHROPIC_API_KEY` - Your Anthropic API key
62
+ - `GOOGLE_API_KEY` - Your Google API key
63
+
64
+ ### Examples
65
+
66
+ ```bash
67
+ # Get current configuration
68
+ doclific get
69
+
70
+ # Set AI provider
71
+ doclific set AI_PROVIDER openai
72
+
73
+ # Set AI model
74
+ doclific set AI_MODEL gpt-4
75
+
76
+ # Set API keys
77
+ doclific set OPENAI_API_KEY sk-your-api-key-here
78
+ doclific set ANTHROPIC_API_KEY sk-ant-your-api-key-here
79
+ doclific set GOOGLE_API_KEY your-api-key-here
80
+ ```
51
81
 
52
82
  ## Usage
53
83