@dotdrelle/wiki-manager 0.6.17
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/.env.example +58 -0
- package/LICENSE +108 -0
- package/README.md +693 -0
- package/agents.docker-compose.yml +96 -0
- package/bin/wiki-manager.js +34 -0
- package/bunfig.toml +1 -0
- package/docker-compose.yml +135 -0
- package/mcp.endpoints.example.json +28 -0
- package/package.json +57 -0
- package/src/agent/graph.js +638 -0
- package/src/agent/llm.js +239 -0
- package/src/cli/wiki-manager.js +389 -0
- package/src/commands/slash.js +1044 -0
- package/src/core/activity.js +236 -0
- package/src/core/activity.test.js +127 -0
- package/src/core/agentEvents.js +238 -0
- package/src/core/agentEvents.test.js +134 -0
- package/src/core/compose.js +310 -0
- package/src/core/documentIntake.js +311 -0
- package/src/core/documentIntake.test.js +121 -0
- package/src/core/env.js +57 -0
- package/src/core/jobQueue.js +197 -0
- package/src/core/mcp.js +402 -0
- package/src/core/mcp.test.js +228 -0
- package/src/core/plan.js +181 -0
- package/src/core/plan.test.js +168 -0
- package/src/core/skills.js +142 -0
- package/src/core/wikirc.js +65 -0
- package/src/core/workspaces.js +81 -0
- package/src/shell/FileEditorDialog.tsx +94 -0
- package/src/shell/LeftPane.tsx +680 -0
- package/src/shell/RightPane.tsx +291 -0
- package/src/shell/SlashDialog.tsx +39 -0
- package/src/shell/renderer.ts +69 -0
- package/src/shell/repl.js +1490 -0
- package/src/shell/tui.tsx +205 -0
- package/src/shell/useAgent.ts +47 -0
- package/src/shell/useSession.ts +370 -0
- package/tsconfig.json +16 -0
- package/wiki-workspace +773 -0
package/.env.example
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# .env — wiki-manager local configuration
|
|
2
|
+
#
|
|
3
|
+
# Copy this file to .env and fill in your values.
|
|
4
|
+
# This file is loaded automatically by wiki-workspace for workspace compose
|
|
5
|
+
# and agents compose commands.
|
|
6
|
+
#
|
|
7
|
+
# NEVER commit .env — it is gitignored.
|
|
8
|
+
|
|
9
|
+
# ── Paths ──────────────────────────────────────────────────────────────────────
|
|
10
|
+
|
|
11
|
+
# Root directory that contains all workspace folders.
|
|
12
|
+
# Required when using: wiki-workspace agents up/down/logs
|
|
13
|
+
WORKSPACES_ROOT=/path/to/workspaces
|
|
14
|
+
|
|
15
|
+
# Directory for agent persistent state (cme config, document queues).
|
|
16
|
+
# Defaults to .agents-data/ next to wiki-workspace.
|
|
17
|
+
# AGENTS_DATA_DIR=/path/to/.agents-data
|
|
18
|
+
|
|
19
|
+
# ── Agent auth tokens ──────────────────────────────────────────────────────────
|
|
20
|
+
#
|
|
21
|
+
# Each agent has its own bearer token. Set the matching Authorization header
|
|
22
|
+
# in mcp.endpoints.json so Donna can call the agent:
|
|
23
|
+
#
|
|
24
|
+
# "cme": { "headers": { "Authorization": "Bearer <CME_MCP_AUTH_TOKEN>" } }
|
|
25
|
+
# "documents": { "headers": { "Authorization": "Bearer <DOCUMENTS_MCP_AUTH_TOKEN>" } }
|
|
26
|
+
# "mailer": { "headers": { "Authorization": "Bearer <MAILER_MCP_AUTH_TOKEN>" } }
|
|
27
|
+
#
|
|
28
|
+
# Leave empty to disable authentication on that agent (not recommended in production).
|
|
29
|
+
|
|
30
|
+
CME_MCP_AUTH_TOKEN=
|
|
31
|
+
DOCUMENTS_MCP_AUTH_TOKEN=
|
|
32
|
+
MAILER_MCP_AUTH_TOKEN=
|
|
33
|
+
|
|
34
|
+
# ── Mailer (MailerSend) ────────────────────────────────────────────────────────
|
|
35
|
+
|
|
36
|
+
MAILERSEND_API_KEY=
|
|
37
|
+
MAILERSEND_FROM_EMAIL=no-reply@example.com
|
|
38
|
+
MAILERSEND_FROM_NAME=Donna
|
|
39
|
+
|
|
40
|
+
# ── Documents LLM OCR / Mermaid (optional) ─────────────────────────────────────
|
|
41
|
+
|
|
42
|
+
# All image OCR is delegated to an OpenAI-compatible vision LLM. The default
|
|
43
|
+
# base URL is OpenAI; set DOCUMENT_LLM_API_KEY or OPENAI_API_KEY.
|
|
44
|
+
# DOCUMENT_LLM_BASE_URL=https://api.openai.com/v1
|
|
45
|
+
# DOCUMENT_LLM_MODEL=gpt-5.4-mini
|
|
46
|
+
# DOCUMENT_LLM_API_KEY=
|
|
47
|
+
# DOCUMENT_LLM_TIMEOUT_SECONDS=120
|
|
48
|
+
|
|
49
|
+
# ── Optional external MCP providers ────────────────────────────────────────────
|
|
50
|
+
|
|
51
|
+
# Used by mcp.endpoints.json when the Exa MCP endpoint is enabled.
|
|
52
|
+
EXA_MCP_API_KEY=
|
|
53
|
+
|
|
54
|
+
# ── Agent ports (optional, change only if defaults conflict) ───────────────────
|
|
55
|
+
|
|
56
|
+
# CME_MCP_PORT=3336
|
|
57
|
+
# DOCUMENTS_MCP_PORT=3337
|
|
58
|
+
# MAILER_MCP_PORT=3335
|
package/LICENSE
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
PolyForm Noncommercial License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree
|
|
8
|
+
to them as both strict obligations and conditions to all
|
|
9
|
+
your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the software
|
|
14
|
+
to do everything you might do with the software that would
|
|
15
|
+
otherwise infringe the licensor's copyright in it for any
|
|
16
|
+
permitted purpose. However, you may only make changes or
|
|
17
|
+
new works based on the software according to [Changes and New
|
|
18
|
+
Works License](#changes-and-new-works-license), and you may
|
|
19
|
+
not distribute copies of the software.
|
|
20
|
+
|
|
21
|
+
## Changes and New Works License
|
|
22
|
+
|
|
23
|
+
The licensor grants you an additional copyright license to
|
|
24
|
+
make changes and new works based on the software for any
|
|
25
|
+
permitted purpose.
|
|
26
|
+
|
|
27
|
+
## Patent License
|
|
28
|
+
|
|
29
|
+
The licensor grants you a patent license for the software that
|
|
30
|
+
covers patent claims the licensor can license, or becomes able
|
|
31
|
+
to license, that you would infringe by using the software.
|
|
32
|
+
|
|
33
|
+
## Noncommercial Purposes
|
|
34
|
+
|
|
35
|
+
Any noncommercial purpose is a permitted purpose.
|
|
36
|
+
|
|
37
|
+
## Personal Uses
|
|
38
|
+
|
|
39
|
+
Personal use for research, experiment, and testing for the
|
|
40
|
+
benefit of public knowledge, personal study, private
|
|
41
|
+
entertainment, hobby projects, amateur pursuits, or religious
|
|
42
|
+
observance, without any anticipated commercial application,
|
|
43
|
+
is use for a permitted purpose.
|
|
44
|
+
|
|
45
|
+
## Noncommercial Organizations
|
|
46
|
+
|
|
47
|
+
Use by any charitable organization, educational institution,
|
|
48
|
+
public research organization, public safety or health
|
|
49
|
+
organization, environmental protection organization, or
|
|
50
|
+
government institution is use for a permitted purpose
|
|
51
|
+
regardless of the source of funding or obligations resulting
|
|
52
|
+
from the funding.
|
|
53
|
+
|
|
54
|
+
## Fair Use
|
|
55
|
+
|
|
56
|
+
You may have "fair use" rights for the software under the
|
|
57
|
+
law. These terms do not limit them.
|
|
58
|
+
|
|
59
|
+
## No Other Rights
|
|
60
|
+
|
|
61
|
+
These terms do not allow you to sublicense or transfer any of
|
|
62
|
+
your licenses to anyone else, or prevent the licensor from
|
|
63
|
+
granting licenses to anyone else. These terms do not imply
|
|
64
|
+
any other licenses.
|
|
65
|
+
|
|
66
|
+
## Patent Defense
|
|
67
|
+
|
|
68
|
+
If you make any written claim that the software infringes or
|
|
69
|
+
contributes to infringement of any patent, your patent license
|
|
70
|
+
for the software granted under these terms ends immediately. If
|
|
71
|
+
your company makes such a claim, your patent license ends
|
|
72
|
+
immediately for work on behalf of your company.
|
|
73
|
+
|
|
74
|
+
## Violations
|
|
75
|
+
|
|
76
|
+
If you violate any of these terms, or do anything with the
|
|
77
|
+
software not covered by your licenses, all your licenses
|
|
78
|
+
end immediately.
|
|
79
|
+
|
|
80
|
+
## No Liability
|
|
81
|
+
|
|
82
|
+
***As far as the law allows, the software comes as is, without
|
|
83
|
+
any warranty or condition, and the licensor will not be liable
|
|
84
|
+
to you for any damages arising out of these terms or the use
|
|
85
|
+
or nature of the software, under any kind of legal claim.***
|
|
86
|
+
|
|
87
|
+
## Definitions
|
|
88
|
+
|
|
89
|
+
The **licensor** is the individual or entity offering these
|
|
90
|
+
terms, and the **software** is the software the licensor makes
|
|
91
|
+
available under these terms.
|
|
92
|
+
|
|
93
|
+
**You** refers to the individual or entity agreeing to these
|
|
94
|
+
terms.
|
|
95
|
+
|
|
96
|
+
**Your company** is any legal entity, sole proprietorship,
|
|
97
|
+
or other kind of organization that you work for, plus all
|
|
98
|
+
organizations that have control over, are under the control of,
|
|
99
|
+
or are under common control with that organization. **Control**
|
|
100
|
+
means ownership of substantially all the assets of an entity,
|
|
101
|
+
or the power to direct its management and policies by vote,
|
|
102
|
+
contract, or otherwise. Control can be direct or indirect.
|
|
103
|
+
|
|
104
|
+
**Your licenses** are all the licenses granted to you for the
|
|
105
|
+
software under these terms.
|
|
106
|
+
|
|
107
|
+
**Use** means anything you do with the software requiring one
|
|
108
|
+
of your licenses.
|