replen 0.1.3 → 0.2.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.
- package/LICENSE +73 -21
- package/dist/api.js +43 -0
- package/dist/commands.js +225 -0
- package/dist/index.js +26 -1
- package/dist/init.js +1 -1
- package/dist/mcp-setup.js +2 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,73 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
# Functional Source License, Version 1.1, MIT Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-MIT
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 replen.dev
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under these Terms and Conditions, as indicated by our inclusion of these Terms and Conditions with the Software.
|
|
20
|
+
|
|
21
|
+
### License Grant
|
|
22
|
+
|
|
23
|
+
Subject to your compliance with this License Grant and the Patents, Redistribution and Trademark clauses below, we hereby grant you the right to use, copy, modify, create derivative works, publicly perform, publicly display and redistribute the Software for any Permitted Purpose identified below.
|
|
24
|
+
|
|
25
|
+
### Permitted Purpose
|
|
26
|
+
|
|
27
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use means making the Software available to others in a commercial product or service that:
|
|
28
|
+
|
|
29
|
+
1. substitutes for the Software;
|
|
30
|
+
|
|
31
|
+
2. substitutes for any other product or service we offer using the Software that exists as of the date we make the Software available; or
|
|
32
|
+
|
|
33
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
34
|
+
|
|
35
|
+
Permitted Purposes specifically include using the Software:
|
|
36
|
+
|
|
37
|
+
1. for your internal use and access;
|
|
38
|
+
|
|
39
|
+
2. for non-commercial education;
|
|
40
|
+
|
|
41
|
+
3. for non-commercial research; and
|
|
42
|
+
|
|
43
|
+
4. in connection with professional services that you provide to a licensee using the Software in accordance with these Terms and Conditions.
|
|
44
|
+
|
|
45
|
+
### Patents
|
|
46
|
+
|
|
47
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our patents, the license grant above includes a license under our patents. If you make a claim against any party that the Software infringes or contributes to the infringement of any patent, then your patent license to the Software ends immediately.
|
|
48
|
+
|
|
49
|
+
### Redistribution
|
|
50
|
+
|
|
51
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of the Software.
|
|
52
|
+
|
|
53
|
+
If you redistribute any copies, modifications or derivatives of the Software, you must include a copy of or a link to these Terms and Conditions and not remove any copyright notices provided in or with the Software.
|
|
54
|
+
|
|
55
|
+
### Disclaimer
|
|
56
|
+
|
|
57
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
58
|
+
|
|
59
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
60
|
+
|
|
61
|
+
### Trademarks
|
|
62
|
+
|
|
63
|
+
Except for displaying the License Details and identifying us as the origin of the Software, you have no right under these Terms and Conditions to use our trademarks, trade names, service marks or product names.
|
|
64
|
+
|
|
65
|
+
## Grant of Future License
|
|
66
|
+
|
|
67
|
+
We hereby irrevocably grant you an additional license to use the Software under the MIT license that is effective on the second anniversary of the date we make the Software available. On or after that date, you may use the Software under the MIT license, in which case the following will apply:
|
|
68
|
+
|
|
69
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
70
|
+
|
|
71
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/dist/api.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Thin fetch wrapper for CLI subcommands. The CLI hits the same /api/mcp/*
|
|
2
|
+
// routes the MCP server uses (same DIGEST_TOKEN authentication), so plain-
|
|
3
|
+
// shell users get parity with the in-Claude-Code experience.
|
|
4
|
+
import { readConfig } from "./config.js";
|
|
5
|
+
export async function loadConfigOrExit() {
|
|
6
|
+
const cfg = await readConfig();
|
|
7
|
+
if (!cfg) {
|
|
8
|
+
console.error("Not signed in. Run `npx replen` first.");
|
|
9
|
+
process.exit(1);
|
|
10
|
+
}
|
|
11
|
+
return cfg;
|
|
12
|
+
}
|
|
13
|
+
export async function apiGet(cfg, path, query) {
|
|
14
|
+
const url = new URL(cfg.base + path);
|
|
15
|
+
if (query) {
|
|
16
|
+
for (const [k, v] of Object.entries(query)) {
|
|
17
|
+
if (v !== undefined && v !== null && v !== "")
|
|
18
|
+
url.searchParams.set(k, String(v));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const res = await fetch(url, {
|
|
22
|
+
headers: { "x-digest-token": cfg.token, accept: "application/json" },
|
|
23
|
+
});
|
|
24
|
+
if (!res.ok) {
|
|
25
|
+
throw new Error(`GET ${path} → ${res.status}: ${(await res.text()).slice(0, 200)}`);
|
|
26
|
+
}
|
|
27
|
+
return res.json();
|
|
28
|
+
}
|
|
29
|
+
export async function apiPost(cfg, path, body) {
|
|
30
|
+
const res = await fetch(cfg.base + path, {
|
|
31
|
+
method: "POST",
|
|
32
|
+
headers: {
|
|
33
|
+
"x-digest-token": cfg.token,
|
|
34
|
+
"content-type": "application/json",
|
|
35
|
+
accept: "application/json",
|
|
36
|
+
},
|
|
37
|
+
body: JSON.stringify(body),
|
|
38
|
+
});
|
|
39
|
+
if (!res.ok) {
|
|
40
|
+
throw new Error(`POST ${path} → ${res.status}: ${(await res.text()).slice(0, 200)}`);
|
|
41
|
+
}
|
|
42
|
+
return res.json();
|
|
43
|
+
}
|
package/dist/commands.js
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
// Plain-shell subcommands. Each one mirrors an MCP tool but renders for the
|
|
2
|
+
// terminal rather than returning JSON to an agent. `--json` flag on every
|
|
3
|
+
// command dumps raw JSON for piping/scripting.
|
|
4
|
+
import { apiGet, apiPost, loadConfigOrExit } from "./api.js";
|
|
5
|
+
function hasFlag(argv, flag) {
|
|
6
|
+
return argv.includes(flag);
|
|
7
|
+
}
|
|
8
|
+
function getFlag(argv, flag) {
|
|
9
|
+
const i = argv.indexOf(flag);
|
|
10
|
+
if (i < 0 || i === argv.length - 1)
|
|
11
|
+
return undefined;
|
|
12
|
+
return argv[i + 1];
|
|
13
|
+
}
|
|
14
|
+
// Trigger a fresh pipeline run. Returns immediately; user can `replen progress`
|
|
15
|
+
// to watch. Rate-limited at 60s on the server side.
|
|
16
|
+
export async function runRun(argv) {
|
|
17
|
+
const cfg = await loadConfigOrExit();
|
|
18
|
+
const json = hasFlag(argv, "--json");
|
|
19
|
+
try {
|
|
20
|
+
const r = await apiPost(cfg, "/api/mcp/run-now", {});
|
|
21
|
+
if (json) {
|
|
22
|
+
console.log(JSON.stringify(r, null, 2));
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (r.ok) {
|
|
26
|
+
console.log("✓ Pipeline started. Tail progress with `replen progress`.");
|
|
27
|
+
}
|
|
28
|
+
else if (r.status === "in_flight") {
|
|
29
|
+
console.log(`A run is already in flight (run #${r.runId}). Tail it with \`replen progress\`.`);
|
|
30
|
+
}
|
|
31
|
+
else if (r.status === "rate_limited") {
|
|
32
|
+
console.log(`Rate-limited: ${r.reason}. Try again in a minute.`);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
console.log(`✗ ${r.reason ?? "unknown error"}`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
catch (e) {
|
|
39
|
+
handleApiError(e);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// Tail live pipeline progress. Polls /api/mcp/status with ?since=<id> until
|
|
43
|
+
// the run finishes, printing each event as it arrives. Exits 0 on completion.
|
|
44
|
+
export async function runProgress(argv) {
|
|
45
|
+
const cfg = await loadConfigOrExit();
|
|
46
|
+
const json = hasFlag(argv, "--json");
|
|
47
|
+
let since = 0;
|
|
48
|
+
let firstTick = true;
|
|
49
|
+
// 2.5s matches the in-app live log poll cadence.
|
|
50
|
+
while (true) {
|
|
51
|
+
let status;
|
|
52
|
+
try {
|
|
53
|
+
status = await apiGet(cfg, "/api/mcp/status", since ? { since } : undefined);
|
|
54
|
+
}
|
|
55
|
+
catch (e) {
|
|
56
|
+
handleApiError(e);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (json) {
|
|
60
|
+
console.log(JSON.stringify(status));
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
if (firstTick) {
|
|
64
|
+
const phase = status.phase ?? "unknown";
|
|
65
|
+
const tag = status.inFlight ? `running · phase=${phase}` : "idle";
|
|
66
|
+
const counts = `${status.candidates ?? 0} candidates · ${status.matches ?? 0} matches`;
|
|
67
|
+
console.log(`Run #${status.runId ?? "?"} · ${tag} · ${counts}`);
|
|
68
|
+
firstTick = false;
|
|
69
|
+
}
|
|
70
|
+
for (const ev of status.events ?? []) {
|
|
71
|
+
console.log(`${marker(ev.kind)} ${ev.message}`);
|
|
72
|
+
if (ev.id > since)
|
|
73
|
+
since = ev.id;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (!status.inFlight) {
|
|
77
|
+
if (!json) {
|
|
78
|
+
console.log(`— done · ${status.matches ?? 0} matches · run #${status.runId ?? "?"}`);
|
|
79
|
+
}
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
await sleep(2500);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
// What landed in the last N days. Defaults: 2 days, high+medium relevance.
|
|
86
|
+
export async function runFeed(argv) {
|
|
87
|
+
const cfg = await loadConfigOrExit();
|
|
88
|
+
const json = hasFlag(argv, "--json");
|
|
89
|
+
const days = Number(getFlag(argv, "--days") ?? 2);
|
|
90
|
+
const project = getFlag(argv, "--project");
|
|
91
|
+
const relevance = getFlag(argv, "--relevance") ?? "high,medium";
|
|
92
|
+
try {
|
|
93
|
+
const r = await apiGet(cfg, "/api/mcp/today", {
|
|
94
|
+
days,
|
|
95
|
+
relevance,
|
|
96
|
+
project,
|
|
97
|
+
});
|
|
98
|
+
if (json) {
|
|
99
|
+
console.log(JSON.stringify(r, null, 2));
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (r.count === 0) {
|
|
103
|
+
console.log(`No matches in the last ${r.days} day(s).`);
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
console.log(`${r.count} matches · last ${r.days} day(s):`);
|
|
107
|
+
for (const m of r.matches)
|
|
108
|
+
renderMatchLine(m);
|
|
109
|
+
}
|
|
110
|
+
catch (e) {
|
|
111
|
+
handleApiError(e);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
// Full-text search across the user's match history.
|
|
115
|
+
export async function runSearch(argv) {
|
|
116
|
+
const cfg = await loadConfigOrExit();
|
|
117
|
+
const json = hasFlag(argv, "--json");
|
|
118
|
+
const q = argv.filter((a) => !a.startsWith("--")).slice(1).join(" ").trim();
|
|
119
|
+
if (q.length < 2) {
|
|
120
|
+
console.error("Usage: replen search <query>");
|
|
121
|
+
process.exit(1);
|
|
122
|
+
}
|
|
123
|
+
try {
|
|
124
|
+
const r = await apiGet(cfg, "/api/mcp/search", { q });
|
|
125
|
+
if (json) {
|
|
126
|
+
console.log(JSON.stringify(r, null, 2));
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (!r.matches?.length) {
|
|
130
|
+
console.log(`No results for "${q}".`);
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
console.log(`${r.count ?? r.matches.length} results for "${q}":`);
|
|
134
|
+
for (const m of r.matches)
|
|
135
|
+
renderMatchLine(m);
|
|
136
|
+
}
|
|
137
|
+
catch (e) {
|
|
138
|
+
handleApiError(e);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
// Starred matches + their handoff PR status (awaiting / open-pr / merged).
|
|
142
|
+
export async function runStarred(argv) {
|
|
143
|
+
const cfg = await loadConfigOrExit();
|
|
144
|
+
const json = hasFlag(argv, "--json");
|
|
145
|
+
try {
|
|
146
|
+
const r = await apiGet(cfg, "/api/mcp/starred");
|
|
147
|
+
if (json) {
|
|
148
|
+
console.log(JSON.stringify(r, null, 2));
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
if (!r.matches?.length) {
|
|
152
|
+
console.log("No starred matches.");
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
console.log(`${r.matches.length} starred:`);
|
|
156
|
+
for (const m of r.matches)
|
|
157
|
+
renderMatchLine(m, { showHandoff: true });
|
|
158
|
+
}
|
|
159
|
+
catch (e) {
|
|
160
|
+
handleApiError(e);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
// Open a handoff PR for a starred match in the matched project's own repo.
|
|
164
|
+
export async function runHandoff(argv) {
|
|
165
|
+
const cfg = await loadConfigOrExit();
|
|
166
|
+
const json = hasFlag(argv, "--json");
|
|
167
|
+
const idStr = argv.filter((a) => !a.startsWith("--"))[1];
|
|
168
|
+
const matchId = idStr ? parseInt(idStr, 10) : NaN;
|
|
169
|
+
if (!Number.isInteger(matchId) || matchId <= 0) {
|
|
170
|
+
console.error("Usage: replen handoff <matchId>");
|
|
171
|
+
process.exit(1);
|
|
172
|
+
}
|
|
173
|
+
try {
|
|
174
|
+
const r = await apiPost(cfg, "/api/mcp/handoff", { matchId });
|
|
175
|
+
if (json) {
|
|
176
|
+
console.log(JSON.stringify(r, null, 2));
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
if (r.ok && r.prUrl) {
|
|
180
|
+
console.log(`✓ Opened handoff PR: ${r.prUrl}`);
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
console.log(`✗ ${r.reason ?? "unknown error"}`);
|
|
184
|
+
process.exitCode = 1;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
catch (e) {
|
|
188
|
+
handleApiError(e);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
function renderMatchLine(m, opts = {}) {
|
|
192
|
+
const score = m.relevanceScore != null ? `· ${m.relevanceScore}` : "";
|
|
193
|
+
const stars = m.stars != null ? `· ${m.stars}★` : "";
|
|
194
|
+
const lic = m.license ? `· ${m.license}` : "";
|
|
195
|
+
const star = m.starred ? "★" : " ";
|
|
196
|
+
const handoff = opts.showHandoff && m.handoffPrUrl ? `\n PR: ${m.handoffPrUrl}` : "";
|
|
197
|
+
const repo = m.repo ?? "(no repo)";
|
|
198
|
+
console.log(` ${star} #${m.matchId} ${repo} → ${m.project} · ${m.relevance}${score}${stars}${lic}${handoff}`);
|
|
199
|
+
}
|
|
200
|
+
function marker(kind) {
|
|
201
|
+
switch (kind) {
|
|
202
|
+
case "match":
|
|
203
|
+
return "✓";
|
|
204
|
+
case "skip":
|
|
205
|
+
case "triage_skip":
|
|
206
|
+
return "·";
|
|
207
|
+
case "error":
|
|
208
|
+
return "✗";
|
|
209
|
+
case "fetch_start":
|
|
210
|
+
case "fetch_done":
|
|
211
|
+
return "↓";
|
|
212
|
+
case "reason":
|
|
213
|
+
return "?";
|
|
214
|
+
case "scan":
|
|
215
|
+
default:
|
|
216
|
+
return "›";
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
function handleApiError(e) {
|
|
220
|
+
console.error(`✗ ${e.message ?? String(e)}`);
|
|
221
|
+
process.exit(1);
|
|
222
|
+
}
|
|
223
|
+
function sleep(ms) {
|
|
224
|
+
return new Promise((r) => setTimeout(r, ms));
|
|
225
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -3,17 +3,30 @@ import { runInit } from "./init.js";
|
|
|
3
3
|
import { setupMcp } from "./mcp-setup.js";
|
|
4
4
|
import { readConfig, configPath } from "./config.js";
|
|
5
5
|
import { runProjectInit } from "./project-init.js";
|
|
6
|
+
import { runFeed, runHandoff, runProgress, runRun, runSearch, runStarred } from "./commands.js";
|
|
6
7
|
const HELP = `replen: Smart AI Development workflows
|
|
7
8
|
|
|
8
9
|
Usage:
|
|
9
10
|
npx replen Sign up / sign in + wire MCP into Claude Code
|
|
10
|
-
npx replen status Show
|
|
11
|
+
npx replen status Show CLI auth + config
|
|
11
12
|
npx replen mcp setup Re-wire MCP using saved auth
|
|
12
13
|
npx replen project-init Print a prompt your AI coding tool uses to draft
|
|
13
14
|
a CLAUDE.md tuned for replen
|
|
14
15
|
npx replen logout Forget saved auth
|
|
15
16
|
npx replen --help This help
|
|
16
17
|
|
|
18
|
+
Use replen from a plain shell (no Claude Code / Codex needed):
|
|
19
|
+
npx replen run Trigger a fresh pipeline run
|
|
20
|
+
npx replen progress Live tail of the current run; exits when done
|
|
21
|
+
npx replen feed [--days N] Today's matches (default 2 days)
|
|
22
|
+
[--project SLUG] Limit to one project
|
|
23
|
+
[--relevance high,medium]
|
|
24
|
+
npx replen search <query> Full-text search across past matches
|
|
25
|
+
npx replen starred Starred matches + handoff PR status
|
|
26
|
+
npx replen handoff <matchId> Open the handoff PR for a starred match
|
|
27
|
+
|
|
28
|
+
Every data command accepts --json to dump raw JSON for scripting / jq.
|
|
29
|
+
|
|
17
30
|
Env:
|
|
18
31
|
REPLEN_BASE Override dashboard URL (default https://app.replen.dev)
|
|
19
32
|
|
|
@@ -69,6 +82,18 @@ async function main() {
|
|
|
69
82
|
console.log(`Note: this only clears local auth. The token is still valid until you rotate it on /settings.`);
|
|
70
83
|
return;
|
|
71
84
|
}
|
|
85
|
+
if (cmd === "run")
|
|
86
|
+
return runRun(argv);
|
|
87
|
+
if (cmd === "progress")
|
|
88
|
+
return runProgress(argv);
|
|
89
|
+
if (cmd === "feed")
|
|
90
|
+
return runFeed(argv);
|
|
91
|
+
if (cmd === "search")
|
|
92
|
+
return runSearch(argv);
|
|
93
|
+
if (cmd === "starred")
|
|
94
|
+
return runStarred(argv);
|
|
95
|
+
if (cmd === "handoff")
|
|
96
|
+
return runHandoff(argv);
|
|
72
97
|
if (cmd === undefined) {
|
|
73
98
|
// Default: if already signed in, just rerun mcp setup. Otherwise, full flow.
|
|
74
99
|
const cfg = await readConfig();
|
package/dist/init.js
CHANGED
|
@@ -137,7 +137,7 @@ export async function runInit() {
|
|
|
137
137
|
console.log("");
|
|
138
138
|
console.log(" All set. Restart Claude Code (or Codex) and try:");
|
|
139
139
|
console.log(" /replen-triage → runs the morning triage protocol");
|
|
140
|
-
console.log(" use replen to
|
|
140
|
+
console.log(" use replen to replen_today → pulls today's matches");
|
|
141
141
|
console.log("");
|
|
142
142
|
console.log(` Dashboard: ${exchange.base}`);
|
|
143
143
|
console.log("");
|
package/dist/mcp-setup.js
CHANGED
|
@@ -43,7 +43,8 @@ export async function setupMcp(token, base) {
|
|
|
43
43
|
config = readJson(CONFIG_PATH);
|
|
44
44
|
}
|
|
45
45
|
catch (e) {
|
|
46
|
-
|
|
46
|
+
const msg = e instanceof Error ? e.message : String(e);
|
|
47
|
+
console.error(` ✗ ${CONFIG_PATH} is not valid JSON: ${msg}`);
|
|
47
48
|
console.error(` Fix the file manually and run \`replen mcp setup\`.`);
|
|
48
49
|
process.exit(1);
|
|
49
50
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "replen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Smart AI Development workflows. The AI that asks 'can we do this better?' - replen reads your codebase against the live ecosystem every morning, surfaces drop-in libraries, ideas to port, and patterns to learn from. A proactive layer for your AI coding workflow. One-command setup: opens a browser to sign in, then wires the MCP server into Claude Code / Codex.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"bugs": "https://github.com/replenhq/replen/issues",
|
|
32
32
|
"author": "replen.dev",
|
|
33
|
-
"license": "
|
|
33
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=18"
|
|
36
36
|
},
|