doclific 0.3.0 → 0.3.3

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 (3) hide show
  1. package/LICENSE +65 -11
  2. package/package.json +5 -1
  3. package/readme.md +30 -0
package/LICENSE CHANGED
@@ -1,17 +1,71 @@
1
1
  Business Source License 1.1
2
2
 
3
- Licensor: Luke Mueller
4
- Licensed Work: Doclific
3
+ License
4
+
5
+ The Business Source License (this document, or the “License”) governs use of the
6
+ Licensed Work.
7
+
8
+ Use of the Licensed Work is permitted only as explicitly granted below.
9
+
10
+
11
+ Parameters
12
+
13
+ Licensor:
14
+ Luke Mueller
15
+
16
+ Licensed Work:
17
+ Doclific
18
+
5
19
  Additional Use Grant:
6
- You may use this software internally, including in commercial environments.
20
+ You may use, modify, and deploy the Licensed Work internally, including for
21
+ commercial purposes, provided that you do not redistribute the Licensed Work,
22
+ offer it as a hosted or managed service, sublicense it, white-label it, or
23
+ distribute modified versions outside your organization.
24
+
25
+ Change Date:
26
+ 2025-12-22
27
+
28
+ Change License:
29
+ Apache License, Version 2.0
30
+
31
+
32
+ Restrictions
33
+
34
+ Until the Change Date, you may not:
35
+
36
+ - Redistribute, sell, sublicense, or otherwise transfer the Licensed Work
37
+ - Offer the Licensed Work as a hosted, managed, or software-as-a-service offering
38
+ - Distribute modified versions of the Licensed Work
39
+ - White-label the Licensed Work or represent it as your own
40
+
41
+
42
+ Change License
43
+
44
+ On the Change Date specified above, this Licensed Work will automatically be made
45
+ available under the Change License, and all restrictions above will cease to
46
+ apply.
47
+
48
+
49
+ Trademarks
50
+
51
+ This License does not grant permission to use the trade names, trademarks,
52
+ service marks, or product names of the Licensor, except as required for reasonable
53
+ and customary use in describing the origin of the Licensed Work.
54
+
55
+
56
+ Disclaimer of Warranty
57
+
58
+ The Licensed Work is provided “AS IS”, without warranty of any kind, express or
59
+ implied, including but not limited to warranties of merchantability, fitness for
60
+ a particular purpose, and non-infringement.
61
+
62
+
63
+ Limitation of Liability
64
+
65
+ In no event shall the Licensor be liable for any claim, damages, or other
66
+ liability arising from use of the Licensed Work.
7
67
 
8
- Restrictions:
9
- You may not:
10
- - Redistribute, sell, sublicense, or white-label the software
11
- - Offer the software as a hosted or managed service
12
- - Distribute modified versions of the software
13
68
 
14
- Change Date: 2029-01-01
15
- Change License: Apache License, Version 2.0
69
+ Copyright
16
70
 
17
- This license does not grant trademark rights.
71
+ Copyright © 2025 Luke Mueller
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "doclific",
3
- "version": "0.3.0",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "doclific": "./dist/bin/doclific.js"
7
7
  },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/muellerluke/doclific"
11
+ },
8
12
  "scripts": {
9
13
  "build": "tsc",
10
14
  "start": "node 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