ctxpipe 0.1.0-alpha.0 → 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 +21 -0
- package/README.md +74 -0
- package/bin/ctxpipe.js +6 -42
- package/dist/auth.d.ts +52 -0
- package/dist/auth.js +416 -0
- package/dist/auth.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +12 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands.d.ts +56 -0
- package/dist/commands.js +264 -0
- package/dist/commands.js.map +1 -0
- package/dist/constants.d.ts +8 -0
- package/dist/constants.js +19 -0
- package/dist/constants.js.map +1 -0
- package/dist/fs-operations.d.ts +16 -0
- package/dist/fs-operations.js +62 -0
- package/dist/fs-operations.js.map +1 -0
- package/dist/mcp/json.d.ts +3 -0
- package/dist/mcp/json.js +15 -0
- package/dist/mcp/json.js.map +1 -0
- package/dist/mcp/mcp-operations.d.ts +103 -0
- package/dist/mcp/mcp-operations.js +464 -0
- package/dist/mcp/mcp-operations.js.map +1 -0
- package/dist/mcp/paths.d.ts +7 -0
- package/dist/mcp/paths.js +17 -0
- package/dist/mcp/paths.js.map +1 -0
- package/dist/memory/agentmemory-client.d.ts +24 -0
- package/dist/memory/agentmemory-client.js +47 -0
- package/dist/memory/agentmemory-client.js.map +1 -0
- package/dist/memory/hydration.d.ts +141 -0
- package/dist/memory/hydration.js +390 -0
- package/dist/memory/hydration.js.map +1 -0
- package/dist/memory/index.d.ts +4 -0
- package/dist/memory/index.js +5 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/markdown.d.ts +29 -0
- package/dist/memory/markdown.js +193 -0
- package/dist/memory/markdown.js.map +1 -0
- package/dist/memory/mcp-server.d.ts +48 -0
- package/dist/memory/mcp-server.js +322 -0
- package/dist/memory/mcp-server.js.map +1 -0
- package/dist/memory/paths.d.ts +12 -0
- package/dist/memory/paths.js +71 -0
- package/dist/memory/paths.js.map +1 -0
- package/dist/memory/policy.d.ts +16 -0
- package/dist/memory/policy.js +81 -0
- package/dist/memory/policy.js.map +1 -0
- package/dist/memory/run-hook.d.ts +13 -0
- package/dist/memory/run-hook.js +44 -0
- package/dist/memory/run-hook.js.map +1 -0
- package/dist/memory/run-init.d.ts +11 -0
- package/dist/memory/run-init.js +92 -0
- package/dist/memory/run-init.js.map +1 -0
- package/dist/memory/run-mcp.d.ts +3 -0
- package/dist/memory/run-mcp.js +7 -0
- package/dist/memory/run-mcp.js.map +1 -0
- package/dist/memory/run-meta.d.ts +11 -0
- package/dist/memory/run-meta.js +124 -0
- package/dist/memory/run-meta.js.map +1 -0
- package/dist/memory/supervisor.d.ts +49 -0
- package/dist/memory/supervisor.js +217 -0
- package/dist/memory/supervisor.js.map +1 -0
- package/dist/program.d.ts +1 -0
- package/dist/program.js +209 -0
- package/dist/program.js.map +1 -0
- package/dist/prompts.d.ts +42 -0
- package/dist/prompts.js +336 -0
- package/dist/prompts.js.map +1 -0
- package/dist/system.d.ts +3 -0
- package/dist/system.js +27 -0
- package/dist/system.js.map +1 -0
- package/dist/ui.d.ts +20 -0
- package/dist/ui.js +115 -0
- package/dist/ui.js.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/dist/version.js.map +1 -0
- package/package.json +26 -4
package/dist/prompts.js
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { resolve } from "node:path";
|
|
2
|
+
import { confirm as confirmPrompt, isCancel, log, multiselect, select, spinner, text, } from "@clack/prompts";
|
|
3
|
+
import { CLIENT_COMMANDS, CLIENT_LABELS, CLIENTS } from "./constants.js";
|
|
4
|
+
import { fetchOrganizations, fetchSession, loginWithDeviceFlow, orgLabel, readStoredAuth, userLabel, } from "./auth.js";
|
|
5
|
+
import { readJsonObject } from "./fs-operations.js";
|
|
6
|
+
import { commandExists } from "./system.js";
|
|
7
|
+
import { muted, printWizardHeader } from "./ui.js";
|
|
8
|
+
export async function promptMemoryInitWizard(current) {
|
|
9
|
+
printWizardHeader();
|
|
10
|
+
log.step("Local memory");
|
|
11
|
+
log.message(muted("Configure ctxpipe-memory and the canonical .ai/memory store (no remote ctxpipe MCP)."));
|
|
12
|
+
const answers = {};
|
|
13
|
+
if (!current.org) {
|
|
14
|
+
answers.org = await promptMemoryAuthOrSkip(current.baseUrl);
|
|
15
|
+
}
|
|
16
|
+
if (!current.scope) {
|
|
17
|
+
answers.scope = await promptSelect({
|
|
18
|
+
message: "Where should ctxpipe-memory be configured?",
|
|
19
|
+
initial: "repo",
|
|
20
|
+
choices: [
|
|
21
|
+
{
|
|
22
|
+
title: "This repo",
|
|
23
|
+
value: "repo",
|
|
24
|
+
description: "Write project MCP config and .ai/memory in this repo.",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
title: "Globally",
|
|
28
|
+
value: "user",
|
|
29
|
+
description: "Configure user-level clients when supported.",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: "Both",
|
|
33
|
+
value: "both",
|
|
34
|
+
description: "Set up this repo and your user-level client config.",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
if (current.agents.length === 0) {
|
|
40
|
+
answers.agents = await promptMemoryAgents();
|
|
41
|
+
}
|
|
42
|
+
return answers;
|
|
43
|
+
}
|
|
44
|
+
async function promptMemoryAgents() {
|
|
45
|
+
const detectSpinner = spinner();
|
|
46
|
+
detectSpinner.start("Detecting installed agents");
|
|
47
|
+
const detected = CLIENTS.filter((client) => commandExists(CLIENT_COMMANDS[client]));
|
|
48
|
+
detectSpinner.stop(detected.length > 0
|
|
49
|
+
? `Detected ${detected.length} agent${detected.length === 1 ? "" : "s"}`
|
|
50
|
+
: "No supported agents detected");
|
|
51
|
+
const agents = await multiselect({
|
|
52
|
+
message: "Which agents should get ctxpipe-memory?",
|
|
53
|
+
required: true,
|
|
54
|
+
initialValues: detected,
|
|
55
|
+
options: CLIENTS.map((client) => ({
|
|
56
|
+
label: CLIENT_LABELS[client],
|
|
57
|
+
value: client,
|
|
58
|
+
hint: detected.includes(client)
|
|
59
|
+
? "Detected on this machine"
|
|
60
|
+
: "Not detected, but ctxpipe can still write project config",
|
|
61
|
+
})),
|
|
62
|
+
});
|
|
63
|
+
return promptValue(agents);
|
|
64
|
+
}
|
|
65
|
+
async function promptMemoryAuthOrSkip(baseUrl) {
|
|
66
|
+
const auth = await readStoredAuth(baseUrl);
|
|
67
|
+
if (auth) {
|
|
68
|
+
return resolveOrgFromAuth(baseUrl, auth.accessToken);
|
|
69
|
+
}
|
|
70
|
+
const choice = await promptSelect({
|
|
71
|
+
message: "Sign in to ctx| for hosted memory summaries? (optional)",
|
|
72
|
+
initial: "skip",
|
|
73
|
+
choices: [
|
|
74
|
+
{
|
|
75
|
+
title: "Sign in with browser",
|
|
76
|
+
value: "sign-in",
|
|
77
|
+
description: "Enables session summaries and consolidation via hosted models.",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
title: "Continue without login",
|
|
81
|
+
value: "skip",
|
|
82
|
+
description: "Local save and search only; no ctxpipe account required.",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
});
|
|
86
|
+
if (choice === "skip") {
|
|
87
|
+
log.message(muted("Local-only mode — memory_save and memory_recall work without an account."));
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
log.step("Sign in");
|
|
91
|
+
log.message(muted("Sign in to ctx| so we can load your organizations."));
|
|
92
|
+
const freshAuth = await loginWithDeviceFlow({ baseUrl });
|
|
93
|
+
return resolveOrgFromAuth(baseUrl, freshAuth.accessToken);
|
|
94
|
+
}
|
|
95
|
+
async function resolveOrgFromAuth(baseUrl, accessToken) {
|
|
96
|
+
const fallbackOrg = detectDefaultOrgSlug();
|
|
97
|
+
const orgSpinner = spinner();
|
|
98
|
+
orgSpinner.start("Loading ctx| organizations");
|
|
99
|
+
let orgs = [];
|
|
100
|
+
let session = null;
|
|
101
|
+
try {
|
|
102
|
+
;
|
|
103
|
+
[orgs, session] = await Promise.all([
|
|
104
|
+
fetchOrganizations({ baseUrl, accessToken }).catch(() => []),
|
|
105
|
+
fetchSession({ baseUrl, accessToken }).catch(() => null),
|
|
106
|
+
]);
|
|
107
|
+
orgSpinner.stop(orgs.length > 0 ? "Loaded ctx| organizations" : "No organizations found");
|
|
108
|
+
}
|
|
109
|
+
catch (error) {
|
|
110
|
+
orgSpinner.stop("Could not load ctx| organizations");
|
|
111
|
+
throw error;
|
|
112
|
+
}
|
|
113
|
+
const label = userLabel(session);
|
|
114
|
+
if (label) {
|
|
115
|
+
log.success(`Signed in as ${label}.`);
|
|
116
|
+
}
|
|
117
|
+
if (orgs.length === 1) {
|
|
118
|
+
const org = orgs[0];
|
|
119
|
+
if (!org)
|
|
120
|
+
throw new Error("Could not load ctx| organization");
|
|
121
|
+
log.step("Organization");
|
|
122
|
+
log.message(orgLabel(org));
|
|
123
|
+
return org.slug;
|
|
124
|
+
}
|
|
125
|
+
if (orgs.length > 1) {
|
|
126
|
+
return promptSelect({
|
|
127
|
+
message: "Which ctx| organization should memory use for hosted models?",
|
|
128
|
+
initial: fallbackOrg ?? orgs[0]?.slug,
|
|
129
|
+
choices: orgs.map((org) => ({
|
|
130
|
+
title: orgLabel(org),
|
|
131
|
+
value: org.slug,
|
|
132
|
+
description: org.slug,
|
|
133
|
+
})),
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return promptText({
|
|
137
|
+
message: "Which ctx| organization should memory use for hosted models?",
|
|
138
|
+
initial: fallbackOrg,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
export async function promptInitWizard(current) {
|
|
142
|
+
printWizardHeader();
|
|
143
|
+
const answers = {};
|
|
144
|
+
if (!current.org) {
|
|
145
|
+
answers.org = await promptSetupOrg(current.baseUrl);
|
|
146
|
+
}
|
|
147
|
+
if (!current.scope) {
|
|
148
|
+
answers.scope = await promptSelect({
|
|
149
|
+
message: "Where should ctxpipe apply setup?",
|
|
150
|
+
initial: "repo",
|
|
151
|
+
choices: [
|
|
152
|
+
{
|
|
153
|
+
title: "This repo",
|
|
154
|
+
value: "repo",
|
|
155
|
+
description: "Write project files such as .ctxpipe/config.json and MCP config.",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
title: "Globally",
|
|
159
|
+
value: "user",
|
|
160
|
+
description: "Configure supported clients for your whole machine when possible.",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
title: "Both",
|
|
164
|
+
value: "both",
|
|
165
|
+
description: "Set up this repo and your user-level client config.",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
if (current.mcp && current.agents.length === 0) {
|
|
171
|
+
answers.agents = await promptAgents();
|
|
172
|
+
}
|
|
173
|
+
if (current.memory === undefined) {
|
|
174
|
+
answers.memory = await promptConfirm("Enable local agent memory for this repo? (writes .ai/memory and a ctxpipe-memory MCP entry)", true);
|
|
175
|
+
}
|
|
176
|
+
return answers;
|
|
177
|
+
}
|
|
178
|
+
async function promptSetupOrg(baseUrl) {
|
|
179
|
+
const fallbackOrg = detectDefaultOrgSlug();
|
|
180
|
+
let auth = await readStoredAuth(baseUrl);
|
|
181
|
+
let orgs = [];
|
|
182
|
+
let session = null;
|
|
183
|
+
if (auth) {
|
|
184
|
+
const sessionSpinner = spinner();
|
|
185
|
+
sessionSpinner.start("Checking existing ctx| session");
|
|
186
|
+
try {
|
|
187
|
+
;
|
|
188
|
+
[orgs, session] = await Promise.all([
|
|
189
|
+
fetchOrganizations({ baseUrl, accessToken: auth.accessToken }).catch(() => []),
|
|
190
|
+
fetchSession({ baseUrl, accessToken: auth.accessToken }).catch(() => null),
|
|
191
|
+
]);
|
|
192
|
+
sessionSpinner.stop(orgs.length > 0 ? "Loaded ctx| organizations" : "Sign-in required");
|
|
193
|
+
}
|
|
194
|
+
catch (error) {
|
|
195
|
+
sessionSpinner.stop("Could not check saved sign-in");
|
|
196
|
+
throw error;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
if (orgs.length === 0) {
|
|
200
|
+
log.step("Sign in");
|
|
201
|
+
log.message(muted("Sign in to ctx| so we can load your organizations."));
|
|
202
|
+
auth = await loginWithDeviceFlow({ baseUrl });
|
|
203
|
+
const orgSpinner = spinner();
|
|
204
|
+
orgSpinner.start("Loading ctx| organizations");
|
|
205
|
+
try {
|
|
206
|
+
;
|
|
207
|
+
[orgs, session] = await Promise.all([
|
|
208
|
+
fetchOrganizations({ baseUrl, accessToken: auth.accessToken }),
|
|
209
|
+
fetchSession({ baseUrl, accessToken: auth.accessToken }).catch(() => null),
|
|
210
|
+
]);
|
|
211
|
+
orgSpinner.stop("Loaded ctx| organizations");
|
|
212
|
+
}
|
|
213
|
+
catch (error) {
|
|
214
|
+
orgSpinner.stop("Could not load ctx| organizations");
|
|
215
|
+
throw error;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
const label = userLabel(session);
|
|
219
|
+
if (label) {
|
|
220
|
+
log.success(`Signed in as ${label}.`);
|
|
221
|
+
}
|
|
222
|
+
if (orgs.length === 1) {
|
|
223
|
+
const org = orgs[0];
|
|
224
|
+
if (!org)
|
|
225
|
+
throw new Error("Could not load ctx| organization");
|
|
226
|
+
log.step("Organization");
|
|
227
|
+
log.message(orgLabel(org));
|
|
228
|
+
return org.slug;
|
|
229
|
+
}
|
|
230
|
+
if (orgs.length > 1) {
|
|
231
|
+
return promptSelect({
|
|
232
|
+
message: "Which ctx| organization should this repo use?",
|
|
233
|
+
initial: fallbackOrg ?? orgs[0]?.slug,
|
|
234
|
+
choices: orgs.map((org) => ({
|
|
235
|
+
title: orgLabel(org),
|
|
236
|
+
value: org.slug,
|
|
237
|
+
description: org.slug,
|
|
238
|
+
})),
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
return promptText({
|
|
242
|
+
message: "Which ctx| organization should this repo use?",
|
|
243
|
+
initial: fallbackOrg,
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
export async function promptMcpWizard(current) {
|
|
247
|
+
printWizardHeader();
|
|
248
|
+
log.step("MCP");
|
|
249
|
+
log.message(muted("Choose the clients ctxpipe should configure for this machine or repo."));
|
|
250
|
+
const answers = {};
|
|
251
|
+
if (!current.org) {
|
|
252
|
+
answers.org = await promptText({
|
|
253
|
+
message: "Which ctx| organization should this MCP server use?",
|
|
254
|
+
initial: detectDefaultOrgSlug(),
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
if (!current.scope) {
|
|
258
|
+
answers.scope = await promptSelect({
|
|
259
|
+
message: "Where should ctxpipe configure MCP?",
|
|
260
|
+
initial: "repo",
|
|
261
|
+
choices: [
|
|
262
|
+
{ title: "This repo", value: "repo" },
|
|
263
|
+
{ title: "Globally", value: "user" },
|
|
264
|
+
{ title: "Both", value: "both" },
|
|
265
|
+
],
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
if (current.clients.length === 0) {
|
|
269
|
+
answers.clients = await promptAgents();
|
|
270
|
+
}
|
|
271
|
+
return answers;
|
|
272
|
+
}
|
|
273
|
+
async function promptAgents() {
|
|
274
|
+
const detectSpinner = spinner();
|
|
275
|
+
detectSpinner.start("Detecting installed agents");
|
|
276
|
+
const detected = CLIENTS.filter((client) => commandExists(CLIENT_COMMANDS[client]));
|
|
277
|
+
detectSpinner.stop(detected.length > 0
|
|
278
|
+
? `Detected ${detected.length} agent${detected.length === 1 ? "" : "s"}`
|
|
279
|
+
: "No supported agents detected");
|
|
280
|
+
const agents = await multiselect({
|
|
281
|
+
message: "Which agents should use ctx|?",
|
|
282
|
+
required: true,
|
|
283
|
+
initialValues: detected,
|
|
284
|
+
options: CLIENTS.map((client) => ({
|
|
285
|
+
label: CLIENT_LABELS[client],
|
|
286
|
+
value: client,
|
|
287
|
+
hint: detected.includes(client)
|
|
288
|
+
? "Detected on this machine"
|
|
289
|
+
: "Not detected, but ctxpipe can still write project config",
|
|
290
|
+
})),
|
|
291
|
+
});
|
|
292
|
+
return promptValue(agents);
|
|
293
|
+
}
|
|
294
|
+
async function promptText({ message, initial, }) {
|
|
295
|
+
const answer = await text({
|
|
296
|
+
message,
|
|
297
|
+
initialValue: initial,
|
|
298
|
+
validate: (value) => (String(value).trim() ? undefined : "Required"),
|
|
299
|
+
});
|
|
300
|
+
return String(promptValue(answer)).trim();
|
|
301
|
+
}
|
|
302
|
+
export function detectDefaultOrgSlug() {
|
|
303
|
+
const existing = readJsonObject(resolve(process.cwd(), ".ctxpipe", "config.json"));
|
|
304
|
+
if (typeof existing.orgSlug === "string" && existing.orgSlug.trim()) {
|
|
305
|
+
return existing.orgSlug;
|
|
306
|
+
}
|
|
307
|
+
return process.env.CTXPIPE_ORG_SLUG || process.env.CTXPIPE_ORG || undefined;
|
|
308
|
+
}
|
|
309
|
+
async function promptSelect({ message, choices, initial, }) {
|
|
310
|
+
const answer = await select({
|
|
311
|
+
message,
|
|
312
|
+
initialValue: choices.some((choice) => choice.value === initial)
|
|
313
|
+
? initial
|
|
314
|
+
: choices[0]?.value,
|
|
315
|
+
options: choices.map((choice) => ({
|
|
316
|
+
label: choice.title,
|
|
317
|
+
value: choice.value,
|
|
318
|
+
hint: choice.description,
|
|
319
|
+
})),
|
|
320
|
+
});
|
|
321
|
+
return promptValue(answer);
|
|
322
|
+
}
|
|
323
|
+
export async function promptConfirm(message, initial) {
|
|
324
|
+
const answer = await confirmPrompt({
|
|
325
|
+
message,
|
|
326
|
+
initialValue: initial,
|
|
327
|
+
});
|
|
328
|
+
return promptValue(answer);
|
|
329
|
+
}
|
|
330
|
+
function promptValue(value) {
|
|
331
|
+
if (isCancel(value)) {
|
|
332
|
+
throw new Error("Setup cancelled");
|
|
333
|
+
}
|
|
334
|
+
return value;
|
|
335
|
+
}
|
|
336
|
+
//# sourceMappingURL=prompts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,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;YACnB,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,IAAI,EAAE,MAAM,CAAC,WAAW;SACzB,CAAC,CAAC;KACJ,CAAC,CAAA;IACF,OAAO,WAAW,CAAC,MAAM,CAAM,CAAA;AACjC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,OAAe,EACf,OAAgB;IAEhB,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC;QACjC,OAAO;QACP,YAAY,EAAE,OAAO;KACtB,CAAC,CAAA;IACF,OAAO,WAAW,CAAC,MAAM,CAAY,CAAA;AACvC,CAAC;AAED,SAAS,WAAW,CAAI,KAAiB;IACvC,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC"}
|
package/dist/system.d.ts
ADDED
package/dist/system.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
export function commandExists(command) {
|
|
3
|
+
if (!command)
|
|
4
|
+
return false;
|
|
5
|
+
const result = spawnSync(command, ["--version"], {
|
|
6
|
+
encoding: "utf8",
|
|
7
|
+
stdio: "ignore",
|
|
8
|
+
});
|
|
9
|
+
if (result.error?.code === "ENOENT") {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
return result.status === 0 || result.status === 1;
|
|
13
|
+
}
|
|
14
|
+
export function openBrowser(url) {
|
|
15
|
+
const platform = process.platform;
|
|
16
|
+
const command = platform === "darwin" ? "open" : platform === "win32" ? "cmd" : "xdg-open";
|
|
17
|
+
const args = platform === "win32" ? ["/c", "start", "", url] : [url];
|
|
18
|
+
const result = spawnSync(command, args, {
|
|
19
|
+
encoding: "utf8",
|
|
20
|
+
stdio: "ignore",
|
|
21
|
+
});
|
|
22
|
+
return result.status === 0;
|
|
23
|
+
}
|
|
24
|
+
export function sleep(ms) {
|
|
25
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.js","sourceRoot":"","sources":["../src/system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,UAAU,aAAa,CAAC,OAAe;IAC3C,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAA;IAC1B,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE;QAC/C,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAA;IACF,IAAK,MAAM,CAAC,KAA2C,EAAE,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3E,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,GAAW;IACrC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;IACjC,MAAM,OAAO,GACX,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAA;IAC5E,MAAM,IAAI,GAAG,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;IACpE,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE;QACtC,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,CAAA;AAC5B,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,EAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;AAC1D,CAAC"}
|
package/dist/ui.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ApplyOperationResult } from "./fs-operations.js";
|
|
2
|
+
import type { Operation } from "./mcp/mcp-operations.js";
|
|
3
|
+
export declare function printWizardHeader(): void;
|
|
4
|
+
export declare function renderPixelLogo(): string;
|
|
5
|
+
export declare function brand(value: string): string;
|
|
6
|
+
export declare function brandName(): string;
|
|
7
|
+
export declare function muted(value: string): string;
|
|
8
|
+
export declare function stepLabel(value: string): string;
|
|
9
|
+
export declare function successText(value: string): string;
|
|
10
|
+
export declare function warnText(value: string): string;
|
|
11
|
+
export declare function pathText(value: string): string;
|
|
12
|
+
export declare function describeOperation(op: Operation): string;
|
|
13
|
+
export declare function describeAppliedItem(item: ApplyOperationResult): string;
|
|
14
|
+
export declare function writeResult(json: boolean, result: unknown): void;
|
|
15
|
+
export declare function printDoctorTable(data: {
|
|
16
|
+
version: string;
|
|
17
|
+
node: string;
|
|
18
|
+
cwd: string;
|
|
19
|
+
detectedClients: Record<string, boolean>;
|
|
20
|
+
}): void;
|
package/dist/ui.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { intro, log } from "@clack/prompts";
|
|
2
|
+
import chalk from "chalk";
|
|
3
|
+
import { CLIENT_LABELS, CLIENTS } from "./constants.js";
|
|
4
|
+
import { relativePath } from "./mcp/paths.js";
|
|
5
|
+
const teal = chalk.hex("#2dd4bf");
|
|
6
|
+
const PIXEL_MARK = `
|
|
7
|
+
░██
|
|
8
|
+
░██
|
|
9
|
+
░███████ ░████████ ░██ ░██
|
|
10
|
+
░██ ░██ ░██ ░██ ░██
|
|
11
|
+
░██ ░██ ░█████
|
|
12
|
+
░██ ░██ ░██ ░██ ░██
|
|
13
|
+
░███████ ░████ ░██ ░██
|
|
14
|
+
`;
|
|
15
|
+
const PIXEL_PIPE = `
|
|
16
|
+
░██
|
|
17
|
+
░██
|
|
18
|
+
░██
|
|
19
|
+
░██
|
|
20
|
+
░██
|
|
21
|
+
░██
|
|
22
|
+
░██
|
|
23
|
+
░██
|
|
24
|
+
░██
|
|
25
|
+
░██
|
|
26
|
+
`;
|
|
27
|
+
export function printWizardHeader() {
|
|
28
|
+
console.log("");
|
|
29
|
+
console.log(renderPixelLogo());
|
|
30
|
+
intro(`${brandName()} setup`);
|
|
31
|
+
log.message(`${muted("Connect your agents to")} ${brandName()}`);
|
|
32
|
+
}
|
|
33
|
+
export function renderPixelLogo() {
|
|
34
|
+
const markLines = PIXEL_MARK.split("\n").filter((line) => line.length > 0);
|
|
35
|
+
const pipeLines = PIXEL_PIPE.split("\n").filter((line) => line.length > 0);
|
|
36
|
+
const width = Math.max(...markLines.map((line) => line.length));
|
|
37
|
+
const height = Math.max(markLines.length, pipeLines.length);
|
|
38
|
+
return Array.from({ length: height }, (_, index) => {
|
|
39
|
+
const mark = markLines[index] ?? "";
|
|
40
|
+
const pipe = pipeLines[index] ?? "";
|
|
41
|
+
return `${brand(mark.padEnd(width))}${teal(pipe)}`;
|
|
42
|
+
}).join("\n");
|
|
43
|
+
}
|
|
44
|
+
export function brand(value) {
|
|
45
|
+
return chalk.bold.white(value);
|
|
46
|
+
}
|
|
47
|
+
export function brandName() {
|
|
48
|
+
return `${brand("ctx")}${teal("|")}`;
|
|
49
|
+
}
|
|
50
|
+
export function muted(value) {
|
|
51
|
+
return chalk.dim(value);
|
|
52
|
+
}
|
|
53
|
+
export function stepLabel(value) {
|
|
54
|
+
return `${teal("◆")} ${chalk.bold.white(value)}`;
|
|
55
|
+
}
|
|
56
|
+
export function successText(value) {
|
|
57
|
+
return chalk.green(value);
|
|
58
|
+
}
|
|
59
|
+
export function warnText(value) {
|
|
60
|
+
return chalk.yellow(value);
|
|
61
|
+
}
|
|
62
|
+
export function pathText(value) {
|
|
63
|
+
return chalk.cyan(value);
|
|
64
|
+
}
|
|
65
|
+
export function describeOperation(op) {
|
|
66
|
+
if (op.description)
|
|
67
|
+
return op.description;
|
|
68
|
+
if (op.type === "write-json")
|
|
69
|
+
return `write ${relativePath(op.path, process.cwd())}`;
|
|
70
|
+
if (op.type === "write-text")
|
|
71
|
+
return `seed ${relativePath(op.path, process.cwd())}`;
|
|
72
|
+
if (op.type === "mkdir")
|
|
73
|
+
return `create ${relativePath(op.path, process.cwd())}`;
|
|
74
|
+
if (op.type === "run")
|
|
75
|
+
return `run ${op.command.join(" ")}`;
|
|
76
|
+
return op.detail;
|
|
77
|
+
}
|
|
78
|
+
export function describeAppliedItem(item) {
|
|
79
|
+
if (item.status === "manual")
|
|
80
|
+
return `${warnText("!")} ${item.detail}`;
|
|
81
|
+
if (item.status === "ran")
|
|
82
|
+
return `${successText("✓")} ${item.detail}`;
|
|
83
|
+
if (item.status === "written" || item.status === "created") {
|
|
84
|
+
return `${successText("✓")} ${pathText(relativePath(item.path, process.cwd()))}`;
|
|
85
|
+
}
|
|
86
|
+
if (item.status === "skipped") {
|
|
87
|
+
return `${muted("•")} ${pathText(relativePath(item.path, process.cwd()))} ${muted("left as-is")}`;
|
|
88
|
+
}
|
|
89
|
+
if (item.status === "unchanged") {
|
|
90
|
+
return `${muted("•")} ${pathText(relativePath(item.path, process.cwd()))} ${muted("already up to date")}`;
|
|
91
|
+
}
|
|
92
|
+
return item.status;
|
|
93
|
+
}
|
|
94
|
+
export function writeResult(json, result) {
|
|
95
|
+
if (json) {
|
|
96
|
+
console.log(JSON.stringify(result, null, 2));
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
if (typeof result === "object" && result !== null && "status" in result) {
|
|
100
|
+
console.log(String(result.status));
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
console.log(String(result));
|
|
104
|
+
}
|
|
105
|
+
export function printDoctorTable(data) {
|
|
106
|
+
log.info(`${brand("ctxpipe")} ${muted(data.version)}`);
|
|
107
|
+
log.message(`${muted("node")} ${data.node}`);
|
|
108
|
+
log.message(`${muted("cwd")} ${data.cwd}`);
|
|
109
|
+
log.step("Detected clients");
|
|
110
|
+
for (const client of CLIENTS) {
|
|
111
|
+
const found = data.detectedClients[client] ? successText("yes") : muted("no");
|
|
112
|
+
log.message(`${CLIENT_LABELS[client]} ${found}`);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=ui.js.map
|
package/dist/ui.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;AAEjC,MAAM,UAAU,GAAG;;;;;;;;CAQlB,CAAA;AACD,MAAM,UAAU,GAAG;;;;;;;;;;;CAWlB,CAAA;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IACf,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAA;IAC9B,KAAK,CAAC,GAAG,SAAS,EAAE,QAAQ,CAAC,CAAA;IAC7B,GAAG,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,wBAAwB,CAAC,IAAI,SAAS,EAAE,EAAE,CAAC,CAAA;AAClE,CAAC;AAED,MAAM,UAAU,eAAe;IAC7B,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,E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AI,QAAQ,IAAI,MAAM,EAAE,CAAC;QACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAE,MAA8B,CAAC,MAAM,CAAC,CAAC,CAAA;QAC3D,OAAM;IACR,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;AAC7B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAKhC;IACC,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;IACtD,GAAG,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IAC5C,GAAG,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC,CAAA;IAC1C,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;IAC5B,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QAC7E,GAAG,CAAC,OAAO,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC,CAAA;IAClD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const packageVersion: string;
|
package/dist/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAE9C,MAAM,CAAC,MAAM,cAAc,GAAW,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ctxpipe",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Universal ctx| CLI for initializing repositories and agent integrations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"ctxpipe": "./bin/ctxpipe.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
|
-
"bin"
|
|
10
|
+
"bin",
|
|
11
|
+
"dist",
|
|
12
|
+
"LICENSE",
|
|
13
|
+
"README.md"
|
|
11
14
|
],
|
|
12
15
|
"repository": {
|
|
13
16
|
"type": "git",
|
|
@@ -18,8 +21,27 @@
|
|
|
18
21
|
"bugs": {
|
|
19
22
|
"url": "https://github.com/ctxpipe-ai/ctxpipe/issues"
|
|
20
23
|
},
|
|
21
|
-
"license": "
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@clack/prompts": "^1.0.1",
|
|
27
|
+
"@napi-rs/keyring": "^1.3.0",
|
|
28
|
+
"chalk": "^5.6.2",
|
|
29
|
+
"commander": "^14.0.3"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/node": "25.3.0",
|
|
33
|
+
"typescript": "5.9.3",
|
|
34
|
+
"vitest": "4.0.18"
|
|
35
|
+
},
|
|
22
36
|
"publishConfig": {
|
|
23
37
|
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsc -p tsconfig.build.json",
|
|
41
|
+
"check": "tsc -p tsconfig.json --noEmit",
|
|
42
|
+
"pretest": "pnpm run build",
|
|
43
|
+
"test": "vitest run --exclude 'test/memory/integration-*.test.ts'",
|
|
44
|
+
"test:memory:integration": "vitest run test/memory/integration-agentmemory.test.ts --testTimeout 120000",
|
|
45
|
+
"test:all": "pnpm run test && pnpm run test:memory:integration"
|
|
24
46
|
}
|
|
25
|
-
}
|
|
47
|
+
}
|